Using the Revolution Slider with PHP 7

James Leavers
1 min readMar 14, 2017

--

A blank Wordpress website after updating to PHP 7 might be a bit of a downer. If you are using the Revolution Slider there are a couple of changes that may help resolve the problem…

PHP Fatal error: Uncaught Error: Call to undefined function mysql_error()

This was deprecated in PHP 5.5 and removed in 7.0, so y’know… stop using it.

Fix: edit wp-content/plugins/revslider/inc_php/framework/db.class.php and change the if statement in the checkForErrors function:

Change if(mysql_error())
PHP Fatal error: Uncaught Error: [] operator not supported for strings

Fix: edit wp-content/plugins/revslider/inc_php/framework/base_admin.class.php and change the definition of $arrMetaBoxes to be an array:

Change empty string to array

After that, you should hopefully be up and running … but if not, check your website’s error_log for more hints and tips towards the root cause.

--

--