R.Kinkeris Posted April 17, 2013 Share Posted April 17, 2013 (edited) Hello, Does anyone know what could be the problem (missing module or something) that makes all page unusable after logging in. For example - everything works fine until I log-in. After I log-in all pages are blank and I can only see something if I clear the cookies. Reinis Edited April 17, 2013 by R.Kinkeris (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 17, 2013 Share Posted April 17, 2013 thanks for sharing information about your issue. I've got question about it. You are talking about back office (admin login) or about customer login in front end? Link to comment Share on other sites More sharing options...
R.Kinkeris Posted April 17, 2013 Author Share Posted April 17, 2013 I was talking about front office. I found the problem. It was caused by Google translate bar code. Link to comment Share on other sites More sharing options...
vekia Posted April 17, 2013 Share Posted April 17, 2013 thanks for sharing information that problem is fixed. You said, that the issue was with google translate bar code, you disabled it? Link to comment Share on other sites More sharing options...
R.Kinkeris Posted April 17, 2013 Author Share Posted April 17, 2013 Yes, at first I used: <meta name="google-translate-customization" content="c700fc397c68692e-49a5351d4935335c-g3222ce0ef621053b-11"></meta> and <div id="google_translate_element"></div><script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true}, 'google_translate_element'); } </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> provided by: translate.google.com and it messed up the page. Instead I used: <div id="google_translate_element"></div> <script> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE }, 'google_translate_element'); } </script> <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> And it worked like a charm. 1 Link to comment Share on other sites More sharing options...
Davallen Posted May 20, 2013 Share Posted May 20, 2013 I have the same issue and I have not the Google translate code on my site. Any idea what it could be? Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2013 Share Posted May 20, 2013 I have the same issue and I have not the Google translate code on my site. Any idea what it could be? you should turn error reporting on then try to reload your front office and try to log in. if some error occur - you will see it Link to comment Share on other sites More sharing options...
Davallen Posted May 20, 2013 Share Posted May 20, 2013 I got an error but do not understand much of it Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2013 Share Posted May 20, 2013 if you are able - please take a screenshot or copy errors here Link to comment Share on other sites More sharing options...
Davallen Posted May 20, 2013 Share Posted May 20, 2013 Here is the error [PrestaShopDatabaseException] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) GROUP BY hm.id_hook, hm.id_module ORDER BY hm.`position`' at line 6SELECT h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module, h.`live_edit` FROM `ps_module` m INNER JOIN `ps_hook_module` hm ON hm.`id_module` = m.`id_module` INNER JOIN `ps_hook` h ON hm.`id_hook` = h.`id_hook` LEFT JOIN `ps_module_group` `mg` ON mg.`id_module` = m.`id_module` WHERE ((SELECT COUNT(*) FROM ps_module_shop ms WHERE ms.id_module = m.id_module AND ms.id_shop IN (1)) = 1) AND (h.name != "displayPayment") AND (hm.id_shop = 1) AND (mg.`id_group` IN ()) GROUP BY hm.id_hook, hm.id_module ORDER BY hm.`position` at line 605 in file classes/db/Db.php 599. WebserviceRequest::getInstance()->setError(500, '[sql Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97); 600. } 601. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) 602. { 603. if ($sql) 604. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>'); 605. throw new PrestaShopDatabaseException($this->getMsgError()); 606. } 607. } 608. 609. /**[/b] [b] DbCore->displayError - [line 307 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 482 - classes/db/Db.php] - [1 Arguments] DbCore->executeS - [line 295 - classes/Hook.php] - [1 Arguments] HookCore::getHookModuleExecList - [line 368 - classes/Hook.php] - [1 Arguments] HookCore::exec - [line 582 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->update - [line 190 - classes/Cart.php] - [0 Argument] CartCore->update - [line 305 - controllers/front/AuthController.php] - [0 Argument] AuthControllerCore->processSubmitLogin - [line 255 - controllers/front/AuthController.php] - [0 Argument] AuthControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 28 - index.php] - [0 Argument] Link to comment Share on other sites More sharing options...
Recommended Posts