comments had been working fine with Akismet but now I get this error:
Notice: Undefined index: HTTP_REFERER in /www/username/public_html/system/modules/akismet/mod.akismet.php on line 172
The comment saves but this error is thrown. I had changed some field sizes in the exp_comments table but that was the only thing different. Any ideas? Thanks.
ExpressionEngine 1.6.0
Mod Edit: Edited out your hosting username and system folder for security reasons.
draymond,
Have you made sure you have the latest version of the Akismet module and extension? If upgrading to a newer version doesn’t fix your issue your best bet is going to be to contact the author of the module as he is going to have a much better idea of what the issue might be.
Long, answer is that I’m pretty sure HTTP_REFERER is a server variable. So it’s the server’s responsibility to serve that up if it can. If it can’t it may not pass that variable at all. So if Akismet assumes the variable is ALWAYS going to be present then it would occasionally throw an undefined index error like you are getting. If you looked at the code of the mod.akimet.php file and went to line 172 you would probably see where that variable is being called. And that’s where you would fix it. But thats really something the author should be doing as that way they can release a fixed version and everyone benefits.
Jamie
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.