Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Other
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2012 at 09:19 UTC
Updated:
3 Jun 2012 at 13:20 UTC
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
Comment #1
liupascal commentedChange 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 :-)
Comment #2
dema502 commentedmemory_limit = 256M
is not enough
error is not gone
Comment #3
amateescu commentedI 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.
Comment #4
rszrama commentedfwiw, 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. : ?
Comment #5
bojanz commentedA month has passed without reply from the poster.
Feel free to reopen the issue in the Entity API issue queue.
Comment #6
Pink96 commentedPlease 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
Comment #7
rszrama commented32 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.
Comment #8
Pink96 commentedthank 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!
Comment #9
rszrama commentedGreat, glad to hear it. : )
Comment #10
liliplanet commentedHi! 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!
Comment #11
bojanz commentedFeel 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.