Javascript problem vite Vote

  • Posts: 27
  • Thank you received: 0
4 years 3 months ago #323480

-- url of the page with the problem -- : hungarianflavours.com
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.0
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Chrome 85.0.4183.83
-- Error-message(debug-mod must be tuned on) -- : Uncaught TypeError: a is not a function
at sc_ba6cf724c8bb1cf5b084e79ff230626e.js:4
at sc_ba6cf724c8bb1cf5b084e79ff230626e.js:4
at sc_ba6cf724c8bb1cf5b084e79ff230626e.js:4
mandula-porkolt-1kg:99 the HikaShop vote initialization JS is loaded while hikaVote is not available !
mandula-porkolt-1kg:107 Uncaught TypeError: Cannot read property 'registerAjax' of undefined
at mandula-porkolt-1kg:107
at mandula-porkolt-1kg:107

Hi,

I have a javascript problem with vote .
hungarianflavours.com/webaruhaz/mandula-porkolt-1kg

I have my site checked on Mobile Friendly test . It says:

Page partially loaded
Not all page resources could be loaded. This can affect how Google sees and understands your page. Fix availability problems for any resources that can affect how Google understands your page.

googleads.g.doubleclick.net/pagead/viewt...ces.com&rfmt=3&fmt=4
Script Googlebot blocked by robots.txt
hungarianflavours.com/media/com_hikashop/js/tooltip.js Script Other error
hungarianflavours.com/media/com_hikashop/js/vote.js Script Other error
hungarianflavours.com/media/jui/js/jquer...acaf3edca07249d04597 Script Other error

Is there any correspondence among google code and javascript problems?

Thank you for your help

Krisztian

Please Log in or Create an account to join the conversation.

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
4 years 3 months ago #323497

Hi,

Yes, the issue is that in your robots.txt you forbid search engines access to /media/com_hikashop/js/tooltip.js and /media/com_hikashop/js/vote.js
And thus, the vote system javascript appears to be missing for Google when it looks at the page and it gets javascript errors because of that even though these errors do not happen for your users as their browser doesn't care about the robots.txt which is something only taken into account by search engines.

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
4 years 3 months ago #323503

What can be the error in this robot.txt ? This error disappeared after I switched off Speedcache plugin.

User-agent: *
Allow: /*.js*
Allow: /*.css*
Allow: /*.png*
Allow: /*.jpg*
Allow: /*.gif*

Disallow: /administrator/
Disallow: /cache/
Disallow: /cli/

Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /libraries/
Disallow: /logs/

Disallow: /tmp/

Please Log in or Create an account to join the conversation.

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
4 years 3 months ago #323511

Hi,

Ah so maybe it's speedcache and not the robots.txt file which is the problem ?
Your robots.txt looks fine.
Maybe you need to configure speedcache to not mess with the votes system.
You might want to check with the support of that extension as I'm not familiar with it and thus don't know what should be done exactly nor how.

The following user(s) said Thank You: smoothie

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
4 years 3 months ago #323573

Hello Nicolas,

Thank you for your advice.
I will talk with them.

Best regards
Krisztian

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum