Support » Plugin: Promotion Slider » [Plugin: Promotion Slider] Debug Mode reveals Undefined Variable on line 325

  • Resolved sstange

    (@sstange)


    Today I was testing changes made in my site by turning on the debug mode in the wp-config.php file using:

    define(‘WP_DEBUG’, true);

    When I changed the parameter to “true” from the default “false” the following line started to display on my home page above the Promotion Slider (I’m showing the whole message and using “***” in place of my site that this is on):

    Notice: Undefined variable: promo_posts in /home/wshinc/public_html/*******.com/wp-content/plugins/promotion-slider/index.php on line 325

    This is line 325 in the index.php file:

    $promo_posts = apply_filters(‘promoslider_custom_query_results’, $promo_posts);

    What is the fix so that this doesn’t show up when Debug is on? I’m assuming that this points to an error or a conflict.

    http://wordpress.org/extend/plugins/promotion-slider/

Viewing 2 replies - 1 through 2 (of 2 total)
  • hi,

    I had this same problem on my site…

    I solved it in a way that I removed this line of code

    Plugin Author Micah Wood

    (@woodent)

    Just change line 325 to read:

    $promo_posts = apply_filters( 'promoslider_custom_query_results', array() );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Promotion Slider] Debug Mode reveals Undefined Variable on line 325’ is closed to new replies.