i upgrade my bean module to 7.x-1.1
But there is an error:
Fatal error: Allowed memory size of 262144000 bytes exhausted (tried to allocate 523800 bytes) in
www/myproject/modules/field/field.info.inc on line 712
This problem remains even if I have expanded memory to 512 MB and bigger by doing this:
site/default/settings.php
ini_set('memory_limit', '512M');
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 1954126-allowed_memory_size-4.patch | 387 bytes | guillaumev |
Comments
Comment #1
damienmckennaYour hosting provider might not be allowing the ini_set function, best to check with them. Either way, this isn't a problem of the Bean module.
Comment #2
guillaumev commentedI'm not so sure this isn't a problem with the Bean module.
For some reason, every time I create a bean, I get the same error of Allowed memory size exhausted. I raised my memory_limit in php to 1024 M and it still gives the error !
Comment #3
guillaumev commentedIt seems to be related to the use of the "Title" module: I replaced the title field of my bean type with a title field from the "Title" module and do not get the error anymore...
xiukun.zhou > Do you also have the "Title" module enabled ?
Comment #4
xiukun.zhou commentedHi, guillaumev
I've enabled "title" module
Comment #5
xiukun.zhou commentedThanks guillaumev
my site running when disable title module, but I need to use the title module
Comment #6
guillaumev commentedOk here is what was happening, at least for me, with the title module enabled, trying to add a new bean:
I fixed it with the following patch, removing the call to entity_class_label, but I'm definitely not sure if this has side effects...
Comment #7
xiukun.zhou commentedHi guillaumev
this patch not work,
i test bean 7.x-1.1 and 7.x-1.x-dev
my title module version is 7.x-1.0-alpha7+2-dev
Comment #8
guillaumev commentedHi xiukun.zhou,
After applying the patch, did you clear the caches on your site ?
Comment #9
inventlogic commentedGot this error. I can confirm replacing the default title for the Bean with an entity title field is a fix.
Comment #10
bforchhammer commentedI had the same error. Replacing default titles with the title fields works for me as well. Thanks guys! :)
Comment #11
saltednutI don't think we should be removing the call to entity_class_label - hmm... are you still experiencing issues?
Comment #12
xiukun.zhou commentedThanks.
now i've test bean 7.x-1.x-dev and 7.x-1.x, The problem seems to have been fix.