• Resolved gluecklichezwerge

    (@gluecklichezwerge)


    Hello,

    unfortunately my last post has been deleted, but I don’t know why. I’ll just give it another try. If I’m in wrong section, please forgive me, but send a short pm, in case you need to delete again. That would be very helpful and user-friendly. ?? Thank you!

    While working on a friends webshop I gave W3 Total Cache a try to see if it is any helpful for me. Because most of what I wanted to do was already achieved by script, I uninstalled it a day later.
    Now I realized I have an error in console:
    Uncaught ReferenceError: r is not defined at (index):801
    Error is showing up on every page, just with another line at the end, but always index.
    Because I am a total beginner in scripting and debugging I am totally lost here.
    I can only assume what might have happened. Either I created static .html pages to improve site performance or I used minify options for the same reason.
    Any idea how I could get that fixed?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is not related to a w3tc problem but the reason is because in your code u didn’t define the “r” variable to anything on start so later when it checks to see if its == “1” it results in a “not defined” error. So you need to: “var r = 0” just before your while statement.

    PS – I like your site.

    Thread Starter gluecklichezwerge

    (@gluecklichezwerge)

    Hi Fist Full of Crisco,

    thank you for your help. I already realized what you mentioned, but wasn’t sure where to add code (to which file/path).
    In the meantime I’ve been lucky, Storefront released an update on their theme today, which solved the issue.
    Thank you for your statement regarding the site, was a real nice project for me. ??

    All the best to you, best regards,

    -Bj?rn

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught ReferenceError: r is not defined’ is closed to new replies.