PDA

View Full Version : Forum wont work all of sudden! :(


Skivey
03-17-2013, 10:15 PM
I keep getting this error:

Parse error: syntax error, unexpected $end in /home/xxxxx/public_html/forum/newthread.php(80) : eval()'d code on line 11340

i notice newthread.php dont have 11340 lines....

The error happens when I use link:

https://www.getastake.com/forum/newthread.php?do=takeabuseaction&t=23532

I havent modified the plugin 'takeabuseaction' but again there isnt 11340 lines there either

Can anyone help me? Ive just re-opened my forum to the public and its pretty annoying :(

Matt

--------------- Added 1363559142 at 1363559142 ---------------

its not just the takeabuseaction, its ever other plugin under the newthread.php

kh99
03-17-2013, 10:58 PM
The (80) after newthread.php is the line number. The 11340 is the line number of the eval'ed code. 11340 seems huge - I think there is a limit on the size of plugin code that can be saved (assuming it's a plugin that's causing the problem), so maybe you've reached it.

Skivey
03-17-2013, 11:04 PM
All plugins have worked for the past 4 years and i havent added any new ones.

Would a missing } or { from a style template do this?

kh99
03-17-2013, 11:08 PM
All plugins have worked for the past 4 years and i havent added any new ones.

Would a missing } or { from a style template do this?

Possibly. What version of vb3 are you using (or, what's on line 80 of newthread.php)?

If you just edited a template, I guess that's likely the problem.

Skivey
03-17-2013, 11:21 PM
($hook = vBulletinHook::fetch_hook('newthread_start')) ? eval($hook) : false;

thats line 80

--------------- Added 1363562614 at 1363562614 ---------------

im jst gonna run a restore of templates to see if that works

kh99
03-17-2013, 11:24 PM
Ok, then that seems like it's a problem with a plugin using hook location newthread_start. I don't know why that would happen all of a sudden, but you should probably go to the plugin manager and sort by location, then see what products have plugins there. You could disable them one at a time and see which one makes the problem go away. If there really isn't any problem with any of the plugins, it could have been the datastore, and maybe just enabling and disabling them will fix it (because it forces the datastore to be rebuilt).

Skivey
03-17-2013, 11:36 PM
so stressful...

I restored so far templates, styles and plugins.... im getting real stuck

--------------- Added 1363563401 at 1363563401 ---------------

ok thanks, ill try that

--------------- Added 1363563707 at 1363563707 ---------------

funny..... how I can get so stressed over this, and the first thing I do is disable a plugin and it fixes it straight away.

Plugin disabled was one I dont need.... so all good.

Thankyou for your help here, much appreciated

--------------- Added 1363563752 at 1363563752 ---------------

I cant even click your heart cos it says i need to ike someone elses post... you mustve helped me out before! :)