Jump to content

[SOLVED]Blank page after login


Recommended Posts

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 by R.Kinkeris (see edit history)
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

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]

Link to comment
Share on other sites

×
×
  • Create New...