Page 1 of 1
This just appeared on the home page
Posted: 12 Feb 2025, 00:13
by bekateen
Hi Jools,
Maybe you're working on code right now. IDK, but in the last few seconds, this error message appeared on the homepage:
[phpBB Debug] PHP Warning: in file /home/webcat/planetcatfish.com/common/functions/_articles.php on line 57: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4237: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3079)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4237: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3079)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4237: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3079)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4237: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3079)
Cheers,
Eric
Also, I'm noticing that the left column is stuck on breeder board and is not rotating through other options as is typical. Also, this post is not appearing on the home page. It's as if the home page is locked on whatever it was a few minutes ago.
Cheers, ET
Re: This just appeared on the home page
Posted: 12 Feb 2025, 09:28
by Jools
Hi Eric,
Is fine now. I think it was probably caused by coincidence as I was working on the site yesterday. That said, not at that time of day. Not even close. That bit of code is to do with putting the new article info on the front page - not something I've been adjusting.
I'll move to resolved for now.
Cheers,
Jools
Re: This just appeared on the home page
Posted: 12 Feb 2025, 23:58
by bekateen
It just started again, and again the home page is frozen.
[phpBB Debug] PHP Warning: in file /home/webcat/planetcatfish.com/common/functions/_articles.php on line 57: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4237: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3079)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4237: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3079)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4237: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3079)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4237: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3079)
There are two spam posts which I moved to SPAM, but they are frozen in time on the home page, as if they're still in their original forums.
Cheers,
Eric
Re: This just appeared on the home page
Posted: 13 Feb 2025, 09:48
by Jools
This really is a puzzler. It's maybe something cached locally, but that doesn't make a whole lot of sense given the error. Is it still happening?
Cheers,
Jools
Re: This just appeared on the home page
Posted: 13 Feb 2025, 15:18
by bekateen
It stopped yesterday within about an hour. That was the same behavior I experienced the day before.
Is it just my computer? If so, it has happened only once each day then disappears. How odd is that?
Cheers, Eric
Re: This just appeared on the home page
Posted: 14 Feb 2025, 08:26
by Jools
I had a deeper look at this. It's to do with the specific article being shown in the random article bit on the home page. I think some articles may be missing data. As there are a couple hundred, and only one or few could be problematic the weird thing is that it happended at the same time.
I will see if I can find the culprit(s).
Cheers,
Jools
Re: This just appeared on the home page
Posted: 15 Feb 2025, 06:34
by bekateen
It just happened again to me today. Here's a screenshot of what was displaying at the time I got the error message this time:
[phpBB Debug] PHP Warning: in file /home/webcat/planetcatfish.com/common/functions/_articles.php on line 57: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4237: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3079)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4237: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3079)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4237: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3079)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4237: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3079)
Hopefully this will help you narrow it down.
Cheers, Eric
Re: This just appeared on the home page
Posted: 15 Feb 2025, 08:35
by Jools
That was helpful, and it made me realise I was looking at this the wrong way.
With a fresh brain, I had another take on this. The code that randomly selected an article was over-complex, so I have made it much simpler. As I don't know for sure what caused the error, I can't say for sure it is fixed. But it is so simple now I can't see there still being a problem.
Let me know how it goes.
Cheers,
Jools