Title: Log in errors
Last modified: August 20, 2016

---

# Log in errors

 *  [AD7863](https://wordpress.org/support/users/ad7863/)
 * (@ad7863)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/log-in-errors/)
 * Hello, recently I couldn’t log in and I was getting lots of log in errors. I 
   changed the theme to a completely new one and now I still can’t log in. Here 
   are the errors. Someone please help me.
 *     ```
       Notice: add_option was called with an argument that is deprecated since version 2.3 with no alternative available. in /home/mohammed/public_html/maxvideogaming.com/wp-includes/functions.php on line 3553
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/mohammed/public_html/maxvideogaming.com/wp-includes/functions.php:3553) in /home/mohammed/public_html/maxvideogaming.com/wp-content/plugins/w3-total-cache/lib/W3/Referrer.php on line 47
   
       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 init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/mohammed/public_html/maxvideogaming.com/wp-includes/functions.php on line 3587
   
       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 init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/mohammed/public_html/maxvideogaming.com/wp-includes/functions.php on line 3587
   
       Notice: Constant TEMPLATEPATH already defined in /home/mohammed/public_html/maxvideogaming.com/wp-config.php on line 108
   
       Notice: Constant ADMIN_COOKIE_PATH already defined in /home/mohammed/public_html/maxvideogaming.com/wp-config.php on line 111
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/mohammed/public_html/maxvideogaming.com/wp-includes/functions.php:3553) in /home/mohammed/public_html/maxvideogaming.com/wp-includes/pluggable.php on line 866
       ```
   

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

 *  [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * (@crondeau)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/log-in-errors/#post-2610798)
 * I would change the theme to Twenty Ten or Twenty eleven. Those themes are coded
   properly and should allow you to login.
 * If there’s still error, you should manually re-install wordPress.
 *  Thread Starter [AD7863](https://wordpress.org/support/users/ad7863/)
 * (@ad7863)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/log-in-errors/#post-2610803)
 * Here’s the problem, Christine.
 * When I change to the TwentyEleven theme, everything is fine and dandy.
 * However, I want to use a different theme, I’ve tried two different themes that
   I want to use.
 * Both throw up these errors.
 * Is there any way someone can help me find the root of these errors and tell me
   how to fix them?
 * Thanks.
 *  [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * (@crondeau)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/log-in-errors/#post-2610806)
 * If everything is working fine with TwentyTen, that means these new themes are
   badly coded.
    What you need to do is fix them or find one that works.
 * If you’ve purchased them, I would contact the theme developer.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/log-in-errors/#post-2610807)
 * And where did you get these themes from?
 *  Thread Starter [AD7863](https://wordpress.org/support/users/ad7863/)
 * (@ad7863)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/log-in-errors/#post-2611026)
 * The Internet.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/log-in-errors/#post-2611033)
 * Yes – we kinda figured that. Where **specifically**?
 *  Thread Starter [AD7863](https://wordpress.org/support/users/ad7863/)
 * (@ad7863)
 * [14 years ago](https://wordpress.org/support/topic/log-in-errors/#post-2611092)
 * OK, I’ve changed the theme again to a very popular theme which I’m very sure 
   is made correctly and I’m still having problems. Here are the errors:
 *     ```
       Notice: add_option was called with an argument that is deprecated since version 2.3 with no alternative available. in /home/mohammed/public_html/maxvideogaming.com/wp-includes/functions.php on line 3553
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/mohammed/public_html/maxvideogaming.com/wp-includes/functions.php:3553) in /home/mohammed/public_html/maxvideogaming.com/wp-content/plugins/w3-total-cache/lib/W3/Referrer.php on line 47
   
       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 init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/mohammed/public_html/maxvideogaming.com/wp-includes/functions.php on line 3587
   
       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 init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/mohammed/public_html/maxvideogaming.com/wp-includes/functions.php on line 3587
   
       Notice: Constant TEMPLATEPATH already defined in /home/mohammed/public_html/maxvideogaming.com/wp-config.php on line 108
   
       Notice: Constant ADMIN_COOKIE_PATH already defined in /home/mohammed/public_html/maxvideogaming.com/wp-config.php on line 111
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/mohammed/public_html/maxvideogaming.com/wp-includes/functions.php:3553) in /home/mohammed/public_html/maxvideogaming.com/wp-includes/pluggable.php on line 866
       ```
   
 * I’m starting to think it’s a problem with the W3 Total Cache plugin.
 *  Thread Starter [AD7863](https://wordpress.org/support/users/ad7863/)
 * (@ad7863)
 * [14 years ago](https://wordpress.org/support/topic/log-in-errors/#post-2611116)
 * Hello, I’m just replying to say that I’ve finally managed to fix this problem.
 * I was forcing www. before my domain name and I just changed it to non-www in 
   my wp-config file and bam!
 * Everything started working flawlessly after that.
 * Before:
 *     ```
       define('WP_HOME','http://www.maxvideogaming.com');
       define('WP_SITEURL','http://www.maxvideogaming.com');
       ```
   
 * After:
 *     ```
       define('WP_HOME','http://maxvideogaming.com');
       define('WP_SITEURL','http://maxvideogaming.com');
       ```
   
 * Hope this helps anyone who has this problem in the future. 😉

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

The topic ‘Log in errors’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [AD7863](https://wordpress.org/support/users/ad7863/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/log-in-errors/#post-2611116)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
