Jump to content

Recommended Posts

Bonjour, 

Après des recherches sur le problème je viens  demander votre aide.

Je n'ai fait aucune mise ... site : tentes4saisons.com

Si quelqu'un peut m'aider.

Merci d'avance.
Pierrick

[PrestaShopDatabaseException]

Duplicate entry '5106' for key 'PRIMARY'
 

INSERT INTO `ps_ganalytics_data` (id_cart, id_shop, data) VALUES('5106','1','["MBG.addCheckoutOption(2,');","MBG.addCheckoutOption(2,'');"]') ON DUPLICATE KEY UPDATE data ='a:2:{i:0;s:27:"MBG.addCheckoutOption(2,');";i:1;s:28:"MBG.addCheckoutOption(2,'');";}' ;

at line 746 in file classes/db/Db.php

 

741.         if ($webservice_call && $errno) {
742.             $dbg = debug_backtrace();
743.             WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
744.         } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
745.             if ($sql) {
746.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
747.             }
748. 
749.             throw new PrestaShopDatabaseException($this->getMsgError());
750.         }
751.     }
Link to comment
Share on other sites

  • 2 months later...

Le module PrestShop ganalytics qui créé et gère les tables ps_ganalytics et ps_ganalytics_data n'est pas compatible Prestashop v1.7 :

"
Google Analytics is compatible with all versions of PrestaShop 1.4, 1.5 and 1.6."

https://github.com/PrestaShop/ganalytics

Il est donc en effet préférable de désinstaller ce module et d'insérer le Google tag directement dans le header du site sans passer par un module.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...