Title: PHP noticed when WP_DEBUG is enabled
Last modified: August 20, 2016

---

# PHP noticed when WP_DEBUG is enabled

 *  Resolved [Maor Chasen](https://wordpress.org/support/users/maor/)
 * (@maor)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/php-noticed-when-wp_debug-is-enabled/)
 * Hi,
 * First of all, thanks for sharing this great plugin! I find it very useful.
 * I’m using the latest version of WooSidebars (1.2.0). While developing a site,
   I have enabled `WP_DEBUG` — and this notice pops up.
 * `NOTICE: C:\wamp\www\wordpress\wp-includes\post.php:1061 - Array to string conversion`
 * Since I’m also logging all PHP errors and notices, here is the stack trace
 *     ```
       [16-Dec-2012 10:46:07 UTC] PHP Notice:  Array to string conversion in C:\wamp\www\wordpress\wp-includes\post.php on line 1061
   
       [16-Dec-2012 10:46:07 UTC] PHP Stack trace:
   
       [16-Dec-2012 10:46:07 UTC] PHP   1. {main}() C:\wamp\www\wordpress\wp-admin\plugins.php:0
   
       [16-Dec-2012 10:46:07 UTC] PHP   2. require_once() C:\wamp\www\wordpress\wp-admin\plugins.php:10
   
       [16-Dec-2012 10:46:07 UTC] PHP   3. require_once() C:\wamp\www\wordpress\wp-admin\admin.php:30
   
       [16-Dec-2012 10:46:07 UTC] PHP   4. require_once() C:\wamp\www\wordpress\wp-load.php:29
   
       [16-Dec-2012 10:46:07 UTC] PHP   5. require_once() C:\wamp\www\wordpress\wp-config.php:108
   
       [16-Dec-2012 10:46:07 UTC] PHP   6. do_action() C:\wamp\www\wordpress\wp-settings.php:302
   
       [16-Dec-2012 10:46:07 UTC] PHP   7. call_user_func_array() C:\wamp\www\wordpress\wp-includes\plugin.php:403
   
       [16-Dec-2012 10:46:07 UTC] PHP   8. Woo_Sidebars->register_post_type() C:\wamp\www\wordpress\wp-includes\plugin.php:403
   
       [16-Dec-2012 10:46:07 UTC] PHP   9. register_post_type() C:\wamp\www\wordpress\content\plugins\woosidebars\classes\class-woo-sidebars.php:189
       ```
   
 * Thanks! Looking forward to hearing from you!
 * [http://wordpress.org/extend/plugins/woosidebars/](http://wordpress.org/extend/plugins/woosidebars/)

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

 *  Thread Starter [Maor Chasen](https://wordpress.org/support/users/maor/)
 * (@maor)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/php-noticed-when-wp_debug-is-enabled/#post-3280615)
 * FYI: I’m running on WAMP, not IIS or anything like that.
 *  Plugin Contributor [Matt Cohen](https://wordpress.org/support/users/mattyza/)
 * (@mattyza)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/php-noticed-when-wp_debug-is-enabled/#post-3280663)
 * Hi Maor,
 * My sincerest apologies for the delay in getting back to you on this.
 * WooSidebars version 1.2.1 (just deployed) addresses the “has_archive” property,
   setting it to the string “sidebars”.
 * This should resolve the PHP notice you’ve mentioned above (the “Array to string
   conversion” notice). 🙂
 * Thanks and regards,
    Matty.
 *  Thread Starter [Maor Chasen](https://wordpress.org/support/users/maor/)
 * (@maor)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/php-noticed-when-wp_debug-is-enabled/#post-3280664)
 * That’s awesome! Thanks a lot for letting me know, Matty!

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

The topic ‘PHP noticed when WP_DEBUG is enabled’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woosidebars_a9c7b8.svg)
 * [WooSidebars](https://wordpress.org/plugins/woosidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woosidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woosidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/woosidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woosidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woosidebars/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Maor Chasen](https://wordpress.org/support/users/maor/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/php-noticed-when-wp_debug-is-enabled/#post-3280664)
 * Status: resolved