Is anyone else seeing this?
If I check the logs on my server, they are full of error warnings from the various sites I host. I’m talking thousands of lines.
It’s mostly Alloy (Foundry) causing them, but other stacks are doing it too.
I’m trying to work out solutions, but it’s proving difficult, not least with Alloy, because Elixir is no more.
But I’d really love to know if anyone else is seeing this?
Are you on WHM/cPanel? If so where exactly are you seeing these errors? I’ll take a look and see if we have anything similar. In practice time, not aware of any PHP issues at all but would be interesting to see if these errors are being generated.
Hi, for me, using Cpanel, they are in /logs/
My server guy has been looking at them, and for the biggest culprit, which is producing the warning below, he has sent me the following explanation (also below).
11-Mar-2025 14:19:58 UTC] PHP Warning: Undefined variable $currentPage in /home/caffeine/site-domain/blog/index.php on line 189
[11-Mar-2025 14:19:58 UTC] PHP Warning: Undefined array key “small-label” in /home/caffeine/site-domain/blog/index.php on line 294
[11-Mar-2025 14:19:58 UTC] PHP Warning: Undefined array key “summary” in /home/caffeine/site-domain/blog/index.php on line 299
Message from Server guy…
I had a Quick Look at this file 11-Mar-2025 09:37:26 UTC] PHP Warning: Undefined variable $currentPage in /home/caffeine/site-domain/blog/index.php on line 189
It mostly looks fine, however you have it set to create the directory if it doesn’t exist. But you haven’t told it what to do if it does, this I think may be where you then get a warning message.
Now I’m no PHP dev but if you try something like this.
if (!is_dir($imagesdirectory)) {
if (!mkdir($imagesdirectory, 0755, true)) {
// Handle error, maybe log it
echo “Failed to create directory: $imagesdirectory”;
}
}
End of message.
This is related to Alloy.