MyBB Community Forums

Full Version: MyBB not compatible with PHP 5.3.5 ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
after updating server to new PHP version (5.3.5), forum went down.
Errors:
Quote:Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/global.php(341) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/global.php(346) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/global.php(354) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/global.php(497) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/global.php(501) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/global.php(502) : eval()'d code on line 2

Parse error: syntax error, unexpected $end in /home/ftp/www/mc.fate.lv/htdocs/f/global.php(503) : eval()'d code on line 1

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/global.php(504) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/global.php(554) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/global.php(563) : eval()'d code on line 5

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/index.php(33) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/ftp/www/mc.fate.lv/htdocs/f/index.php(101) : eval()'d code on line 1

Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/ftp/www/mc.fate.lv/htdocs/f/index.php(101) : eval()'d code on line 1

Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/ftp/www/mc.fate.lv/htdocs/f/index.php(101) : eval()'d code on line 1

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/index.php(163) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/index.php(302) : eval()'d code on line 2

Parse error: syntax error, unexpected T_LNUMBER in /home/ftp/www/mc.fate.lv/htdocs/f/index.php(320) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(184) : eval()'d code on line 1

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(188) : eval()'d code on line 1

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(184) : eval()'d code on line 1

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(188) : eval()'d code on line 1

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected T_LNUMBER in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(243) : eval()'d code on line 2

Parse error: syntax error, unexpected '{' in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 3

Parse error: syntax error, unexpected T_LNUMBER in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions_forumlist.php(362) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/ftp/www/mc.fate.lv/htdocs/f/index.php(383) : eval()'d code on line 4

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions.php(3224) : eval()'d code on line 2

Parse error: syntax error, unexpected T_STRING in /home/ftp/www/mc.fate.lv/htdocs/f/inc/functions.php(3225) : eval()'d code on line 3

Any fix?

I guess that you can enter into admin panel ; try changing the theme (if possible select MyBB's default theme
as the default theme) and check it - if it doesn't work then disable all the plugins and try again ...
MyBB works just fine on 5.3.5. I was using it, till I upgraded to 5.3.9, which is what I'm using now. So, as was already suggested: try the default them, and disabling all plugins.
Disabled all plugins, replaced forum files and used default template, same error.
ps. As far as I know, PHP 5.3.5 is not officialy released and is available for ubuntu only
(02-19-2012, 06:48 PM)lauris3722 Wrote: [ -> ]Disabled all plugins, replaced forum files and used default template, same error.
ps. As far as I know, PHP 5.3.5 is not officialy released and is available for ubuntu only

Your information is sadly dated. PHP 5.3.10 is out as a Stable release. And Mandriva 2010.2 is currently using 5.3.9 as I already said. And as I also said, I used 5.3.5 already, and it works fine.
What version of PHP did you have before? May be something to do with magic quotes if you were on 5.1 or 5.2 before as it works on 5.3.5 fine.
all the errors are related to eval()'d code ; most probably it is not related directly to MyBB's system files !!
Ok, my problem is similar but mine is toggable.

I have 5.2.17 and maybe upgrading to 5.3, is 5.3 faster or just more secure?

i also tried changing the php handler on 5.2.17 to suphp and i got some access denied error's in my footer.. i recall seeing the /tmp directory in one error.. whats all this about?

Please make your own thread if you have a question about changing PHP versions, it's a completely different question to the OP, isn't similar at all, and will only make trying to help the OP much harder if we start derailing and talking about something else. Thanks.
well OP is about php so some similarities there Toungue ok, ill make my own..