Error 500 when switching to PHP8.0

rhodes

Active member
I'm getting a strange error when posting when I switch my forum (Xenforo 2.2.2) to PHP 8.0.

At first glance everything looks fine, but posting no longer works as it should.

If I enter a post and press the submit button, the post does not appear immediately in the discussion thread as usual.

Instead, a message appears saying ‘Posts have been made since you accessed this page’

A reload of the page shows the new post.

However, my users don't understand this and press the submit button several times, so that the posts are then posted several times

In the Chrome developer console I see that the route /add-reply sporadically causes an error 500.

I have spoken to my server host, but they could not find any malfunction. When I switch back to PHP7.x everything works fine again.

Thank you for any helpful ideas.
 
I'm getting a strange error when posting when I switch my forum (Xenforo 2.2.2) to PHP 8.0.
XenForo 2.2.2. was released on December 1, 2020.
It was not PHP 8.0 compatible.
PHP 7.4 is the recommended version for that time period.
You'll need to upgrade XF 2.2.2 to a later version to make use of PHP 8.0+

XF 2.2.5 released on May 4, 2021 was the first version to have 8.0 as recommended.
 
Back
Top Bottom