• czafir

    (@czafir)


    Hello, my checkout page grayes out and when i add a product to cart it doubles the quantity.Using the Wp-debug i keep getting the following errors:
    Notice: wp_register_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.) in mypath/wp-includes/functions.php on line 3897

    Any help is appreciated
    Thanks in advance,
    czafir

Viewing 2 replies - 1 through 2 (of 2 total)
  • Clarion Technologies

    (@clarionwpdeveloper)

    Hello czafir,

    Scripts and styles should not be registered or enqueued until the wp_enqueue_script you first need to enqueue_script using the ‘wp_enqueue_script’ hook after that hook call use the ‘wp_register_script’ for registering the scripts.

    Please check in you function.php file and get it correct hook call.

    Thanks,

    Thread Starter czafir

    (@czafir)

    well i dont know how to edit the file to do that.
    If i get a clean functions.php file is the problem gonna be resolved?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp register script’ is closed to new replies.