Support Forum

Every time that you post a problem, PLEASE add the Joomla and the extension's versions and revisions (for example: Joomla 3.3.6, Contact Enhanced 3.3.5), PHP version and Server's Operating System. If you only manage only one site it is easier if you edit your profile and just add that information to your signature. Don't forget to add a detailed description of the problem. If possible, write down all steps to simulate the problem.

Before submitting a new post, PLEASE make sure you are running the latest version, test in different browsers (IE, FF, Chrome,..) and clear Joomla and browser's cache after every change you make.

Also, most questions are already answered in our FAQ and in iFAQ and Contact Enhanced documentation pages.

× Contact Enhanced is a contact component manager created to replace Joomla! core contacts component and add lots of advantages and new features (see Features ) and it offers many plugins and modules for several different purposes,
Product page | Documentation Page

CE 3.9.11 wrong loading of jquery.validate.min.js

3 years 5 months ago #25659 by webmastergreg
Hi all,

just noticed after the update to 3.9.11 that there's something wrong with the loading of jquery.validate.min.js

As now the code have the "true" parameter on the :
$doc->addScript( Uri::root(true) . 'components/com_contactenhanced/assets/js/jquery.validate.min.js');

But my site is in a sublfolder, so the path to file called is now like this :
https://mydomain.test/SUBFOLDERcomponents/com_contactenhanced/assets/js/jquery.validate.min.js

Leads to a 404
I just add a slash to resolve the issue :
Line 142 :
$doc->addScript( Uri::root(true) . '/components/com_contactenhanced/assets/js/jquery.validate.min.js');

and to line 147, 155

thanks Douglas to check that ;)

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

3 years 5 months ago #25660 by support
Greetings,

Thank you for reporting this issue. I'll release a new version with this fix in a few minutes.

Best regards,

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

3 years 5 months ago #25662 by webmastergreg
Great,
be aware that if the site is NOT in a subdirectory, my fix will result as a double slash.
mydomain.test//components/com_...sets/js/jquery.validate.min.js

Some others use: $doc->addScript(JUri::base(true).'
perhaps better ?

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

Powered by Kunena Forum

Copyright © 2018 IdealExtensions.com. All Rights Reserved.

This site is not affiliated with or endorsed by the Joomla!™ Project. It is not supported or warranted by the Joomla!™ Project or Open Source Matters™. The Joomla!™ logo is used under a limited license granted by Open Source Matters™, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons and deriving aggregate information (analytics). This information is retained for a minimum of 1 and a maximum of 24 months.
Feedback