Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - AcmlmBoard And EasyPHP - Undefined Vars And Constants (Long) | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 510/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-08-05 02:08 AM Link | Quote
I installed EasyPHP so that I can do PHP and AcmlmBoard dev stuff without having to be online or worry about messing up my board.

For some reason, when I try to set up a local AcmlmBoard v1.92, I get a mess of errors about undefined vars and constants, like this:
Notice: Undefined variable: id in \www\board\lib\function.php on line 3
Notice: Use of undefined constant sec - assumed 'sec' in \www\board\lib\function.php on line 4
Notice: Use of undefined constant usec - assumed 'usec' in \www\board\lib\function.php on line 4
Notice: Undefined variable: loguserid in \www\board\lib\function.php on line 15
Notice: Undefined variable: loguserid in \www\board\lib\function.php on line 25
Notice: Use of undefined constant powerlevel - assumed 'powerlevel' in \www\board\lib\function.php on line 33
Notice: Use of undefined constant signsep - assumed 'signsep' in \www\board\lib\function.php on line 34
Notice: Use of undefined constant powerlevel - assumed 'powerlevel' in \www\board\lib\function.php on line 37
Notice: Undefined variable: windowtitle in \www\board\lib\layout.php on line 3
Notice: Undefined variable: scheme in \www\board\colors.php on line 20
Notice: Undefined variable: race in \www\board\lib\function.php on line 363
Notice: Use of undefined constant c - assumed 'c' in \www\board\lib\layout.php on line 14
Notice: Use of undefined constant h - assumed 'h' in \www\board\lib\layout.php on line 14
Notice: Use of undefined constant s - assumed 's' in \www\board\lib\layout.php on line 18
Notice: Use of undefined constant t - assumed 't' in \www\board\lib\layout.php on line 19
Notice: Use of undefined constant l - assumed 'l' in \www\board\lib\layout.php on line 20
Notice: Use of undefined constant r - assumed 'r' in \www\board\lib\layout.php on line 21
Notice: Use of undefined constant ls - assumed 'ls' in \www\board\lib\layout.php on line 22
Notice: Use of undefined constant lt - assumed 'lt' in \www\board\lib\layout.php on line 23
Notice: Use of undefined constant rs - assumed 'rs' in \www\board\lib\layout.php on line 24
Notice: Use of undefined constant rt - assumed 'rt' in \www\board\lib\layout.php on line 25
Notice: Use of undefined constant s - assumed 's' in \www\board\lib\layout.php on line 18
Notice: Use of undefined constant t - assumed 't' in \www\board\lib\layout.php on line 19
Notice: Use of undefined constant l - assumed 'l' in \www\board\lib\layout.php on line 20
Notice: Use of undefined constant r - assumed 'r' in \www\board\lib\layout.php on line 21
Notice: Use of undefined constant ls - assumed 'ls' in \www\board\lib\layout.php on line 22
Notice: Use of undefined constant lt - assumed 'lt' in \www\board\lib\layout.php on line 23
Notice: Use of undefined constant rs - assumed 'rs' in \www\board\lib\layout.php on line 24
Notice: Use of undefined constant rt - assumed 'rt' in \www\board\lib\layout.php on line 25
Notice: Use of undefined constant s - assumed 's' in \www\board\lib\layout.php on line 18
Notice: Use of undefined constant t - assumed 't' in \www\board\lib\layout.php on line 19
Notice: Use of undefined constant l - assumed 'l' in \www\board\lib\layout.php on line 20
Notice: Use of undefined constant r - assumed 'r' in \www\board\lib\layout.php on line 21
Notice: Use of undefined constant ls - assumed 'ls' in \www\board\lib\layout.php on line 22
Notice: Use of undefined constant lt - assumed 'lt' in \www\board\lib\layout.php on line 23
Notice: Use of undefined constant rs - assumed 'rs' in \www\board\lib\layout.php on line 24
Notice: Use of undefined constant rt - assumed 'rt' in \www\board\lib\layout.php on line 25
Notice: Use of undefined constant s - assumed 's' in \www\board\lib\layout.php on line 18
Notice: Use of undefined constant t - assumed 't' in \www\board\lib\layout.php on line 19
Notice: Use of undefined constant l - assumed 'l' in \www\board\lib\layout.php on line 20
Notice: Use of undefined constant r - assumed 'r' in \www\board\lib\layout.php on line 21
Notice: Use of undefined constant ls - assumed 'ls' in \www\board\lib\layout.php on line 22
Notice: Use of undefined constant lt - assumed 'lt' in \www\board\lib\layout.php on line 23
Notice: Use of undefined constant rs - assumed 'rs' in \www\board\lib\layout.php on line 24
Notice: Use of undefined constant rt - assumed 'rt' in \www\board\lib\layout.php on line 25
Notice: Undefined variable: scr3 in \www\board\lib\layout.php on line 48
Notice: Undefined variable: scr7 in \www\board\lib\layout.php on line 49
Notice: Undefined variable: scr6 in \www\board\lib\layout.php on line 50
Notice: Undefined variable: scr2 in \www\board\lib\layout.php on line 51
Notice: Undefined variable: scr1 in \www\board\lib\layout.php on line 52
Notice: Undefined variable: scr4 in \www\board\lib\layout.php on line 53
Notice: Undefined variable: scr5 in \www\board\lib\layout.php on line 54
Notice: Undefined variable: formcss in \www\board\lib\layout.php on line 72
Notice: Use of undefined constant u - assumed 'u' in \www\board\lib\layout.php on line 119
Notice: Use of undefined constant t - assumed 't' in \www\board\lib\layout.php on line 120
Notice: Use of undefined constant p - assumed 'p' in \www\board\lib\layout.php on line 121
Notice: Undefined variable: tzoff in \www\board\lib\layout.php on line 139
Notice: Undefined variable: HTTP_REFERER in \www\board\lib\layout.php on line 145
Notice: Undefined variable: ipbanned in \www\board\lib\layout.php on line 152
Notice: Undefined variable: affiliatelinks in \www\board\lib\layout.php on line 175
Notice: Undefined variable: ipbanned in \www\board\lib\layout.php on line 176
Notice: Undefined variable: postread in \www\board\lib\function.php on line 58
Notice: Undefined variable: onlineusers in \www\board\index.php on line 27
Notice: Undefined variable: action in \www\board\index.php on line 32
Notice: Undefined variable: action in \www\board\index.php on line 37
Notice: Use of undefined constant d - assumed 'd' in \www\board\index.php on line 43
Notice: Use of undefined constant h - assumed 'h' in \www\board\index.php on line 44
Notice: Use of undefined constant d - assumed 'd' in \www\board\index.php on line 47
Notice: Use of undefined constant maxpostsday - assumed 'maxpostsday' in \www\board\index.php on line 47
Notice: Use of undefined constant h - assumed 'h' in \www\board\index.php on line 48
Notice: Use of undefined constant maxpostshour - assumed 'maxpostshour' in \www\board\index.php on line 48
Notice: Use of undefined constant maxusers - assumed 'maxusers' in \www\board\index.php on line 49
Notice: Use of undefined constant sex - assumed 'sex' in \www\board\index.php on line 50
Notice: Use of undefined constant powerlevel - assumed 'powerlevel' in \www\board\index.php on line 50
Notice: Undefined index: in \www\board\lib\function.php on line 330
Notice: Undefined variable: logmsg in \www\board\index.php on line 53
Notice: Undefined variable: blist in \www\board\index.php on line 54
Notice: Undefined variable: onlineusers in \www\board\index.php on line 56
Notice: Undefined variable: privatebox in \www\board\index.php on line 127
Notice: Use of undefined constant sec - assumed 'sec' in \www\board\lib\function.php on line 103
Notice: Use of undefined constant usec - assumed 'usec' in \www\board\lib\function.php on line 103
Notice: Undefined variable: smallfont in \www\board\lib\function.php on line 104


