Title: Error with any theme
Last modified: August 7, 2017

---

# Error with any theme

 *  [polyfade](https://wordpress.org/support/users/polyfade/)
 * (@polyfade)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/error-with-any-theme/)
 * With no other plugins installed, this plugin returns an error:
 * `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 /Users/me/Sites/sandbox/wp-includes/
   functions.php on line 4139`
 * `Warning: Cannot modify header information - headers already sent by (output 
   started at /Users/me/Sites/sandbox/wp-includes/functions.php:4139) in /Users/
   me/Sites/sandbox/wp-includes/pluggable.php on line 1210`
    -  This topic was modified 8 years, 10 months ago by [polyfade](https://wordpress.org/support/users/polyfade/).

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

 *  Thread Starter [polyfade](https://wordpress.org/support/users/polyfade/)
 * (@polyfade)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/error-with-any-theme/#post-9389397)
 * Placing `[WP_AJAX_LOGIN]` does not work inside a text widget.
 * Placing `[WP_AJAX_LOGIN]` inside a page renders the login form, however, it redirects
   to the index page instead of the current page.
 * Since I did not specify a redirect URL in the _Wp Ajax Login_ options, it should
   not redirect back home, correct?
 *  Plugin Author [Navdeep](https://wordpress.org/support/users/neerajsharma2855/)
 * (@neerajsharma2855)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/error-with-any-theme/#post-9407189)
 * Hello Polyfade
    If you want use in widget . you need to add this code in theme
   functions.php . // Enable shortcodes in text widgets add_filter(‘widget_text’,’
   do_shortcode’);

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

The topic ‘Error with any theme’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-login-with-ajax_8a8d93.svg)
 * [Wp Login with Ajax](https://wordpress.org/plugins/wp-login-with-ajax/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-login-with-ajax/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-login-with-ajax/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-login-with-ajax/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-login-with-ajax/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [login](https://wordpress.org/support/topic-tag/login/)

 * 2 replies
 * 2 participants
 * Last reply from: [Navdeep](https://wordpress.org/support/users/neerajsharma2855/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/error-with-any-theme/#post-9407189)
 * Status: not resolved