• 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!

    https://www.ads-software.com/extend/plugins/woosidebars/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Maor Chasen

    (@maor)

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

    Plugin Author Matt Cohen

    (@mattyza)

    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

    (@maor)

    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.