The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] PHP noticed when WP_DEBUG is enabled (4 posts)

  1. Maor Chasen
    Posted 3 years ago #


    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!


  2. Maor Chasen
    Posted 3 years ago #

    FYI: I'm running on WAMP, not IIS or anything like that.

  3. Matty Cohen
    Plugin Author

    Posted 3 years ago #

    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,

  4. Maor Chasen
    Posted 3 years ago #

    That's awesome! Thanks a lot for letting me know, Matty!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooSidebars
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic