Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved MyBB was unable to load the SQL extension during an upgrade?
#1
Not Solved
MyBB is already installed (was running sweet - upgrades have never been an issue...Until now!)

Upgrade my existing copy of MyBB to 1.8.21 (Recommended)

#1. I type:  https://xxxxx-xxxxx.co.uk/forum/install

[un-locked]

https://xxxxx-xxxxx.co.uk/forum/install/upgrade.php

Returns the following:

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /homepages/24/d3XXXXXXXX/htdocs/forum/inc/db_mysql.php:214 Stack trace: #0 /homepages/24/d3XXXXXXXX/htdocs/forum/install/upgrade.php(84): DB_MySQL->connect(Array) #1 {main} thrown in /homepages/24/d3XXXXXXXX/htdocs/forum/inc/db_mysql.php on line 214

Site says: 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.

#2. ?? Help appreciated Huh
Reply
#2
Not Solved
Have you upgraded your PHP? What's your PHP version when running the upgrade script?
Worth a try.
Reply
#3
Not Solved
(08-17-2019, 12:36 PM)noyle Wrote: Have you upgraded your PHP? What's your PHP version when running the upgrade script?

I cannot access the dashboard, any clues to manually updating PHP?
Thx...
Reply
#4
Not Solved
(08-17-2019, 01:24 PM)Astromanian Wrote: I cannot access the dashboard, any clues to manually updating PHP?
Thx...
I don't mean to let you upgrade your PHP. The MySQL extension (has mysql_connect() function) is deprecated in PHP 5.5, and removed in PHP 7.0. So I was thinking that you might have upgraded your PHP.

What's the version of MyBB you are trying to upgrade from? Can your MyBB run without problems now?

For PHP information, you can put a file named, for example php_info.php, in you MyBB root, containing:
<?php phpinfo(); ?>
Then, open https://xxxxx-xxxxx.co.uk/forum/php_info.php in your browser, and you'll a page displaying PHP's configuration. You can read PHP version, MySQL extension info from that page.
Once you've done that, better remove that file.
Worth a try.
Reply
#5
Not Solved
(08-17-2019, 03:00 PM)noyle Wrote:
(08-17-2019, 01:24 PM)Astromanian Wrote: I cannot access the dashboard, any clues to manually updating PHP?
Thx...
I don't mean to let you upgrade your PHP. The MySQL extension (has mysql_connect() function) is deprecated in PHP 5.5, and removed in PHP 7.0. So I was thinking that you might have upgraded your PHP.

What's the version of MyBB you are trying to upgrade from? Can your MyBB run without problems now?

For PHP information, you can put a file named, for example php_info.php, in you MyBB root, containing:
<?php phpinfo(); ?>
Then, open https://xxxxx-xxxxx.co.uk/forum/php_info.php in your browser, and you'll a page displaying PHP's configuration. You can read PHP version, MySQL extension info from that page.
Once you've done that, better remove that file.

Thanks, the page returned: PHP Version 7.3.8, not sure of last myBB I have but the last back-up was in May. I have a .gz file containing a SQL File, I'm sure if I could get into the ACP, I could import it.
Reply
#6
Not Solved
(08-17-2019, 04:31 PM)Astromanian Wrote: Thanks, the page returned: PHP Version 7.3.8, not sure of last myBB I have but the last back-up was in May. I have a .gz file containing a SQL File, I'm sure if I could get into the ACP, I could import it.
So you can't get your current forum up, i.e., visiting https://xxxxx-xxxxx.co.uk/forum/ will get you an error?

I'm not sure about your situation now. I guess you just overwrite MyBB files with latest version. So I'm just replying based on guessing. Better specify what files/databases you're dealing with.

If you are dealing with an existing MyBB installation, whatever you're restoring or moving to a new host, you should have setting files in ./inc folder. The core file is config.php that contains database connection setting. Suppose your database is set up or restored, modify config.php, search for $config['database']['type'] and change its value with 'mysqli', make sure connection configurations like database name/username/password, table prefix are correct.
Worth a try.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)