Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author NextScripts

    (@nextscripts)

    Notices are harmless. Please set WP_DEBUG off.

    We are also experiencing similar issues and errors – turning WP_DEBUG off is NOT an option in a development environment and these errors need to be fixed! Please advise.

    Likewise I had to go edit the plugin code to fix errors that were appearing on my development sites. This is just sloppy programming and easy to fix. For example,

    Getting the error:
    Notice: Undefined index: nsOpenGraph in /Users/Shared/WebServer/seattleunity/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/NextScripts_SNAP.php on line 1107

    So I changed line 1107 of NextScripts_SNAP.php from
    if ((int)$suOptions['nsOpenGraph'] == 1) {

    to
    if ( array_key_exists('nsOpenGraph',$suOptions) && ((int)$suOptions['nsOpenGraph'] == 1)) {

    It’s just good practice.

    Plugin Author NextScripts

    (@nextscripts)

    We won’t be updating 2.7.x plugin anymore. Version 3 will come out without Notices/Warnings

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Notices (with WP_DEBUG on)’ is closed to new replies.