After I enable Entity API dev module I get following error:

[Sat Mar 17 13:11:22 2012] [error] [client XX.XX.X.XX] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/drupal-7.12/sites/***/modules/contrib/commerce/modules/product/commerce_product.module on line 141

version = "7.x-1.0-rc1+44-dev"
core = "7.x"
project = "entity"
datestamp = "1331856854"

Comments

liupascal’s picture

Version: 7.x-1.2 » 7.x-1.0-rc1

Change your php settings memory limit.
Check at your php.ini : memory_limit = ??M
or i think you can modify it in your .htaccess as well

Edit : I changed the version by mistake, please reset if needed but i'm pretty sure this is a php setting issue anyway :-)

dema502’s picture

memory_limit = 256M
is not enough

error is not gone

amateescu’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev
Component: Product » Other
Status: Active » Postponed (maintainer needs more info)

I cannot reproduce this with Commerce 7.x-1.x-dev and Entity 7.x-1.x-dev.

Can you try setting it to 512M? Are there any other contributed modules installed on your site? If so, you might want to disable them one by one until you figure out which one might be causing this problem.

rszrama’s picture

Category: bug » support

fwiw, 256M should be more than enough for even the most robust Drupal sites. But I'm not sure why this was posted to the Commerce queue if your problem is simply with Entity API. : ?

bojanz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

A month has passed without reply from the poster.
Feel free to reopen the issue in the Entity API issue queue.

Pink96’s picture

Title: Allowed memory size » Fatal Error: Allowed memory size
Priority: Normal » Critical
Status: Closed (cannot reproduce) » Active

Please help!!

I've installed the necessary modules for Drupal Commerce, but once I click to save, these errors will come up each time I try.

I'm on a shared hosting via GoDaddy...

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /....../includes/bootstrap.inc on line 977

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 128 bytes) in /...../includes/menu.inc on line 358

rszrama’s picture

Priority: Critical » Normal
Status: Active » Closed (cannot reproduce)

32 MB of memory isn't really sufficient to run a pumped up Drupal 7 site. You should up it to at least 64 MB, but I don't know how or if it's possible within GoDaddy. I'd take it up with their support.

Pink96’s picture

thank you rszrama .... I just got your msg.
It was driving me nuts, and I did call GoDaddy right after I posted and fixed the problem. I actually assigned 128mb

Thanks again!

rszrama’s picture

Status: Closed (cannot reproduce) » Closed (fixed)

Great, glad to hear it. : )

liliplanet’s picture

Status: Closed (fixed) » Needs review

Hi! Sorry to mention this, but think there is something that uses large memory resources within the Commerce module. Have several large drupal sites installed and on all Ubercart which runs smoothly. The moment I install the Commerce module (on a basic site without much content) have memory issues, the php.ini is set to 256MB. Removing commerce and then installing ubercart again on the basic site, and all is good.

Very excited about the commerce.module and no doubt the future of drupal ecommerce! Thank you!

bojanz’s picture

Status: Needs review » Closed (fixed)

Feel free to open a new issue with reproducible information.
Just saying "There are memory issues" doesn't help because we have no way to know what the problem is and how to fix it.
So we need as much info as you can give us (which page, function, xhprof output, etc), and then someone can look into it.