Revslider and PHP 7

Older versions of Revolution Slider do not support PHP 7. From Version this issue should be rectified, but you might find that older versions that are bundled with themes may not support PHP 7.

If you have Revolution Slider plugin installed and you want to migrate your website to another location, but you got blank screen after import or your Revolution Slider is not activated after import but it was before export, the first thing you can do is to check your PHP version. We tested Revolution Slider and it was not working properly on PHP 7 because it throws fatal error and interrupts script execution.

Solution (two approaches):
1. Update Revolution Slider to the latest version that support PHP 7, or disable the slider.

2. Apply quick fix of the plugin source code.

Open file for edit /wp-content/plugins/revslider/inc_php/framework/db.class.php

Find the function called checkForErrors


and change the if statement below it to


The idea is make Revolution Slider to not rely on mysql_error function because it’s deprecated and removed in PHP 7.

If you tried both approaches and still encounter problems you can reach us at


  1. Fuzsin

    Great! But I have got the next error on the wp-admin page:
    Fatal error: Uncaught Error: [] operator not supported for strings in /home/kinkusr/public_html/wp-content/plugins/revslider/includes/framework/base-admin.class.php … etc.
    The solution was to change this line (23):
    private static $arrMetaBoxes = “”; //option boxes that will be added to post
    private static $arrMetaBoxes = array();


  2. Rafael Albini

    Very thanks, my website have updated by technical questions in the hosting server and my plugin was not more inicializaded, with this update in my code, my problem was resolved.

Leave A Comment?