When I register, there's more of those. Then it takes me to FAQ, which, except for the errors, seems to work fine. When I log in, it says I'm logged in, but then the index page shows me as logged in and as a guest, and I have the guest menu stuff. No edit profile, or the like.

Anyone have any clues as to what I need to do to fix this?
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 6922/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 09-08-05 10:19 AM Link | Quote
Use a board whose code isn't so crappy?
neotransotaku

Baby Mario
戻れたら、
誰も気が付く
Level: 87

Posts: 3866/4016
EXP: 6220548
For next: 172226

Since: 03-15-04
From: Outside of Time/Space

Since last post: 11 hours
Last activity: 1 hour
Posted on 09-08-05 11:50 AM Link | Quote
one thing i wonder is--why don't you install mysql/php/apache locally? and use 'localhost' to access those components...
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 513/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-08-05 01:10 PM Link | Quote
HyperHacker: I get errors with other boards too. Even TBB gave me errors along those same lines.

neotransotaku: They are installed locally. And I was using localhost. That's pretty much the point of EasyPHP.
Cellar Dweller

Flurry
!!!
Level: 27

Posts: 245/269
EXP: 107817
For next: 8342

Since: 03-15-04
From: Arkansas

Since last post: 16 days
Last activity: 34 min.
Posted on 09-08-05 04:29 PM Link | Quote
Try looking for php.ini and adjusting the error_reporting option. Disabling E_NOTICE errors should make the messages stop.
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 515/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-08-05 06:14 PM Link | Quote
Currently, it's set to E_ALL. What should I change it to?
Cellar Dweller

