MyBB Community Forums

Full Version: Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just moved server and I am getting this error:
Parse error: syntax error, unexpected '-', expecting '}' in /var/www/vhosts/xyz.com/httpdocs/forums/global.php(312) : eval()'d code on line 2

Parse error: syntax error, unexpected '-', expecting '}' in /var/www/vhosts/xyz.com/httpdocs/forums/global.php(317) : eval()'d code on line 2

Parse error: syntax error, unexpected '-', expecting '}' in /var/www/vhosts/xyz.com/httpdocs/forums/global.php(325) : eval()'d code on line 3

Parse error: syntax error, unexpected '-', expecting '}' in /var/www/vhosts/xyz.com/httpdocs/forums/global.php(438) : eval()'d code on line 3

Parse error: syntax error, unexpected '-', expecting '}' in /var/www/vhosts/xyz.com/httpdocs/forums/global.php(500) : eval()'d code on line 6

Parse error: syntax error, unexpected '-', expecting '}' in /var/www/vhosts/xyz.com/httpdocs/forums/index.php(33) : eval()'d code on line 2

PHP Version: 5.1.6
SQL Engine: MySQL 5.0.45

Please help
Do a template search for 'phpMyAdmin', do you get any results??
I think something got changed in your templates. One of them it is complaining about is your header_welcomeblock_member_admin template. See if you can run a diff report on that template?
The last time someone had errors with these lines they had

-phpMyAdmin{some weird code}

in those templates, and the - caused the error... reverting them to default will fix it but I'm curious as to how it happens.
(2009-07-14, 03:11 PM)MattRogowski Wrote: [ -> ]The last time someone had errors with these lines they had

-phpMyAdmin{some weird code}

in those templates, and the - caused the error... reverting them to default will fix it but I'm curious as to how it happens.

That is why I suggest the diff report. I have seen some errors where a plugin did not properly remove the items they added.
I think that happens as a symptom of using phpMyAdmin to move templates stored in the db, it will edit it with a notice that phpMyAdmin moved it, thus triggering the error.
(2009-07-14, 02:29 PM)MattRogowski Wrote: [ -> ]Do a template search for 'phpMyAdmin', do you get any results??

Yep that's the problem. Thanks.