• Resolved esther0708

    (@esther0708)


    I’m seeing repeated log entries related to WPForms Lite triggering _doing_it_wrong() warnings in WordPress. Here’s what’s showing in the logs:

    doing_it_wrong_run Action 0
    WPForms\ErrorHandler->action_doing_it_wrong_run()
    Plugin: wpforms-lite

    doing_it_wrong_trigger_error Filter 10
    WPForms\ErrorHandler->filter_doing_it_wrong_trigger_error()
    Plugin: wpforms-lite

    Could you please confirm whether this is expected behaviour or if it’s related to a specific bug or deprecated function usage within the plugin? It’s not causing front-end issues, but it does clutter the error logs and makes it harder to catch more critical issues during debugging.

    I’m running the latest version of WPForms Lite and WordPress.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Rajab Said

    (@snrjosh)

    Hi @esther0708,

    Thanks for reaching out!

    The action_doing_it_wrong_run() function is a helpful tool in WPForms that manages how certain notifications appear in your WordPress dashboard.

    It’s crucial for WordPress 6.7 and newer versions, where it helps prevent unnecessary warning messages from cluttering up your dashboard.

    The function works quietly in the background, making sure that everything runs smoothly while maintaining compatibility with popular debugging tools like Query Monitor (screenshot). You don’t need to do anything with it – it’s there to make sure your experience with WPForms stays clean and professional!

    However, if you’d like to disable the error handler, you can do so by adding the following constant to your wp-config.php file:

    define( 'WPFORMS_DISABLE_ERROR_HANDLER', true );

    Here’s a helpful guide on how to edit your wp-config.php file.

    If you have any additional questions, please feel welcome to let me know.

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘warnings in WordPress’ is closed to new replies.