PDA

View Full Version : Help needed.


DAMINK
11-20-2011, 05:36 AM
For no apparent reason i started getting this error.
On top of all pages and many many entries.

Parse error: syntax error, unexpected '[', expecting T_STRING or T_VARIABLE or '$' in /home/ftwforum/public_html/includes/class_core.php(4580) : eval()'d code on line 6
Over and over again.

Running vBulletin 4.1.7 Patch Level 1 and was about to update.
Like i said there was nothing i noticed to make it happen.
The Baidu spider was holding quite a few connections so i did ban that via .htaccess and no luck.
Any help would be appreciated.

HMBeaty
11-20-2011, 05:40 AM
Try disabling your modifications/plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit includes/config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

DAMINK
11-20-2011, 05:53 AM
Tried disabling from the settings option plugin/hook system and no luck.
Will try edit the config file now.

Tried the edit on config file and no luck.
No mods or themes were added in months and months.
It just seemed to happen out of the blue.
The one thing that did change was i had about 50 connections from the baidu bot. But that is not .htaccess banned so should be ok??

kh99
11-20-2011, 05:58 AM
Looks like that error is coming from a template, in case that helps at all.

DAMINK
11-20-2011, 06:04 AM
No template changes in atleast 6 months.
The one think i did actually do is gave a mate access to change bbcode about 1/2 hr before.
He did not do any edits. He is sitting beside me now while i type this. (A very close mate)
So he did nothing. I changed his permissions back and checked logs. Nothing was done and i am 1000% sure he did nothing. Life long mate. Just thats all that happened.
Dunno guys my baby is down and me not happy lol.

kh99
11-20-2011, 06:15 AM
Could have been a change by mistake - or maybe something else happened. You say the errors are at the top of every page - is that every page with posts, or every page? If it's every page, you could look at header, headinclude, footer, and navbar to see if those look OK.

Is that the entire error message? Sometimes there's more info about where that function was called from.

HMBeaty
11-20-2011, 06:17 AM
It's related to your style. It doesn't have that error on your other styles....

DAMINK
11-20-2011, 06:27 AM
Ok thankyou for your help. I do really appreciate it.
I will look into template edits now and work the theme issue out.

nerbert
11-20-2011, 07:22 AM
Line 4580 of includes/class_core.php seems to have something to do with the postbit_legacy template. Maybe that helps.