If child node type has the same type as parent you'll get an infinite loop

primerg - December 3, 2008 - 14:20
Project:Flexifield
Version:6.x-1.0-alpha1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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?

#1

cYu - December 18, 2008 - 21:44
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.

#2

pkej - December 22, 2008 - 00:11
Status:postponed (maintainer needs more info)» by design

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.

#3

ARray - December 29, 2008 - 05:37
Version:6.x-1.x-dev» 6.x-1.0-alpha1

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.

#4

VM - December 29, 2008 - 05:30

you can increase the maximum execution time as well.

#5

primerg - January 12, 2009 - 11:25

@ARray, thanks, that was it.

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

#6

ARray - January 13, 2009 - 04:06
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:by design» active
 
 

Drupal is a registered trademark of Dries Buytaert.