• Resolved carriemims

    (@carriemims)


    Using WP 5, and just updated plugin to 3.3. I received the following:
    Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/content/a2pewpnaspod04_data06/71/3967671/html/wp-includes/functions.php on line 4231

    Can anyone offer a solution?

    Thank you

Viewing 1 replies (of 1 total)
  • Hello @carriemims,

    The Notice that you’re seeing is a message from WordPress that a file wasn’t enqueued in the preferred way, however this doesn’t cause any functionality issues.

    If you’re seeing this message displayed on the site, then we recommend to disable PHP error reporting and display of notices/ warnings. You can do this by either contacting your website host about updating your php.ini file, or by installing this plugin: https://www.ads-software.com/plugins/php-settings/

    With that installed, you can go to Tools >> PHP Settings, and set it up like this: https://prntscr.com/mezm1d
    error_reporting = 1
    display_errors = Off

    This may take some time to take effect on the site (php.ini changes usually take at least 5-10 minutes on most servers). This will also help prevent any other PHP errors from being displayed to your users, while still allowing actual errors to be displayed.

    If you’re unable to do this, or want another solution, please send us an email at [email protected] and our awesome team here can assist you with this further. Just be sure to include the name on your account and the domain name associated with it too.

    Thanks!
    [ Signature moderated ]

Viewing 1 replies (of 1 total)
  • The topic ‘wp_enqueue_script error after update to 3.3’ is closed to new replies.