Undefined index Revolution Slider – Revolution Slider is an beast Slider Plugin for WordPress. Great Features and handy User Interface with incredible support for slides of pictures, videos and even more potential enhancing for presentations.
Revolution is huge plugin with countless possibilities to draw maximum fancy layout of any-page.
Undefined index Revolution Slider error is pain, lets find out how i encounter this creepy headache.
I was working on client website and encounter following issues with Revolution Slider.
Notice: Undefined index: advanced in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/revslider/includes/framework/cssparser.class.php on line 158
WordPress database error: [Unknown column `type` in `where clause`]
select * from wpkw_revslider_sliders where `type` != 'template' OR `type` IS NULL order by id ASC
View (slider-overview) Error: fetch - <b>Unknown column 'type' in 'where clause'</b><br>---<br> Query: select * from wpkw_revslider_sliders where `type` != 'template' OR `type` IS NULL order by id ASC
Undefined index in cssparser.class.php on line number 158
$attr['advanced'] = json_decode($attr['advanced'], true);
Let’s find what is wrong with Revolution Slider? This error pop up in Dedicated VPS
- First solution that comes in mind, to replace plugin with the one i have on other website which was works fine.
- This works for me. I tried to play with code but there was lack of time so quit playing.
- Comment below if you know or encountered same error
I found some other related errors and solutions too
Fatal error: Uncaught Error: [] operator not supported for strings in /home/user/public_html/wp-content/plugins/revslider/includes/framework/base-admin.class.php:71 Stack trace: #0 /home/user/public_html/wp-content/plugins/revslider/admin/revslider-admin.class.php(572): RevSliderBaseAdmin::addMetaBox(‘Revolution Slid…’, ”, Array, NULL) #1 /home/user/public_html/wp-content/plugins/revslider/admin/revslider-admin.class.php(73):
Solution is something like this, replace line number 21 in revslider/includes/framework/base-admin.class.php
from
private static $arrMetaBoxes = ”; //option boxes that will be added to post
to
private static $arrMetaBoxes = array(); //option boxes that will be added to post