ufoq Posted February 27, 2015 Share Posted February 27, 2015 Hi guys, This morning my 1.5.6.0 started behaving strangely. Some of the backoffice modules stopped working - I cannot enter Main Admin page, Modules, and many many others. Carts/Orders/Products work fine. After few tries of launching the faulty modules front office also "hangs" and I have to restart php5-fpm to fix it. Other than that, there are no performance issues whatsover, shop is lightning fast. I checked everything: logs of php, nginx, prestashop, every configuration file I could find. I'm lost, please help. Link to comment Share on other sites More sharing options...
NemoPS Posted February 28, 2015 Share Posted February 28, 2015 Back office only? Hm, did you ever click those top-of-the-page notifications? If you get many orders, that might be your issue. If it really is, modify the Notification class like this, for example public function getLastElements() { global $cookie; $notifications = array(); $employee_infos = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow(' SELECT id_last_order, id_last_customer_message, id_last_customer FROM `'._DB_PREFIX_.'employee` WHERE `id_employee` = '.(int)$cookie->id_employee); foreach ($this->types as $type) // $notifications[$type] = Notification::getLastElementsIdsByType($type, $employee_infos['id_last_'.$type]); $notifications[$type] = array(); return $notifications; } Link to comment Share on other sites More sharing options...
ufoq Posted February 28, 2015 Author Share Posted February 28, 2015 Yeah, I clicked those notifications. They appear on every page though, and not every page has this issue, so I don't think that's it. Curious thing - I have a development installation of prestashop (same VPS, different url) and there situation is very similar - can't search, can't launch modules, etc. Link to comment Share on other sites More sharing options...
ufoq Posted February 28, 2015 Author Share Posted February 28, 2015 Found one of the custom modules was the issue. After moving it from the modules folder everything suddenly came back to life. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now