Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2012, 11:00 PM
Nullification Nullification is offline
 
Join Date: Aug 2012
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/test123/public_

I just restored my forum with a backup today, and I'm getting white page.

checked server error log and I see this:
2012-10-03 03:54:32.096 [NOTICE] [1
:33475-0#APVH_xxxxx.net] [STDERR] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/test123/public_html/forum.php on line 634
Reply With Quote
  #2  
Old 10-02-2012, 11:17 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may have an extra comma or missing a ; in whichever plugin you edited, try disabling all your add-on products and enabling them one by one until you get the error then you know which one to look at.
Reply With Quote
  #3  
Old 10-02-2012, 11:24 PM
Nullification Nullification is offline
 
Join Date: Aug 2012
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried disabling all plugins by config.php and it still doesn't work. This shows up on all pages, except images files.
Reply With Quote
  #4  
Old 10-02-2012, 11:28 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you look at line 634 of forum.php and see what it looks like?
Reply With Quote
  #5  
Old 10-02-2012, 11:30 PM
Nullification Nullification is offline
 
Join Date: Aug 2012
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

// get total members and newest member from template

--------------- Added [DATE]1349224337[/DATE] at [TIME]1349224337[/TIME] ---------------

I get this error when I remove it, I don't think its related to the file at all./

[STDERR] PHP Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/test11/public_html/includes/init.php on line 326
2012-10-03 04:30:49.762 [NOTICE] [120.1:37549-0#APVH_xxx.net] [STDERR] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/test11/public_html/forum.php on line 633
2012-10-03 04:30:50.160 [NOTICE] [120.1198:37559-0#APVH_xxx.net] [STDERR] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/test11/public_html/forum.php on line 633
Reply With Quote
  #6  
Old 10-02-2012, 11:34 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really? Hmm...what version do you have? I'm looking at vb4.20 PL2 and it looks like this:

Code:
$show['activemembers'] = ($vbulletin->options['activememberdays'] > 0 AND ($vbulletin->options['activememberoptions'] & 2)) ? true : false;

$ad_location['board_after_forums'] = vB_Template::create('ad_board_after_forums')->render();
$ad_location['board_below_whats_going_on'] = vB_Template::create('ad_board_below_whats_going_on')->render();

(the first $ad_location line is 634). That error is saying something is wrong with a -> being in the wrong place, so I don't see how it could be a problem with that comment.

You could just try re-uploading forum.php from the vb distribution.
Reply With Quote
  #7  
Old 10-02-2012, 11:37 PM
Nullification Nullification is offline
 
Join Date: Aug 2012
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already tried.. re-uploaded the entire package twice, just downloaded the zip off vbulletin like a hour ago.
Reply With Quote
  #8  
Old 10-02-2012, 11:45 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's strange that you got that error in init.php - were you always getting that? The error in forum.php after you removed the line came out one line less than before, which is what you'd expect to happen.

Do you know what version of PHP you have?
Reply With Quote
  #9  
Old 10-02-2012, 11:49 PM
Nullification Nullification is offline
 
Join Date: Aug 2012
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

5.3.17
Reply With Quote
  #10  
Old 10-03-2012, 12:00 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That should be OK. And that error in init.php is in an area that only gets executed when you disable hooks, so that's probably why that started appearing.

I'm kind of stumped. When you uploaded the files, did you select ASCII/binary mode? Maybe try uploading with different settings for that.

Edit: I searched for that error on vbulletin.com and found a few mentions of it, but no answers. However, someone did mention that with some hosts you need to use a .htaccess file to direct it to use php5, otherwise you're actually getting php4. Did you try going to the adminCP (assuming you can get there) and looking at "view php info" under Maintenance?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05799 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete