Download & Extend

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

Project:Flexifield
Version:6.x-1.0-alpha1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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

#1

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

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.

#3

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

you can increase the maximum execution time as well.

#5

@ARray, thanks, that was it.

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

#6

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