PHP error on posting

To keep abreast of site changes, or to post a question, idea or suggestion for the website.

Moderators: carlson1, Keith B, Charles L. Cotton

User avatar

03Lightningrocks
Senior Member
Posts in topic: 4
Posts: 11451
Joined: Tue Apr 08, 2008 5:15 pm
Location: Plano

Re: PHP error on posting

#16

Post by 03Lightningrocks »

Do any of you IT folks know what is causing it and how to fix it?
User avatar

SQLGeek
Senior Member
Posts in topic: 3
Posts: 3269
Joined: Sun Feb 28, 2010 1:48 am
Location: Richmond, TX

Re: PHP error on posting

#17

Post 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.
Psalm 91:2
User avatar

KC5AV
Senior Member
Posts in topic: 1
Posts: 2115
Joined: Mon Nov 19, 2007 5:24 pm
Location: Marshall

Re: PHP error on posting

#18

Post 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.
NRA lifetime member

extremist
Senior Member
Posts in topic: 1
Posts: 709
Joined: Fri Dec 31, 2004 7:14 pm
Location: Keller, TX

Re: PHP error on posting

#19

Post by extremist »

Yep, I see it everytime I post something.
TX LTC Instructor, NRA Endowment Life Member, USPSA CRO
NRA Handgun/Rifle/Shotgun/Home Firearm Safety, Chief Range Safety Officer
User avatar

03Lightningrocks
Senior Member
Posts in topic: 4
Posts: 11451
Joined: Tue Apr 08, 2008 5:15 pm
Location: Plano

Re: PHP error on posting

#20

Post by 03Lightningrocks »

Charles has addressed the issue here.

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

Return to “Site Announcements, Questions & Suggestions”