Active
Project:
Flexifield
Version:
6.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2008 at 14:20 UTC
Updated:
13 Jan 2009 at 04:06 UTC
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 35 bytes) in C:\www\drupal\includes\form.inc on line 1320
I am getting the above error when I use the flexifield. I could not edit the node I created and couldn't also configure the flexifield afterwards. I removed all other cck fields, set the max_execution_time and memory_limit higher in php.ini and still get this error. I am testing this in my localhost using XAMPP for windows. Anyone experienced this as well?
Comments
Comment #1
cyu commentedprimerg: Are you sure you set your memory_limit in the correct file? If I remember correctly, XAMPP has several php.ini files floating around but you'll want to make sure you change the one in the xampp/apache folder (maybe try 128M) and then restart apache.
Comment #2
pkej commentedI usually add ini_set( "memory_limit", "128M" ); in the settings.php file.
Increase PHP memory limit is a must read.
I'm marking this as "by design", since the error is not related to the specific module, but is how things work in PHP.
Comment #3
ARray commentedI've increased memory_limit up to 96M.
So I've got next message now: "Fatal error: Maximum execution time of 30 seconds exceeded in Z:\home\{sitename}\www\includes\form.inc on line 1309"
Oh. I've found the issue: If allowed child node type has the same type as parent you'll get an infinite loop when editing flexifield.
Comment #4
vm commentedyou can increase the maximum execution time as well.
Comment #5
primerg commented@ARray, thanks, that was it.
Maybe the module should not allow to enable its own node-type to prevent this problem?
Comment #6
ARray commented