Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Closed Thread
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/
Old 04-02-2009, 06:28 PM Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/
Skilled Talker

Posts: 90
Name: Dominic
Location: Columbus, Ohio
Trades: 0
Hi, my friend is running vb 3.7.4 and I installed ibpro arcade + the arcade addon from vbcredits.com, well I finished template edits and file uploads for both, well when I click on "arcade" which is on the navbar I get this error message

Code:
Parse error:  syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/XXXX/domains/XXXX/public_html/arcade.php on line 5584
Here is 5580 to 5590

Code:
    }

}

$main = new Arcade;

if( isset($ibforums->input['module']) )
{
        $file = MODULE_PATH."mod_".$ibforums->input['module'].".php";
        if( file_exists($file) )
This is line 5584
$main = new Arcade;
__________________
Hi Mom
Hi Dad
dominic95 is offline
View Public Profile
 
 
Register now for full access!
Old 04-02-2009, 06:36 PM Re: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Constructor calls are function calls:
$main = new Arcade();
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
View Public Profile Visit NullPointer's homepage!
 
Old 04-02-2009, 06:45 PM Re: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/
Skilled Talker

Posts: 90
Name: Dominic
Location: Columbus, Ohio
Trades: 0
Okay, I got a new one.

This time in AdminCP when I go to the Arcade category and expand the list which ever I click on I get this

Code:
Parse error:  syntax error, unexpected '}' in /home/xxxx/domains/XXXX/public_html/admincp/arcade.php on line 2406
2401 to 2406

Code:
            }
*/
    define('CP_REDIRECT', 'arcade.php?code=gamelist&cat=0');
    print_stop_message('saved_settings_successfully');
}
Line 2406 is
Code:
}
Also, the arcade one that you said needed to be (); did not work, still same error.

I don't know, each time I fix something, another error pops up, I fixed the one with the } problem then the one with the ; problem, now I got

Parse error: syntax error, unexpected T_VARIABLE in /home/xxxx/domains/xxxx/public_html/admincp/arcade.php on line 4535

I can't wait until the clan I'm in finds out that they wont be getting the arcade , thanks I realize it's me.
__________________
Hi Mom
Hi Dad

Last edited by dominic95; 04-02-2009 at 06:53 PM..
dominic95 is offline
View Public Profile
 
Old 04-02-2009, 09:35 PM Re: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
You'll need to provide more of the file to see why the error is there. There's just not enough provided to be able to debug.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
View Public Profile Visit JeremyMiller's homepage!
 
Old 04-02-2009, 09:45 PM Re: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Quote:
Originally Posted by dominic95 View Post
on line 4535
This is just my opinion, but that seems like a lot of lines. Even when I work on large projects my code rarely exceeds 1000 lines. I know this is not directly related to your problem, but small, managable modules are easier to debug than huge blobs of code.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
View Public Profile Visit NullPointer's homepage!
 
Old 04-05-2009, 08:26 AM Re: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/
Junior Talker

Posts: 4
Name: Philip Rollins
Trades: 0
The line above need to be ended would be my guess I get it allot forgot the semi-colon that's all.
SenseiNinja is offline
View Public Profile
 
Closed Thread     « Reply to Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34952 seconds with 12 queries