I'm testing some modules with a quite fresh installation of Drupal 6.9 (no content, but some classic modules included). Now I'm testing some CCK modules, all at once but without dev versions.
My first test was to create a new content type including a Flexifield field. I could just create the field correctly, but when I tried to configure it or tried to create a new content of the new type I've got the old buddy:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 256 bytes) in /home/nrds/public_html/includes/form.inc on line 1318
Needing I'm here to help.
Comments
Comment #1
milos.kroulik commentedI have exactly the same problem on shared webhost, where I can use up to 40M memory (which is quite generous for shared host, I think).
Comment #2
leo.ruffini commentedMe too... I'm using the alpha2 version.
Comment #3
leo.ruffini commentedI just discovered what was happening, and it was my mistake.
I was trying to crate a flexi-field for the content type "A" and I was selecting the same "A" content type as field item.
I would suggest not to let choosing the same content type in which you are to avoid this recursive bug.
Leo
Comment #4
tseven commentedI experienced the exact same affect.
Steps needed to reproduce "Memory error":
1. Create new content type. (i.e. "Foo")
2. Create a new flexifield field for Foo.
3. Check "Foo" under "Content types that can be used as field items:"
This will cause the script to loop, exhausting all available memory.
I agree it's "silly mistake" to be made, but can easily be avoided by simply not allowing the user to include the content type.
Comment #5
Anonymous (not verified) commentedThis was still an issue in the latest alpha5, so here's a patch that fixes it (apply to dev version).
Comment #6
Anonymous (not verified) commentedAnyone able to review this?
Comment #7
effulgentsia commentedHi all, in case anyone here hasn't read my status update on the project page, I wanted to say that I apologize for not having maintained this module well for the past couple months. I've been busy helping out on Drupal 7 core development. The code freeze for that was originally scheduled for 10/15, then extended to 10/19, we hit a snag on a couple important issues, and are now waiting for Dries to announce what is to happen to them. I'm pleased with what everyone has been able to accomplish with Drupal 7 prior to the freeze, and with my small contributions to it. I will be resuming maintenance on flexifield within the next couple days. Thank you for your patience.
Comment #8
Anonymous (not verified) commentedNo problem, thanks for the update!
Comment #9
ayalsule commentedthanks for the patch but can you please explain the second part of it