Plugin Hikashop Matomo : Uncaught SyntaxError: Unexpected token 'false'

  • Posts: 468
  • Thank you received: 30
  • Hikashop Business
1 month 2 weeks ago #359945

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 3.10.12
-- PHP version -- : 8.0.30
-- Browser(s) name and version -- : Chrome 123.0.6312.59
-- Error-message(debug-mod must be tuned on) -- : Uncaught SyntaxError: Unexpected token 'false'

Bonjour,

Je tente d'utiliser le plugin "System - Hikashop Matomo" (version 1.0.1).

Mais j'ai systématiquemenet une erreur "Uncaught SyntaxError: Unexpected token 'false'" sur les pages de listings (catégories, produits). Elle ne se déclenche pas sur les pages des produits, ni sur la page du checkout. Je n'ai pas plus de détails sur cette erreur (rapport d'erreurs réglé sur Maximum).

Elle provoque des dysfonctionnements d'autres extensions, donc pour l'instant, je ne peux pas l'activer.

Attachments:
Last edit: 1 month 1 week ago by lesyeux. Reason: Résolu

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

  • Posts: 4543
  • Thank you received: 612
  • MODERATOR
1 month 2 weeks ago #359948

Hello,

Pouvez vous nous fournir les éléments suivants :
- Un lien Url vers votre Backend (Administrator)
- Des références utilisateur Backend (avec les ACL au maximum)
Note : Utilisez notre formulaire de Contact us pour fournir ces éléments, et n'oubliez pas d'ajouter à votre message un lien Url vers ce sujet de notre forum.

Cordialement

Last edit: 1 month 2 weeks ago by Philip.

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

  • Posts: 468
  • Thank you received: 30
  • Hikashop Business
1 month 1 week ago #359958

Merci d'avance pour votre aide. Je viens de vous envoyer l'accès au backend avec droits superuser.
C'est un clone du site, où l'on peut constater le problème et où l'on peut agir en toute liberté.

Last edit: 1 month 1 week ago by lesyeux.

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

  • Posts: 4543
  • Thank you received: 612
  • MODERATOR
1 month 1 week ago #359960

Hello,

Really sorry for this return, but we aren't able to find where the error message...
Can you provide an Url link (and if required a step by step process to see the error message).

Regards

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

  • Posts: 468
  • Thank you received: 30
  • Hikashop Business
1 month 1 week ago #359998

All shop categories, starting with the home page : "Nouveautés", "Pour Elle", "Pour Lui", "Collections"…

The error is not displayed on the site pages. It is only visible in the browser console. However, its presence can lead to malfunctions. For example, the Gtranslate extension is KO (the choice of language is normally displayed at the top left of the page. With this error, it is displayed at the bottom left; the menu has lost its styling and the list of pre-selected languages is not correct).



Firefox gives me other information.
The error becomes: "Uncaught SyntaxError: missing ] after element list".

Attachments:
Last edit: 1 month 1 week ago by lesyeux.

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

  • Posts: 468
  • Thank you received: 30
  • Hikashop Business
1 month 1 week ago #360000

Il manquait une virgule ligne 162 du fichier matomo.php du plugin dans sa version 1.0.1

"_paq.push(['setEcommerceView',
	false, // (Required) productSKU
	false, // (Optional) productName
	".json_encode($category->category_name)."
	false // (Optional) price
]);"

remplacé par :
"_paq.push(['setEcommerceView',
	false, // (Required) productSKU
	false, // (Optional) productName
	".json_encode($category->category_name).",
	false // (Optional) price
]);

Attachments:
The following user(s) said Thank You: nicolas

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

Time to create page: 0.081 seconds
Powered by Kunena Forum