Title: PHP Notices (with WP_DEBUG on)
Last modified: August 21, 2016

---

# PHP Notices (with WP_DEBUG on)

 *  Resolved [kalligator](https://wordpress.org/support/users/kalligator/)
 * (@kalligator)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-notices-with-wp_debug-on-1/)
 *     ```
       Undefined variable: description in /NextScripts_SNAP.php on line 977
   
       Undefined variable: vidsFromPost in /NextScripts_SNAP.php on line 986
   
       Trying to get property of non-object in /NextScripts_SNAP.php on line 999
   
       Undefined index: advFindOGImg in /NextScripts_SNAP.php on line 1001
   
       Trying to get property of non-object in /nxs_functions.php on line 25
   
       Undefined index: nxs_mqTest in /NextScripts_SNAP.php on line 674
       ```
   
 * [http://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/](http://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/)

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

 *  Plugin Author [NextScripts](https://wordpress.org/support/users/nextscripts/)
 * (@nextscripts)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-notices-with-wp_debug-on-1/#post-4083297)
 * Notices are harmless. Please set WP_DEBUG off.
 *  [sdaccits](https://wordpress.org/support/users/sdaccits/)
 * (@sdaccits)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-notices-with-wp_debug-on-1/#post-4083318)
 * 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.
 *  [Donna McMaster](https://wordpress.org/support/users/mcdonna/)
 * (@mcdonna)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-notices-with-wp_debug-on-1/#post-4083330)
 * 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](https://wordpress.org/support/users/nextscripts/)
 * (@nextscripts)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-notices-with-wp_debug-on-1/#post-4083331)
 * 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.

 * ![](https://ps.w.org/social-networks-auto-poster-facebook-twitter-g/assets/icon-
   256x256.png?rev=1106267)
 * [NextScripts: Social Networks Auto-Poster](https://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/social-networks-auto-poster-facebook-twitter-g/)
 * [Active Topics](https://wordpress.org/support/plugin/social-networks-auto-poster-facebook-twitter-g/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/social-networks-auto-poster-facebook-twitter-g/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/social-networks-auto-poster-facebook-twitter-g/reviews/)

## Tags

 * [php notices](https://wordpress.org/support/topic-tag/php-notices/)

 * 4 replies
 * 4 participants
 * Last reply from: [NextScripts](https://wordpress.org/support/users/nextscripts/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/php-notices-with-wp_debug-on-1/#post-4083331)
 * Status: resolved