patrmich Posted April 28, 2017 Share Posted April 28, 2017 (edited) Hi,My shop is built with prestshop 1.5.6.2When opening admin, I can find the following php error in the error log file of my server :PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 80 bytes) in ../classes/db/DbPDO.php on line 101The line 101 is as follows : return $result->fetch(PDO::FETCH_ASSOC); This line is part of the following code : /** * @see DbCore::nextRow() */ public function nextRow($result = false) { if (!$result) $result = $this->result; return $result->fetch(PDO::FETCH_ASSOC); } My Host provider cannot increase the memory size above 256 Mo.1- What could be the consequence of such error ?2- Is there a way to decrease the memory required when opening Prestashop Control Panel ?Thank you in advance for any help in this matter.Patrick Edited May 4, 2017 by patrmich (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted April 28, 2017 Share Posted April 28, 2017 you need a better stack trace to determine what is calling that code. What exactly is it trying to fetch from the database when you log in Link to comment Share on other sites More sharing options...
patrmich Posted April 28, 2017 Author Share Posted April 28, 2017 Hi bellini13, I thank you for your reply. 1- How can I know what is trying to fetch from the database when I log in ? 2- I did the following in Chrome : I opened the console and then I opened the admin I got the following error message : ../adminxxx/ajax.php 500 (Internal Server Error) In front of the error message was : js/jquery/jquery-1.7.2.min.js I did the same in Firefox, and got a different error message : SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data In front of the error message was : jquery-1.7.2.min.js:2:10814 When I try to open separately the ../js/jquery/jquery-1.7.2.min.js file, it opens without any problem I thnak you again in advance for any suggestion. Patrick 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