Title: error when a user login
Last modified: February 11, 2022

---

# error when a user login

 *  [kanchannachnani](https://wordpress.org/support/users/kanchannachnani/)
 * (@kanchannachnani)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-a-user-login/)
 * I inspect the console and note the following error:
    When anyone login my website,
   the console shows the output as follows:
 *     ```
       jQuery(document).ready( function() {
   
       if(0){
   
       console.log('logged_in');
   
       jQuery("id").remove();
   
       }else{
       console.log('Not logged_in');
   
       jQuery("#otherid").remove();
   
       }
       According to the website's code the actual output should be as follow:
   
       jQuery(document).ready( function() {
   
       if(1){
   
       console.log('logged_in');
   
       jQuery("id").remove();
   
       }else{
   
       console.log('Not logged_in');
   
       jQuery("#otherid").remove();
   
       }
       ```
   
 * After “empty cache and hard reload” we get the actual output. But after “normal”
   reload we get above first output. Due to this error no one can login for the 
   site. When any user login the pages shows only “loading…” message. Also after“
   empty cache and hard reload”, user goes/redirect the page where logedin user 
   niether upload his/her image nor submit any file. Please help to fix the error.
   I have tried to fix the error.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-a-user-login%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘error when a user login’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

 * 0 replies
 * 2 participants
 * Last reply from: [kanchannachnani](https://wordpress.org/support/users/kanchannachnani/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-a-user-login/)
 * Status: not resolved