Post by ivailo_georgiev » Fri Mar 25, 2022 2:34 pm

Hello!
I have site over OpenCart 2.0.3.1 with the Default Theme. Current version of PHP is 5.5.38. I tried to update to 7.3.33. I read in other posts and replaced the encryption file with this from https://www.opencart.com/index.php?rout ... n_id=35487. The problem is that the site display these errors and not load:

Code: Select all

Fatal error: Uncaught Error: Call to undefined function DB\mysql_connect() in /home/my-home/public_html/system/library/db/mysql.php:7 Stack trace: #0 /home/my-home/public_html/system/modification/system/library/db.php(9): DB\MySQL->__construct('localhost', 'my_DB', 'my-pass', 'eco_DB', NULL) #1 /home/my-site/public_html/index.php(35): DB->__construct('mysql', 'localhost', 'my_DB', 'my-pass', 'eco_DB') #2 {main} thrown in /home/my-site/public_html/system/library/db/mysql.php on line 7

http://gigadesign.bg/
http://220volta.bg/



Posts

Joined
Wed Jan 22, 2014 8:44 pm


Post by xxvirusxx » Fri Mar 25, 2022 3:12 pm

Change from mysql to mysqli in config files...

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by cedcommerceteam » Fri Mar 25, 2022 5:48 pm

Hello, mysql_connect is removed from php 7 please downgrade or update it with mysqli_connect and follow the syntax of the new function.

Call us at : (+91) -8765210318 , Skype: live:carlmorgan.cedcommerce , Email: support@cedcommerce.com
CedCommerece : Officail Opencart Partners
CedCommerce Official : www.cedcommerce.com
Opencart Services : www.cedcommerce/opencart-services.com
Sell On various Marketplace Integration : Opencart-Extensions
Magenative Mobile App/IOS Development : magenative.com
Webinar : Power up Your holiday season marketing with the Automation tool


User avatar
Active Member

Posts

Joined
Wed Aug 09, 2017 9:02 pm

Post by straightlight » Fri Mar 25, 2022 8:44 pm

I would not suggest to downgrade ...

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ivailo_georgiev » Sun Mar 27, 2022 4:25 pm

xxvirusxx wrote:
Fri Mar 25, 2022 3:12 pm
Change from mysql to mysqli in config files...
Thank you so much!

http://gigadesign.bg/
http://220volta.bg/



Posts

Joined
Wed Jan 22, 2014 8:44 pm


Post by straightlight » Sun Mar 27, 2022 10:48 pm

ivailo_georgiev wrote:
Sun Mar 27, 2022 4:25 pm
xxvirusxx wrote:
Fri Mar 25, 2022 3:12 pm
Change from mysql to mysqli in config files...
Thank you so much!
Now that the issue has been solved, please add: [SOLVED] at the beginning of the subject line on your first post.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 6 guests