- Plesk for Linux
WordPress website is not working with error 500.
The following error can be found in domain's error log in Domains > example.com > Logs > Apache error (on the system, the log file is located at
CONFIG_TEXT: AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function eregi() in /var/www/vhosts/example.com/httpdocs/wordpress/wp-content/plugins/wp-handy-lightbox/wp-jquery-lightbox.php:26\nStack trace:\n.........
PHP 7.0 or higher is selected in Domains > example.com > PHP Settings.
One of the plugins in WordPress (
wp-handy-lightbox in this example) uses PHP function
eregi() which was removed in PHP 7.0.
Set PHP version to 5.6 or lower in Domains > example.com > PHP Settings.