Title: Invalid code
Last modified: August 22, 2016

---

# Invalid code

 *  Resolved [seprita](https://wordpress.org/support/users/digitohter/)
 * (@digitohter)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/invalid-code-5/)
 * Hi!
 * Unfortunately this plugins code is invalid and causing conflicts with other plugins.
   Here is WP debug message:
 * `Notice: wp_register_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.`
 * [https://wordpress.org/plugins/wp-custom-login/](https://wordpress.org/plugins/wp-custom-login/)

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

 *  Plugin Author [Ninos](https://wordpress.org/support/users/ninos-ego/)
 * (@ninos-ego)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/invalid-code-5/#post-5649994)
 * Thanks for your report. I’m planning a rewrite and then will fix it in this new
   version…
 *  Thread Starter [seprita](https://wordpress.org/support/users/digitohter/)
 * (@digitohter)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/invalid-code-5/#post-5649995)
 * Is that happening somewhere in the near future?
 *  Plugin Author [Ninos](https://wordpress.org/support/users/ninos-ego/)
 * (@ninos-ego)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/invalid-code-5/#post-5650001)
 * I think in the next few months. But that’s just a php notice. After you disable
   the debug mode you shouldn’t see the error anymore..
 *  Thread Starter [seprita](https://wordpress.org/support/users/digitohter/)
 * (@digitohter)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/invalid-code-5/#post-5650012)
 * As I said in my first post, this plugin causes conflicts with other plugins. 
   It’s not just a PHP notice. I enabled debug mode temporally to figure out the
   problem source.
 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/invalid-code-5/#post-5650290)
 * > I’m planning a rewrite and then will fix it in this new version…
 * I have just discovered this helpful plugin of yours, I am working on my wp-custom-
   login.css and I am curious as to the status of your rewrite plan in relation 
   to these php notices.
 * Many thanks!
 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/invalid-code-5/#post-5650295)
 * I do not know how to make use of this information, but I think the following 
   might help here:
 * [http://wordpress.stackexchange.com/questions/137104/wp-enqueue-script-was-called-incorrectly](http://wordpress.stackexchange.com/questions/137104/wp-enqueue-script-was-called-incorrectly)
 * [http://wordpress.stackexchange.com/questions/127835/enqueue-a-stylesheet-for-login-page-and-make-it-appear-in-head-element](http://wordpress.stackexchange.com/questions/127835/enqueue-a-stylesheet-for-login-page-and-make-it-appear-in-head-element)

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

The topic ‘Invalid code’ is closed to new replies.

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

 * 6 replies
 * 3 participants
 * Last reply from: [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/invalid-code-5/#post-5650295)
 * Status: resolved