Title: Javascript debugging
Last modified: April 3, 2017

---

# Javascript debugging

 *  [kray427](https://wordpress.org/support/users/kray427/)
 * (@kray427)
 * [9 years ago](https://wordpress.org/support/topic/javascript-debugging-2/)
 * I do not have very much experience (at all) with Javascript and have never manually
   edited any of it on my WordPress site, locavoreatyourdoor.com – I changed debug
   mode to “true” and received these notices:
 * Notice: wp_enqueue_style 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 /homepages/9/d281194335/htdocs/LAYD/
   wp-includes/functions.php on line 3942
 * 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.) in /homepages/9/d281194335/htdocs/LAYD/
   wp-includes/functions.php on line 3942
 * Notice: Trying to get property of non-object in /homepages/9/d281194335/htdocs/
   LAYD/wp-content/plugins/woocommerce-predictive-search/classes/class-wc-predictive-
   search-functions.php on line 310
 * Notice: wp_woocommerce_session_567cb3e1b5e26dbc71090e0becd65462 cookie cannot
   be set – headers already sent by /homepages/9/d281194335/htdocs/LAYD/wp-includes/
   functions.php on line 3942 in /homepages/9/d281194335/htdocs/LAYD/wp-content/
   plugins/woocommerce/includes/wc-core-functions.php on line 733
 * Thank you in advance for any help on how to fix this!!

Viewing 1 replies (of 1 total)

 *  [graphicscove](https://wordpress.org/support/users/graphicscove/)
 * (@graphicscove)
 * [9 years ago](https://wordpress.org/support/topic/javascript-debugging-2/#post-8991965)
 * It doesn’t look like an issue with javascript itself, just the way it’s being
   called. You’ll have to check how you’re loading it in functions.php and check
   if any plugin you have recently installed might be causing some conflicts.
 * ~ Steven

Viewing 1 replies (of 1 total)

The topic ‘Javascript debugging’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [graphicscove](https://wordpress.org/support/users/graphicscove/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/javascript-debugging-2/#post-8991965)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
