• jthom

    (@jthom)


    this is really bizarre. when i am logged in to the wordpress dashboard my site loads fine, but when i am logged out, i just get the “loading” bar and the site never loads.

    i’ve tried deactivating all plugins – this didn’t help.

    what could be going wrong here?

    my site is here: http://marleydaemon.ca

    thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Rajesh Soni

    (@rajeshsoni)

    There’s a JavaSCript error on the home page. Try fixing this error first.

    Uncaught TypeError: Cannot read property 'top' of undefined (main.js 1102)

    Thread Starter jthom

    (@jthom)

    Thanks Rajesh – how do I go about fixing this error?

    Rajesh Soni

    (@rajeshsoni)

    Well you’ll need some programming experience to be able to fix this.

    M

    (@metacomcreative)

    Did the site work correctly at any point in time? If so, when did you notice it stopped working?

    I see the loading bar, but it’s hard to trouble shoot as there isn’t a whole lot that I can see. There is a Javascript error that appears in the Console, that may or may not be related:

    Uncaught TypeError: Cannot read property 'top' of undefined main.js:1102

    When you are logged in to the site, and it loads correctly, do you see this same error in the Console?

    Edit: Rajesh beat me to it – but it would still be helpful to know if you see this error when you are logged in as well. Are you familiar with the console?

    Thread Starter jthom

    (@jthom)

    i don’t think the site has ever worked while i’ve been logged out of dashboard.

    the error does not appear in the firebug console when i’m logged in. strange.

    M

    (@metacomcreative)

    Thank you for the additional info. There is an entry in the Codex that may help: Using Your Browser to Diagnose JavaScript Errors. In particular, try to see if SCRIPT_DEBUG solves the issue or not and then report back.

    Thread Starter jthom

    (@jthom)

    thanks Ryan – I entered the SCRIPT_DEBUG code in the wp-config file as suggested, but the issue persists.

    M

    (@metacomcreative)

    Hm… Did you modify the main.js in your theme? http://jessethom.com/marleydaemon/wp-content/themes/ThisWay/main.js

    If you save backup of the current main.js file, and upload a fresh copy, does that resolve the problem?

    Thread Starter jthom

    (@jthom)

    Ryan – i have not modified the main.js or any of the theme’s code.

    I tried your suggestion – backing up the current main.js and uploading a fresh copy. Still getting the same error.

    M

    (@metacomcreative)

    Can you try disabling all of your plugins and seeing if your site works? If so, then the issue probably stems from a plugin causing the JavaScript conflict.

    If that’s the case, try enabling your plugins one by one, viewing the site after activating each one. And then you can pinpoint which plugin is causing the issue.

    Thread Starter jthom

    (@jthom)

    Hey Ryan – yes, I tried that and still no change. Thank you for spending so much time helping me with this. I hope to figure this out soon!
    🙂

    M

    (@metacomcreative)

    Have you also tried reverting back to the default Twenty Eleven or Twenty Twelve theme?

    Thread Starter jthom

    (@jthom)

    Hi Ryan – yes, I can revert back to the default themes and everything works ok.

    Really confused about this. Thanks for all your help – hopefully the answer will surface soon.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Site only loads when logged in to dashboard’ is closed to new replies.