Jump to content

Recommended Posts

Buongiorno a tutti,

ho un problema occorso dopo la migrazione da parte del provider dello spazio web e del database.

Per aumentare le performance e la velocità di un e-commerce PS 1.6.0.8 , il provider dell'hosting ha effettuato un upgrade verso una nuova piattaforma. Successivamente a questo non si visualizzano più alcune pagine, tra cui tutto il FO e le pagine dei prodotti e delle statistiche nel BO.

L'errore restituito è questo (in particolare questo riguarda le statistiche):

"

[PrestaShopDatabaseException]

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'lamercer94089.h.name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
 

SELECT h.`name` AS hook, m.`name`
				FROM `ps_module` m
				LEFT JOIN `ps_hook_module` hm ON hm.`id_module` = m.`id_module`
				LEFT JOIN `ps_hook` h ON hm.`id_hook` = h.`id_hook`
				WHERE h.`name` LIKE 'displayAdminStatsModules'
					AND m.`active` = 1
				GROUP BY hm.id_module
				ORDER BY hm.`position`


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

 

629. 			WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
630. 		}
631. 		else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
632. 		{
633. 			if ($sql)
634. 				throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
635. 			throw new PrestaShopDatabaseException($this->getMsgError());
636. 		}
637. 	}
638. 
639. 	/**

DbCore->displayError - [line 325 - classes/db/Db.php] - [1 Arguments]
DbCore->query - [line 501 - classes/db/Db.php] - [1 Arguments]
DbCore->executeS - [line 193 - controllers/admin/AdminStatsTabController.php] - [1 Arguments]
AdminStatsTabControllerCore->getModules - [line 152 - controllers/admin/AdminStatsTabController.php]
AdminStatsTabControllerCore->displayMenu - [line 54 - controllers/admin/AdminStatsTabController.php]
AdminStatsTabControllerCore->initContent - [line 180 - classes/controller/Controller.php]
ControllerCore->run - [line 373 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 54 - admin/index.php]

 

""

Il supporto dell'hosting mi ha scritto che la query non è compatibile con lo strict mode di MySQL 5.7.

Avete qualche idea da darmi per venirne fuori.

Grazie in anticipo.

 

 

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...