"Uncaught TypeError: $.isMobile is not a function" causes JavaScript to fail

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
Hello Dear Nopcommerce community,

The past month my website has been struggling with an error I seem to find no solution to on the interwebs:

"Uncaught TypeError: $.isMobile is not a function"

What this error causes: all the javascript files on the website malfunction.

I have no idea what changed, but these issues have turned up since I have been on holiday.

For those interested: you can view my live website on www.brickhunters.be

Whenever you see the Jcarousel or cloudzoom applications malfunction, you should be able to see the error via F12. This only happens half of the time, and when you refresh the page, the error is suddenly resolved.

Is this something I should take up with the hosting service? Because on my end, I do not recall doing any changes on the website the past month.
8 years ago
Hi,

We couldn't reproduce any issues on your site.

This seems like a browser issue. What browser are you using ? Are you testing this on mobile device ?
8 years ago
Hello there,

No, I am not currently on a mobile device. All of our users, on different browsers have this issue and it is really frustrating.

You can tell if the site is failing whenevr you are on a product: you see duplicate images. That is when I can consult this error message...

Thank you for taking your time to look into this. :)
8 years ago
BrickHunters wrote:
Hello there,

No, I am not currently on a mobile device. All of our users, on different browsers have this issue and it is really frustrating.

You can tell if the site is failing whenevr you are on a product: you see duplicate images. That is when I can consult this error message...

Thank you for taking your time to look into this. :)


Hi again,

We have replied to your posts in our forums several days ago, but have not heard from you. Can you see our reply and see whether it will fix your issue.

Hope that helps!
8 years ago
Dear,

Thank you for your concern. However, downloading a new package didn't work out for me.

I find it rather curious. I was able to solve this problem in another manner.

By opening the javascript file I saw the procedure it gave me an error for. I changed the following:

$.isMobile() --> $().isMobile

I did so for all the javascripts which contained this line, and the issue seems to be gone.

Now what I am looking for is an explanation and a confirmation for what I did is the right thing.
8 years ago
BrickHunters wrote:
Dear,

Thank you for your concern. However, downloading a new package didn't work out for me.

I find it rather curious. I was able to solve this problem in another manner.

By opening the javascript file I saw the procedure it gave me an error for. I changed the following:

$.isMobile() --> $().isMobile

I did so for all the javascripts which contained this line, and the issue seems to be gone.

Now what I am looking for is an explanation and a confirmation for what I did is the right thing.


Hi again,

I have replied to your forum post. It looks like you not downloaded the latest package maybe due to expired license. Please see my comments in our forum.

Please do not duplicate forum posts in both forums. I think here is not the correct place for this issue, so we are replying to the posts in our forum.

Hope that makes sense!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.