error when a user login

  • Unknown's avatar

    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();

    }
    Expand
    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 blog I need help with is: (visible only to logged in users)

  • Hi there!

    Since your site is hosted with Bluehost, and not with WordPress.com, it’s best if you ask that question on https://wordpress.org/support/forums/.

    Here, we can only help with issues related to WordPress.com, I’m afraid. If you’d like to read more about the differences between WordPress.com and WordPress.org, have a look at this page:

    https://wordpress.com/support/com-vs-org/.

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