WordPress.org

Ready to get started?Download WordPress

Forums

Debug Bar
[resolved] Error notices display suppressed and not shown in the Debug Bar panel (5 posts)

  1. Brad Touesnard
    Member
    Posted 1 year ago #

    Users reported they were getting the following PHP notice with my WP Migrate DB plugin.

    Notice: get_bloginfo was called with an argument that is <strong>deprecated</strong> since version 2.2! The <code>siteurl</code> option is deprecated for the family of <code>bloginfo()</code> functions. Use the <code>url</code> option instead.

    I've been developing with WP_DEBUG and Debug Bar for quite a while now, so I was surprised I hadn't seen this. When I disabled Debug Bar, I could see the notices. It seems that Debug Bar is suppressing these notices from displaying but not showing them in its panel either.

    To recreate, you should be able to just make a call to get_bloginfo( 'siteurl' ).

    Let me know if you need more details to recreate this issue.

    http://wordpress.org/extend/plugins/debug-bar/

  2. Mark Jaquith
    WordPress Lead Dev
    Plugin Author

    Posted 1 year ago #

    Confirmed. Can fix it in wp-config.php with an appropriate error_reporting() call. Digging in to see what's doing this.

  3. Mark Jaquith
    WordPress Lead Dev
    Plugin Author

    Posted 1 year ago #

    Actually, the error_reporting() call didn't fix it.

  4. Mark Jaquith
    WordPress Lead Dev
    Plugin Author

    Posted 1 year ago #

  5. Brad Touesnard
    Member
    Posted 1 year ago #

    Awesome, thanks for digging into this Mark.

    I wonder why its being suppressed by default? Now that I know, I'll always use the Log Deprecated Notices plugin, but I'm concerned for the other plugin developers who are responsibly using Debug Bar and aren't seeing the deprecated notices.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags