WordPress.org

Ready to get started?Download WordPress

Forums

Q and A Focus Plus FAQ
errors in debug mode (3 posts)

  1. t3rra
    Member
    Posted 1 month ago #

    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/

  2. ELsMystERy
    Member
    Plugin Author

    Posted 1 month ago #

    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.

  3. ELsMystERy
    Member
    Plugin Author

    Posted 1 month ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags