Ran into the Revolution Slider PHP 7 (7.1 & 7.2) Issue? Don’t panic – there is an easy fix for that. Just follow these simple steps!
This function is the only reason of your troubles. And there are two ways to fix it. If you can update your Revolution Slider plugin to the latest version, use Solution 1. If you can’t update your Revolution Slider plugin, use Solution 2.
The first and easiest solution is to update your Revolution Slider plugin to the latest version. Duh! This is what I would do anyway because the latest Revolution Slider plugin is compatible and functions well with PHP7+. However, there are times when you can’t update the Revolution Slider. And if that is your case, here is what you could try.
Luckily, the second solution is a no-brainer, too. To get your slider back on track you will need to change two files in your Revolution Slider folder: ‘db.class.php’ and ‘base_admin.class.php’. So get your favorite FTP client and code editor ready and follow these simple steps:
Step 1. Find the db.class.php file here:
Step 2. Change the checkForErrors function (very likely on line 31) to the following:
Step 3. Find the base_admin.class.php file here:
Step 4. Change the $arrMetaBoxes (very likely on line 21) to the following:
Step 5. Refresh your cache, pages and a cup of coffee and try loading the page with the slider again.
Once you’ve done it all, your Revolution Slider PHP 7 (7.1 & 7.2) issue should be gone and you should have a properly working Revolution Slider plugin with PHP 7 (7.1 & 7.2). Voila.