• Resolved wowujerry

    (@wowujerry)


    I have installed your slider on my wife’s piano business site (http://www.joyfulnoisemusicstudio.com). The slider looks and works great EXCEPT…I am receiving the following line of code as an error just ABOVE the slider:

    “Notice: Undefined variable: promo_posts in /home2/wowyouwe/public_html/joyfulnoisemusicstudio/wp-content/plugins/promotion-slider/index.php on line 325”

    Can you please help me understand this? Occasionally, when I am creating a promotion and then save it, I also see similar error code, occasionally even three lines of it. I would appreciate all your help. I don’t see any other problem like this in the forum.

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

    (@woodent)

    Thanks for alerting me to this error. I made a semantic error with that line of code, but the error will never cause the plugin to do anything but return that notice. Notices normally aren’t shown on a site unless debugging is enabled. It would seem that WP_DEBUG in your wp-config.php file is set to true, or debugging is enabled in some other way on your site. I would highly recommend disabling this for any live site.

    Meanwhile, I will correct the cause of this error. I am not sure why I wasn’t seeing this error during debugging, but it is an easy fix. This will be fixed in the next release of the plugin. Thanks!

    Thread Starter wowujerry

    (@wowujerry)

    Thanks for the quick response! I really appreciate you adding this to the next update. I am still puzzled though, as WP_DEBUG (in wp-config.php file) is set to false on my site. I looked into several hooks that I am using and don’t see it active there, either.
    I am quite new to all things code and if you have any insight into what other code I am missing or setting in my WP installation, I would be appreciative. I commit to repeating past mistakes–so I can make new ones!
    Regards! jmcnamara (wowujerry)

    Plugin Author Micah Wood

    (@woodent)

    If WP_DEBUG is set to false, there could be some code just about anywhere that causes the errors to show. Sorry, not much help, I know…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘ERROR: Undefined variable: promo_posts’ is closed to new replies.