Revslider does 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 is not working properly on PHP 7 because it throws fatal error and interrupts script execution.

Solution (two approaches):
1. Disable Revolution Slider temporary until they release new version that support PHP 7

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

revslider1

and change the if statement below it to

revslider2

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

5 Comments

  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
    to
    private static $arrMetaBoxes = array();

    (Source: https://xtemos.com/forums/topic/revolution-slider-error-crashes-admin-cp/#post-5852)

Leave A Comment?