WordPress.org

Support

Support » Plugins and Hacks » errors in debug mode

errors in debug mode

  • When in WordPress’s DEBUG mode, the plugin produces errors because it calls wp_enqueue_script and wp_enqueue_style functions outside an init action. Please update it so that it calls the functions inside an init action hook function. It is annoying to have errors occupying a space on top of the page when I try to debug other errors. Thank you.

    And also the javascript issue it is not working as expected in non-accordion mode that plus/minus sign is not showing correctly. If you click to open many questions without close them, you will see what I mean. The patch I posted will correct it. 🙂

    I am currectly patched the plugin myself but it would be really cumbersome when the time comes to update the plugin..

    https://wordpress.org/plugins/q-and-a-focus-plus-faq/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ELsMystERy
    Member

    @elsmystery

    I updated it with the patch, so that should be fixed. Make sure you have the latest version. I ran it in debug mode when I did the last update and did not see any errors. I will check it again in a little while.

    Plugin Author ELsMystERy
    Member

    @elsmystery

    I tested it on 2 different sites with WP_DEBUG on without errors. have you tried different settings?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘errors in debug mode’ is closed to new replies.