Jump to content

PHP Error when opening admin


Recommended Posts

Hi,

My shop is built with prestshop 1.5.6.2

When 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 101

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

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

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