There's an E_NOTICE error 'Use of undefined constant SPAMSPAN_EMAIL - assumed 'SPAMSPAN_EMAIL'' in spamspan.module line 25. It is fixed quickly and correctly by changing line 25 to:
define('SPAMSPAN_EMAIL', "
Note that what that does is add quotes to the variable name to be defined. Since it hasn't been defined yet, it's not yet a constant, and so it should be in quotes.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | php_notices.patch | 431 bytes | sheldon rampton |
Comments
Comment #1
keinstein commentedstill there 6.x-1.5-beta2
Use of undefined constant SPAMSPAN_EMAIL - assumed 'SPAMSPAN_EMAIL'
Comment #2
sheldon rampton commentedI'm attaching a patchfile that stopped the error messages for me.
Comment #3
burningdog commentedPatch works nicely :)
Comment #4
anrikun commentedPlease commit this patch!
Comment #5
pobster commentedSubmit this patch... High profile sites cannot have logs full of error messages.
Pobster
Comment #6
meba commentedThis breaks few sites completely under certain environments...
Comment #7
ckngThis is due to PHP 5.3.
Patch is good.
Comment #8
pobster commentedPutting back to critical as it kind of is...
Pobster
Comment #9
lakka commentedFixed in 6--1.5. Thanks.
Comment #10
lakka commented