Jump to the post that solved this thread.
Not Solved IPBoard migration to MyBB(php5.2) with further upgrade to php5.6+
#1
Not Solved
Hi I've just migrated from IP.Board 3.4.8 (It wasn't supported for at least a couple of years)
Installed the 1.8.40 MyBB on a server that has php 5.2 (it's a 10+yo forum) 
But because of recent vulnerability hosting blocks POST requests. So I need to update to newer php versions for it to work (at least 5.6)

My question is: even if I've installed MyBB on php 5.2 server, can I just swap to next php versions without issues? (at least php5.6, preferably php8.5 but i've heard there were a lot of changes in between)

How far can I go in php versions without causing problems? (it still doesn't have plugins so they shouldn't be a problem)
Reply
#2
Not Solved
MyBB itself should run with any PHP 8.x, though there are still some warnings.  I myself have run it on 8.2, 8.3 and 8.5.

You can set it to log warnings instead of displaying them.  That’s actually a good thing to do in any case:

ACP -> Configuration -> Server and Optimization Options

Use Error Handling Set to on
Error Logging Medium set to Log Errors
Error Type Medium Set to Hide Warnings and Errors

(Some of the above may be the default values.)
Reply
#3
Not Solved
(2026-11-01, 10:20 PM)Dave H Wrote: MyBB itself should run with any PHP 8.x, though there are still some warnings.

You can set it to log warnings instead of displaying them.  That’s actually a good thing to do in any case:

ACP -> Configuration -> Server and Optimization Options

Thanks for the answer!

But I have some doubts - how problematic are those warnings and errors? cause the main concern for me are that php changes the way it interacts with database. So how can it be, that it can run on php 5.2 and php 8.5 without any changes to the code?

When I'll have time I'll check it in docker... what comes out when I change the php versions. And will tell here how it went. (Cause I'm not the owner of the forum so I have to be sure when I answer that question)
Reply
#4
Not Solved
The only PHP version Error I've had is when I included a call in one of my extensions to json_validate() that was added in PHP 8.3 and, not being aware of that, I ran it on a server using PHP 8.2. What I get normally in MyBB core code are Warnings and they are about referring to undefined variables which earlier PHPs allowed. I've found some old bugs in old extensions thanks to this. I switched from PHP 5.6 to 7.4 some time in the MyBB 1.6.x era and from 7.4 to 8.2-8.5 in the fairly recent MyBB 1.8.x era.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)