Forum Moderators: coopster

Message Too Old, No Replies

T_VARIABLE Problem, Help Me

         

Math0s

5:40 pm on Nov 6, 2005 (gmt 0)



This is the error which I get when trying to access my AdminCP:

Parse error: parse error, unexpected T_VARIABLE, expecting ')' in /home2/rapbooth/public_html/forum/sources/Admin/admin_pages.php on line 158

This is the code I'm using:

(this is line 158) $CATS = array (
//0 => "IPS Services",
1 => "IPB Enhancements",
2 => "System Settings",
3 => 'Forum Control',
4 => 'Forum Moderation',
5 => 'Users and Groups',
6 => 'Administration',
7 => 'Skins & Templates',
8 => 'Languages',
9 => 'Statistic Center',
10 => 'SQL Management',
11 => 'Board Logs',
12 => 'Arcade',
13 => 'Jukebox',

);

PLEASE, can somebody help me?

Anyango

6:12 pm on Nov 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The Code you have pasted doesn't have any syntax error or any error which could lead to the error message you are getting. Error is somewhere else.

dreamcatcher

6:16 pm on Nov 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually there is an error:

13 => 'Jukebox',

Last entry in the array does NOT have a comma after it.

And welcome to Webmaster World Math0s. :)

Anyango

6:19 pm on Nov 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yep, thats an error but it works even with that one. so i think error he is reffering to, has got to be somewhere else.

mcibor

6:33 pm on Nov 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



True, it's not that what's causing the problem.

Can you Math0s post the previous line as well, as there the problem may lie.
best regards
Michal Cibor

NomikOS

6:49 pm on Nov 6, 2005 (gmt 0)

10+ Year Member



If you say that is not what is causing error then perhaps inside of his context, PHP parser not support it.

MathOs you must try


13 => 'Jukebox' // <---- without comma

);

and sure: show more code.

however, that's an error and must be fixed anyway.-