• Resolved mkovcu

    (@mkovcu)


    Hello,

    Plugin is constantly generating notice:

    PHP Notice: Function wp_enqueue_script was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks. This notice was triggered by the <code>jquery</code> handle. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.3.0.) in /home/mysite/webapps/mysite/wp-includes/functions.php on line 5833

    https://prnt.sc/sXdqnnyAFrSS

    Please check, thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Can confirm this issue. The site cannot be debugged (WP_DEBUG set to true) anymore, because this notice will be blocked. Please fix this issue.

    You can bypass the issue by commenting the line 333 in wp-content/plugins/cleverreach-wc/class-plugin.php

    Hopefully the next update will fix this issue.

    CleverReachSupportTeam

    (@cleverreachsupportteam2)

    Hello,

    thank you for your message concerning WordPress

    We would like to take a closer look at this topic.

    Please submit a support request by completing the form on our website at:
    https://support.cleverreach.de/hc/en-us/requests/new

    Best regards

    Dennis Schr?der`

    Thread Starter mkovcu

    (@mkovcu)

    Hi @cleverreachsupportteam2,

    I reported issue here and you are now aware of it, so i don’t understand why should i fill another form.

    Please take a closer look, you will also see another warnings / notices that get your plugin generates.

    Regards

    Thread Starter mkovcu

    (@mkovcu)

    Thanks @martinbraun

    Martin Braun

    (@martinbraun)

    @cleverreachsupportteam2 do it for us instead or will you gonna pay me to report it for you, since we have things to do as well? I gave enough information about what the problem is and where it’s rooted at.

    @mkovcu You welcome mate. Keep in mind that my bypass will stop jQuery from being load for the plugin, but you most likely load jQuery somewhere else in any case.

    CleverReachSupportTeam

    (@cleverreachsupportteam2)

    Hello,

    we have to analyze this individualy and this could not be done in such a platform.
    As soon as you contacted us https://support.cleverreach.de/hc/en-us/requests/new, we can check this more thoroughly.

    Best regards
    Your CleverReach team

    CleverReachSupportTeam

    (@cleverreachsupportteam2)

    Hello,

    we corrrected this behaviour.
    Just update the plugin.

    Best regards
    Your CleverReach team

    Thread Starter mkovcu

    (@mkovcu)

    Great to hear that, thank you!

    Regards

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘wp_enqueue_script was called incorrectly’ is closed to new replies.