• 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 to see the link]

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