Title: error on activate wp_localize_script was called incorrectly
Last modified: July 3, 2019

---

# error on activate wp_localize_script was called incorrectly

 *  Resolved [charlieagain](https://wordpress.org/support/users/charlieagain/)
 * (@charlieagain)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/error-on-activate-wp_localize_script-was-called-incorrectly/)
 * Hi
 * I get this error when I download and activate your plugin on the latest wp installation
   with ultra themify theme.
 * Notice: wp_localize_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/charlief/dataharvest/wordpress/
   wp-includes/functions.php on line 4773

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

 *  Thread Starter [charlieagain](https://wordpress.org/support/users/charlieagain/)
 * (@charlieagain)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/error-on-activate-wp_localize_script-was-called-incorrectly/#post-11698798)
 * I have worked out what it is. It happens if WP is in debug mode. Whether this
   means it is a bug or not I am not sure, but if you turn off debugging, the plugin
   is usable .
 *  Plugin Author [tbenyon](https://wordpress.org/support/users/tbenyon/)
 * (@tbenyon)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/error-on-activate-wp_localize_script-was-called-incorrectly/#post-11728071)
 * Hey [@charlieagain](https://wordpress.org/support/users/charlieagain/),
 * I really appreciate you taking the time to flag this issue.
 * I’ve removed the line that causes this from the plugin code and this change will
   be in the next release.
 * Really appreciate the feedback!
 * I’ll mark this as resolved as it is in the code base but if you have any further
   issues please don’t hesitate to get back in contact.
 * If you get a change I’d be really grateful for a review 🙂
    [https://wordpress.org/plugins/external-login/#reviews](https://wordpress.org/plugins/external-login/#reviews)
   Thanks Charlie,
 * Tom

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

The topic ‘error on activate wp_localize_script was called incorrectly’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/external-login_fbebd6.svg)
 * [External Login](https://wordpress.org/plugins/external-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/external-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/external-login/)
 * [Active Topics](https://wordpress.org/support/plugin/external-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/external-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/external-login/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [tbenyon](https://wordpress.org/support/users/tbenyon/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/error-on-activate-wp_localize_script-was-called-incorrectly/#post-11728071)
 * Status: resolved