If a slider is removed, but the shortcode is left on a page, it gives the following error:
Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Parameter 1 must be a object, NULL given.' in /home/tap/public_html/wp-content/plugins/slider-by-supsystic/src/SupsysticSlider/Slider/Model/Resources.php:88 Stack trace: #0 [internal function]: SupsysticSlider_Slider_Model_Resources->getBySlider(NULL) #1 /home/tap/public_html/wp-includes/plugin.php(269): call_user_func_array(Array, Array) #2 /home/tap/public_html/wp-content/plugins/slider-by-supsystic/vendor/Rsc/Dispatcher.php(76): apply_filters_ref_array('ss_compile_slid...', Array) #3 /home/tap/public_html/wp-content/plugins/slider-by-supsystic/src/SupsysticSlider/Slider/Model/Sliders.php(232): Rsc_Dispatcher->apply('compile_slider', Array) #4 /home/tap/public_html/wp-content/plugins/slider-by-supsystic/src/SupsysticSlider/Slider/Model/Sliders.php(143): SupsysticSlider_Slider_Model_Sliders->compile(NULL) #5 /home/tap/public_html/wp-content/plugins/slider-by-supsystic/src/SupsysticSlider/Slider/Model/Sliders.php(51): SupsysticSlider_Slider_Model_Sli in /home/tap/public_html/wp-content/plugins/slider-by-supsystic/src/SupsysticSlider/Slider/Model/Resources.php on line 88
Should check if the parameter is valid, if not, just echo out ‘Slider not found’ or something similar ??