• beefSupreme

    (@beefsupreme)


    Hello,

    I’m still trying out the plugin but it is easy to use. I have noticed that if I set DISABLE to NO under settings but do not assign an image I get the following errors on my pages.

    Warning: Illegal string offset ‘title’ in /home/site/public_html/wp-content/plugins/easy-fullscreen-slider/easy-fullscreen-slider.php on line 213

    Warning: Illegal string offset ‘url’ in /home/site/public_html/wp-content/plugins/easy-fullscreen-slider/easy-fullscreen-slider.php on line 213

    Warning: Invalid argument supplied for foreach() in /home/site/public_html/wp-content/plugins/easy-fullscreen-slider/easy-fullscreen-slider.php on line 246

    I can work around this by setting DISABLE = YES and then enable it per page.

    https://www.ads-software.com/plugins/easy-fullscreen-slider/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sarven

    (@sarven)

    I will check it next week. Sorry, but now i don’t have time to fix it.

    Thread Starter beefSupreme

    (@beefsupreme)

    Thanks.

    I had the same problem. I solved it changing line 214 @ easy-fullscreen-slider.php:

    $this->multiple_bg = $this->settings['slides_count'] > 1 || ( $this->settings['slides'][0]['title'] != '' || $this->settings['slides'][0]['url'] != '' );
                        if ( $this->multiple_bg ) {
                            wp_register_script( 'jqueryeasing', plugins_url( 'assets/js/jquery.easing.min.js', __FILE__ ), array( 'jquery' ) );
                            wp_enqueue_script( 'jqueryeasing' );
                        }

    By:

    if(sizeof($this->settings['slides']) > 1) {
                        $this->multiple_bg = $this->settings['slides_count'] > 1 || ( $this->settings['slides'][0]['title'] != '' || $this->settings['slides'][0]['url'] != '' );
                        if ( $this->multiple_bg ) {
                            wp_register_script( 'jqueryeasing', plugins_url( 'assets/js/jquery.easing.min.js', __FILE__ ), array( 'jquery' ) );
                            wp_enqueue_script( 'jqueryeasing' );
                        }
                    }

    Good luck.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warnings’ is closed to new replies.