Skip to main content

#65 Uncaught ReferenceError: Competition is not defined

Posted in ‘NorrCompetition’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information (available for public)

PHP version
8.0

Latest post by b2z on Friday, 11 August 2023 10:46 EEST

Kiko
Hi,

When I try to vote as an public (not registered) user i can see the following error in the console:

Uncaught ReferenceError: Competition is not defined
onclick https://www.parquenacionalsierraguadarrama.es/cultura/concursos/votacion-viii-foto/67-la-belleza-de-lo-pequeno:1

It is the same with all the photos.

However I can vote as a registered user. I have check that the vote permision is OK for public in the contest.

Thnak you in advance.

b2z
Hello,

I see that you are using JCH optimize. Can you please include competition.min.js to excludes list as it does not work when combined by JCH optimize. Or the better approach for stable perfomance of our component to use "Excluding files from a particular extension" and exclude all "com_competition" Javascript files.

See https://www.jch-optimize.net/documentation/minify-css-and-javascript.html - Procedure 5.1. Excluding files and inline scripts

Kind regards,
Dmitrijs

Kiko
Thanks, Dmitrijs.

It works. I have excluded all javascript files from "com_competition" (and I have disabled also the cache from com_competition pages, just in case)

Best wishes,

b2z
Thank you for contacting NorrNext Support. This message is to confirm that the ticket is closed.

If you are happy with our support, we would be grateful if you took the time for a small review or just a vote on Trustpilot.
https://www.trustpilot.com/review/norrnext.com

Kind regards,
Dmitrijs
Support information

Support hours: You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+3), but not limited. Our staff is pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days.


Our time: / Your time:

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. We also ask you to remove temporary credentials at your site after the problem is resolved. Thank you.

Support of free extensions is not provided on this forum. Please submit your questions or report issues via Github tracker. See link on the product page.