reoccurring PHP warning
-
Hi,
Thanks for making such a great plugin. We love TNP!
A minimal PHP warning, but a warning nonetheless; it seemingly appears that when bots crawl our website, they generate the following PHP warning in our debug log:
PHP Warning: Undefined array key “email_id” in WEBSITE/files/wp-content/plugins/newsletter-archive/plugin.php on line 42
From this access:
GET /?na=archive&=37 HTTP/2.0″ 200 18 “WEBSITE/newsletter?email_id=37” “Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot)”
When I go to the page myself, WEBSITE/?na=archive&=37, it displays white screen with the text: “Wronf email ID” (as expected by that line of code).
Environment: PHP 8.3, WordPress 6.9, Newsletter 9.1.0, Newsletter – Archive 4.1.8
I’m not sure why bots are indexing this link, or what the best course of action is. We get this error in our logs a few times a week. Any ideas?
Best,
You must be logged in to reply to this topic.