MyBB Community Forums

Full Version: Error 44 after editing some files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, the forum was running nice and well, but when I tried to browse themes, it said can't connect to the database

So I searched for some solutions, and it said that going into inc/config.php and changing $config['database']['type'] = 'mysqli'; into mysql is going to solve the issue

now whenever I enter my website, I get

MyBB has experienced an internal error and cannot continue.
Error Type:
MyBB Error (44)
Error Message:
MyBB was unable to load the SQL extension. Please contact the MyBB Group for support. [url=https://mybb.com]MyBB Website
[/url]

The worst thing is that when I change it back to mysqli it reports the same bug.
What have I done wrong and how can I fix this?
both mysqli or mysql report the same error :/

Thanks and take care Smile
It's quite weird. Not sure if the file edit was successful.

You may use a PHP script leveraging phpinfo() to check if any MySQL extension is enabled. Please refer to the example in https://www.php.net/manual/en/function.phpinfo.php . Remember to remove this script after you get the result.
(2023-05-31, 03:32 AM)noyle Wrote: [ -> ]It's quite weird. Not sure if the file edit was successful.

You may use a PHP script  leveraging phpinfo() to check if any MySQL extension is enabled. Please refer to the example in https://www.php.net/manual/en/function.phpinfo.php . Remember to remove this script after you get the result.

Where the mysql modules listed on the phpinfo.php page?
If you're looking at your phpinfo page, just do a text search in that page for "mysql"
I fixed this Smile
I have noticed that for some reason, in /etc there was no php8.1.ini so I changed the version to php8.2, edited the .ini file, turned mysqli on in dynamic extensions, and changed some permissions and that fixed everything, my forum is running now, thank you Smile