Also memory error on submit of Webform

anawillem - June 1, 2009 - 20:43
Project:Webform Associate
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

I am using:
D6.12
Webform 2.6
and the .dev modules for webform_associate and uc_webform_productize
*the webform_associate module has been altered according to this modification: http://drupalbin.com/9676

Here's what happens...

Here is how i noticed it:

When the modules are enabled, any time I try to go to the edit components page of a webform, I get memory errors of varying types. I have edited the php.ini and the settings.php files to increase memory size. Generally the error is:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8208 bytes) in /usr/local/share/drupal-6.12/includes/menu.inc on line 374

...but it varies depending on the memory_limit settings (128M is what I have now) in the php.ini file.

So to be clear, I'll go to the edit screen of a webform and type in '/components' after the ...node/x/edit and will get this error. When the two modules are disabled, this does not happen.

Up to this point, I had created and deleted various product/webform/event combinations...

Here's what is now happening:

To test things, I deleted all products/webforms/events. I uninstalled both modules both by disabling then and by uninstalling them from the 'list' tab on the modules page. I ran cron and update.php.

Then I reinstalled the modules. Now, when I try to create an 'event' (the node-type that is enabled/configured for both modules), it creates the items, but also throws the same memory error.

Interestingly enough, it throws this error at the point that it would normally go to the webform components to edit them - which happens just after event node creation.

Work Around

If I at this point disable the webform_associate module and uc_webform_productize module, I can go to the node for the webform that was just created by those modules, and edit the webform components. Once those are created/edited with the modules off, I can turn them back on, and continue going...

#1

anawillem - June 1, 2009 - 21:54
Title:Unable to edit webform components: memory error and now general module error...» Also memory error on submit of Webform

After creating form components, re-enabling the modules, and submitting the form, I get the following error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 5 bytes) in /usr/local/share/drupal-6.12/includes/menu.inc on line 230

All memory errors...

#2

anawillem - June 4, 2009 - 14:16

Here are some tests I did to rule out the sites memory. It looks like no matter how high the memory is set, the issues with this extend to meet it, and seems like there is some sort of loop that is running endlessly in the module code...

***with php.ini set normal (128M)

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /usr/local/share/drupal-6.12/includes/menu.inc on line 230

***with php.ini memory_limit set at 254M

Fatal error: Allowed memory size of 266338304 bytes exhausted (tried to allocate 8208 bytes) in /usr/local/share/drupal-6.12/includes/menu.inc on line 374

***with php.ini memory_limit set at 508M

Fatal error: Allowed memory size of 532676608 bytes exhausted (tried to allocate 8208 bytes) in /usr/local/share/drupal-6.12/includes/menu.inc on line 374

***with php.ini memory limit set as 508M, and the line in the webform module that used to say:

$node = menu_get_object('webform_associate_webform');

now saying:

$node = menu_get_object();//'webform_associate_webform');

Fatal error: Allowed memory size of 532676608 bytes exhausted (tried to allocate 86 bytes) in /usr/local/share/drupal-6.12/includes/database.mysqli.inc on line 161

***with php.ini memory limit set at 508M and using beta webform associate module with extra line added of:

$node = menu_get_object('webform_associate_webform');

 
 

Drupal is a registered trademark of Dries Buytaert.