Jump to content

ObjectModel.php causing PHP Memory Limit


Recommended Posts

Hi

 

All of a sudden my prestashop site has gone down. I can access the back office fine but NOT the front at all!

 

I have spoken to the host who have said that the objectmodel.php file is causing the server to hit the PHP memory limit which is currently at 512MB!!!

 

Has anyone come across this before? I am in desperate need of help as I am losing money every hour the site is down!

 

Thanks anyone for any help!

Link to comment
Share on other sites

You could try to find a new host that will allow you to exceed the 512 limit, however you should provide some more details about your site usage.

  • How many visitors does your store get each day/hour?
  • What version of PS are you using?
  • Are you using any custom modules or themes? If so, have you tried to disable them to see if they are causing high memory usage?

Link to comment
Share on other sites

I have now migrated the website away from the VERY unhelpful host to another. At the moment I get around 100 per day using version 1.5.3.

 

There is a custom theme that I am using (with custom modules) but I didnt have the chance to test much before the host just disabled everything without warning!

 

Once it is up and the DNS has refreshed on the new host I will begin test and see what the potential issue may be. Thanks for the help.

Link to comment
Share on other sites

good luck with the new host. I don't see 100 visits per day generating enough load, to say the issue is related to a performance issue.

 

Since the issue is with the object model class, which is used to connect the objects (customers, orders, carts etc..) to the database, your issue could be a poorly configured mysql database, or a poorly written object class. it is difficult to tell without some additional debug to see what is going on, and which queries are being executed.

 

Let's see if the move to a new host helps and take it from there.

Link to comment
Share on other sites

  • 2 months later...

Hi, I too fails memory limit ObjectModel class. I have not changed any of the installation, until two days work.

 

The customer only has gotten a couple of products since then, there are only a total of 10!.

 

Prestashop version is 1.5.3.1.

 

Thanks and regards.

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