We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Error: Undefined index: HTTP_REFERER

Development and Programming

draymond's avatar
draymond
22 posts
17 years ago
draymond's avatar draymond

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.

       
Jamie Poitra's avatar
Jamie Poitra
409 posts
17 years ago
Jamie Poitra's avatar Jamie Poitra

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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.