Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 1 Year, 7 Months ago Updated PHP Version, encountered problem
#1
Solved: 1 Year, 7 Months ago
Hello.

I updated my PHP version from 5.4 to 7.1 at my server control panel.

Afterward, my forum gave an error message.

So I reverted back to 5.4 and things are working fine.

Is there something I need to do/change within MyBB to make this process go smoothly?
Reply
#2
Solved: 1 Year, 7 Months ago
exactly which version of MyBB you are using ? can you post the error message ..

have you checked latest entries of server error log (available at web host panel) .. ?
Reply
#3
Solved: 1 Year, 7 Months ago
From AdminCP:

Current MyBB version: 1.8.14

Current PHP version: 5.4.45 (error began when I updated this to version 7.1)

SQL Engine: MySQL 5.6.36

From cPanel:

Server Error Log is empty (I need to investigate this further)

Here is the exact error message I received from MyBB:

   
Reply
#4
Solved: 1 Year, 7 Months ago
looks like there is some mis-configuration with your php.

check config.php file of MyBB - do you have mysql as the database type ?
if so, changing to mysqli might work. if it doesn't then better to contact your web host.
$config['database']['type'] = 'mysqli';
Reply
#5
Solved: 1 Year, 7 Months ago
(Just so you know, this is because the old mysql PHP extension was removed in a newer version of PHP, so it needs to be changed to mysqli as explained above.)
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#6
Solved: 1 Year, 7 Months ago
(01-17-2018, 01:09 PM).m. Wrote: looks like there is some mis-configuration with your php.

check config.php file of MyBB - do you have mysql as the database type ?
if so, changing to mysqli might work. 

$config['database']['type'] = 'mysqli';

Yes, this was precisely the issue.

Once I changed my config.php file from "mysql" to "mysqli", I was able to upgrade my PHP without any further problems. 

Thank you!  Smile
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)