Flurry
!!!
Level: 27

Posts: 246/269
EXP: 107817
For next: 8342

Since: 03-15-04
From: Arkansas

Since last post: 16 days
Last activity: 34 min.
Posted on 09-08-05 09:46 PM Link | Quote
The default setting is "E_ALL & ~E_NOTICE". You can set it to that, or you can just delete or comment out the line.
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 516/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-08-05 11:26 PM Link | Quote
Ah. The default setting for EasyPHP is E_ALL.

And won't the errors still be happening, just not showing?

Edit: I changed it, and I still get those errors...


(edited by Elric on 09-08-05 05:16 PM)
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 6939/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 09-09-05 05:25 AM Link | Quote
Changing that will stop it from showing you minor error messages, but it won't fix the code/configuration.
neotransotaku

Baby Mario
戻れたら、
誰も気が付く
Level: 87

Posts: 3869/4016
EXP: 6220548
For next: 172226

Since: 03-15-04
From: Outside of Time/Space

Since last post: 11 hours
Last activity: 1 hour
Posted on 09-09-05 05:44 AM Link | Quote
maybe you need to tweak the register globals option of PHP?
Cellar Dweller

Flurry
!!!
Level: 27

Posts: 247/269
EXP: 107817
For next: 8342

Since: 03-15-04
From: Arkansas

Since last post: 16 days
Last activity: 34 min.
Posted on 09-09-05 05:53 AM Link | Quote
You may need to restart Apache to get the configuration file reloaded if EasyPHP uses the PHP Apache module.

The notice errors are to warn about possible misspelled variable names or bad coding style. In the case of AcmlmBoard the reason those errors appear is that AcmlmBoard is designed to use register_gloabals, and that appears to the PHP interpreter as the use of undefined variables. Also, AcmlmBoard uses unquoted strings(barewords) as array subscripts, which is considered bad style and my not work in future versions of PHP.

EDIT: neotransotaku: AcmlmBoard detects if register_globals is off and emulates register_globals if needed.


(edited by Cellar Dweller on 09-08-05 08:59 PM)
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 518/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-09-05 08:40 AM Link | Quote
I made that change, then started the server up, and still got those error messages. The server wasn't running at the time I modified php.ini.

Also, now when I log in, it says I'm logged in, then takes me to the index page with me as a guest, and not logged in and a guest. Yar.

My friend is running, umm... I think it's PHPTriad, and everything seemed to work fine there, so I think I may just switch to that...
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - AcmlmBoard And EasyPHP - Undefined Vars And Constants (Long) | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.021 seconds.