Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #2
cilefen CreditAttribution: cilefen commentedIt is probably a regex being overwhelmed. What format filters are enabled on this field?
Comment #3
giorgio79 CreditAttribution: giorgio79 commentedIt 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.
Comment #4
solideogloria CreditAttribution: solideogloria commentedI 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.