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.

CommentFileSizeAuthor
#2 php_notices.patch431 bytessheldon rampton

Comments

keinstein’s picture

Status: Active » Needs work

still there 6.x-1.5-beta2
Use of undefined constant SPAMSPAN_EMAIL - assumed 'SPAMSPAN_EMAIL'

sheldon rampton’s picture

Version: 6.x-1.4 » 6.x-1.5-beta2
StatusFileSize
new431 bytes

I'm attaching a patchfile that stopped the error messages for me.

burningdog’s picture

Status: Needs work » Reviewed & tested by the community

Patch works nicely :)

anrikun’s picture

Please commit this patch!

pobster’s picture

Priority: Minor » Critical

Submit this patch... High profile sites cannot have logs full of error messages.

Pobster

meba’s picture

This breaks few sites completely under certain environments...

ckng’s picture

Priority: Critical » Normal
Issue tags: +PHP 5.3

This is due to PHP 5.3.
Patch is good.

pobster’s picture

Priority: Normal » Critical

Putting back to critical as it kind of is...

Pobster

lakka’s picture

Fixed in 6--1.5. Thanks.

lakka’s picture

Status: Reviewed & tested by the community » Closed (fixed)