vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/test123/public_ (https://vborg.vbsupport.ru/showthread.php?t=288577)

Nullification 10-02-2012 11:00 PM

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

Simon Lloyd 10-02-2012 11:17 PM

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.

Nullification 10-02-2012 11:24 PM

I tried disabling all plugins by config.php and it still doesn't work. This shows up on all pages, except images files.

kh99 10-02-2012 11:28 PM

Can you look at line 634 of forum.php and see what it looks like?

Nullification 10-02-2012 11:30 PM

// 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

kh99 10-02-2012 11:34 PM

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.

Nullification 10-02-2012 11:37 PM

I already tried.. re-uploaded the entire package twice, just downloaded the zip off vbulletin like a hour ago.

kh99 10-02-2012 11:45 PM

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?

Nullification 10-02-2012 11:49 PM

5.3.17

kh99 10-03-2012 12:00 AM

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?


All times are GMT. The time now is 12:38 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.01147 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete