I am looking for a bit of helping in troubleshooting a website; it seems I cannot get into the WordPress Dashboard or use the book online function. It keeps throwing the following message
www.website.co.uk is currently unable to handle this request. HTTP ERROR 500
I have renamed the plugin folder to check if it was an issue with the plugins which didn't resolve my issue. The Apache and PHP version are below:
I have checked the PHP error log and found multiple errors such as:
[11-Apr-2017 11:56:28 UTC] PHP Fatal error: Namespace declaration statement has to be the very first statement in the script in /home/madeleyt/public_html/wp-content/plugins/appointment-booking/lib/Plugin.php on line 3`
I then renamed the plugin again which didn't fix anything.
Any ideas? TIA.
From the error log, it is clear that the plugin appointment-booking is causing the issue. Try to deactivate it and the run the site. If still there is HTTP-500, check it on apache error log. The HTTP-500 is most probably due to, there is some programming error in the site.
Try to deactivate all plugins and activate them one by one and also check the error log simultaneously. If it fails to reproduce the issue, now try to switch the theme to any other default theme like twentysixteen etc. Hope it helps.