Page 2 of 2

Re: PHP error on posting

Posted: Sat Dec 19, 2020 8:23 pm
by 03Lightningrocks
Do any of you IT folks know what is causing it and how to fix it?

Re: PHP error on posting

Posted: Sat Dec 19, 2020 9:13 pm
by SQLGeek
Looks like something changed with the request submitted to the server. Really hard to say for sure without being able to look at the code.

Re: PHP error on posting

Posted: Sun Dec 20, 2020 9:05 am
by KC5AV
It seems to be a problem with whatever version of phpBB the forum is running on, and whichever version of PHP the site host is running.
Here is an article from the support section of the phpBB forum. If the webhost Charles uses is running php 7.2, that might be the issue. It seems some other sites have resolved the issues by downgrading to an earlier version of PHP.

There are several pages that reference this same error point to the same lines of code in the same files.

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_messenger.php on line 506: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 1836: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
ETA: It also seems that your messages do actually post. When I hit submit, I got the same error. I went back to the end of this thread (cached from before I posted), and hit refresh. My post was there.

Re: PHP error on posting

Posted: Sun Dec 20, 2020 10:02 am
by extremist
Yep, I see it everytime I post something.

Re: PHP error on posting

Posted: Sun Dec 20, 2020 6:31 pm
by 03Lightningrocks
Charles has addressed the issue here.

https://www.texaschlforum.com/viewtopic ... 16&t=99714