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

cyu’s picture

Status: Active » Postponed (maintainer needs more info)

primerg: 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.

pkej’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I 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.

ARray’s picture

I'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.

vm’s picture

Version: 6.x-1.x-dev » 6.x-1.0-alpha1

you can increase the maximum execution time as well.

primerg’s picture

@ARray, thanks, that was it.

Maybe the module should not allow to enable its own node-type to prevent this problem?

ARray’s picture

Title: Allowed memory size of 67108864 bytes exhausted (tried to allocate 35 bytes) » If child node type has the same type as parent you'll get an infinite loop
Status: Closed (works as designed) » Active