MyBB Community Forums

Full Version: Lots of PHP Errors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I have a really bad problem. My and my team were working on our MyBB forum today, and suddenly, without notice, the forum died and lots of errors appeared.

Here's what we get when trying to visit the forum:
Quote:Parse error: syntax error, unexpected T_STRING in /home/myname/public_html/community/global.php(355) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING in /home/myname/public_html/community/global.php(497) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING in /home/myname/public_html/community/global.php(498) : eval()'d code on line 2

Parse error: syntax error, unexpected $end in /home/myname/public_html/community/global.php(499) : eval()'d code on line 1

Parse error: syntax error, unexpected T_STRING in /home/myname/public_html/community/global.php(500) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/myname/public_html/community/global.php(550) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING in /home/myname/public_html/community/global.php(559) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/myname/public_html/community/index.php(41) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/myname/public_html/community/index.php(163) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/myname/public_html/community/index.php(262) : eval()'d code on line 2

Parse error: syntax error, unexpected T_LNUMBER in /home/myname/public_html/community/index.php(274) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/myname/public_html/community/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected T_LNUMBER in /home/myname/public_html/community/inc/functions_forumlist.php(362) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/myname/public_html/community/index.php(337) : eval()'d code on line 4

Parse error: syntax error, unexpected T_STRING in /home/mynamer/public_html/community/inc/functions.php(3095) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING in /home/myname/public_html/community/inc/functions.php(3096) : eval()'d code on line 3

From what I read on Google, it has something to do with our templates. But I reverted them, and no result.

Finally we resorted to downloading a fresh copy of MyBB and doing a fresh install- but right after install, all the errors came back! This leads me to think it's something with the server?
post the files you were editing.
(2010-12-21, 12:22 AM)Dark Byte Wrote: [ -> ]post the files you were editing.

We weren't editing any. Even if we messed one up, it should be fine after a fresh install.
(2010-12-21, 12:32 AM)Chase Wrote: [ -> ]
(2010-12-21, 12:22 AM)Dark Byte Wrote: [ -> ]post the files you were editing.

We weren't editing any. Even if we messed one up, it should be fine after a fresh install.

yea it would be fine after a fresh install.
(2010-12-21, 12:45 AM)Dark Byte Wrote: [ -> ]
(2010-12-21, 12:32 AM)Chase Wrote: [ -> ]
(2010-12-21, 12:22 AM)Dark Byte Wrote: [ -> ]post the files you were editing.

We weren't editing any. Even if we messed one up, it should be fine after a fresh install.

yea it would be fine after a fresh install.

So can you help or not? :/
i would try reinstalling:
global.php
index.php
inc/functions.php

they could be corrupted because those are the only one showing the issue.
since the error is with the eval code, you have likely messed up your templates. were you editing those or messing with the template parser code?
These are either in the footer or in header templates.

Revert back to them original.