I'm getting a 500 server error on my forum, but only on the topic pages. The category pages are fine and the blogs too. The topics are also appearing ok for humans but search spiders are not spidering the site very well at all.
I've spoken to my host and they replied thus:
Any ideas what the problem could be?
I've spoken to my host and they replied thus:
A colleague who has a little bit more experience with PHP pointed out the fact that the error in question doesn't refer to the class_postbit.php file :
PHP Parse error: syntax error, unexpected '}' in /var/www/vhosts/theenvironmentsite.org/httpdocs/forum/includes/class_postbit.php(294) : eval()'d code on line 165
This means that eval()'d code, as called from line 294 of class_postbit.php, encountered a syntax error on line 165. It is the eval()'d code having the syntax error, not the file itself. The line 294 of the class_postbit.php file is the following :
($hook = vBulletinHook::fetch_hook('postbit_display_complete')) ? eval($hook) : false;
PHP Parse error: syntax error, unexpected '}' in /var/www/vhosts/theenvironmentsite.org/httpdocs/forum/includes/class_postbit.php(294) : eval()'d code on line 165
This means that eval()'d code, as called from line 294 of class_postbit.php, encountered a syntax error on line 165. It is the eval()'d code having the syntax error, not the file itself. The line 294 of the class_postbit.php file is the following :
($hook = vBulletinHook::fetch_hook('postbit_display_complete')) ? eval($hook) : false;