Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Fatal error: Function name must be a string in /srv/bindings/e1a27851c67c45d1b507c9f7f73dcc2c/code/includes/form.inc on line 1850
Using 7.x-1.x-dev, and I get the above error when I go to /admin/config/content/formats/plain_text (or full_html or any text format).
This results in a "white screen of death". Unfortunately, I can't find the backtrace anywhere in logs...
Comment | File | Size | Author |
---|---|---|---|
#5 | spamspan-php53_callables-2444747-5.patch | 2.18 KB | vitalie |
Comments
Comment #1
vitalie CreditAttribution: vitalie commentedHi @jenstechs,
I've saw the bug that duplicated the filter settings form and fixed that. I wonder if that fixed this as well? It's been fixed in latest dev.
Comment #2
anrikun CreditAttribution: anrikun commentedIt's not fixed in latest dev.
Comment #3
vitalie CreditAttribution: vitalie commentedthx, @anrikun, would you be able to provide a backtrace? or any other additional info so that I could replicate it?
Comment #4
anrikun CreditAttribution: anrikun commentedSure @vitalie! This issue is caused by line 104 (and possibly line 111) in
spamspan_admin.php
:#process and #validate expect arrays of strings, not arrays of arrays.
This syntax may work in PHP 5.4 (not tested though) but doesn't in PHP 5.3.
So unless Spamspan drops support for PHP 5.3, this syntax should not be used.
Comment #5
vitalie CreditAttribution: vitalie commentedthank you @anrikun. Could you please test this patch?
Comment #6
anrikun CreditAttribution: anrikun commentedThe error is gone for me @vitalie!
But I'd prefer that someone who "uses form" tests it too before this gets "reviewed & tested by the community" as I don't use form myself.
Comment #7
vitalie CreditAttribution: vitalie commentedok, @anrikun, I will let it be for some time, but taking into account that 'uses form' is in essence non-functional in the 7.x-1.2 release, it is most likely that no-one will confirm this in a long time, so I will go ahead and commit after a while.
Comment #8
jennypanighetti CreditAttribution: jennypanighetti commented@vitalie - Does the patch use the syntax above, or did you alter it so that PHP 5.3 is still supported?
Comment #9
vitalie CreditAttribution: vitalie commented@jenstechs it was altered to support php 5.3.
Comment #10
anrikun CreditAttribution: anrikun commented@vitalie (#7): in that case, let's commit it now.
Comment #12
vitalie CreditAttribution: vitalie commented