I noticed some spammers submitting content to a form and the filter module craps out with that fatal allowed memory error as per the title. I am trying to gather more info, but posting here in case other experience this issue as well.

Comments

giorgio79 created an issue.

cilefen’s picture

It is probably a regex being overwhelmed. What format filters are enabled on this field?

giorgio79’s picture

It is a full text field with both filtered html and full html. I have the offending node, and can access it in phpmyadmin, but I am unable to load the node in any way via Drupal. Never seen anything like this. Will try to figre our what is causing it.

solideogloria’s picture

I have this issue

PHP Fatal error: Allowed memory size of xx bytes exhausted (tried to allocate xx bytes) in /modules/filter/filter.module on line 1520. This is part of the _filter_url() function:

$chunks = preg_split('/(<.+?>)/is', $text, -1, PREG_SPLIT_DELIM_CAPTURE);

It happens when I try to index (for search) certain nodes using Drush. Since the issue was opened a while ago, and the code in the module has probably changed, I have no idea what line 788 refers to in the original post.

I'm currently trying to see if I can get the error to happen with some debug code added to discover what the $text is that breaks it.