Post by karimsilver » Mon Oct 05, 2020 3:32 pm

Hello all

I faced suddenly this error (Error establishing a database connection)

without any changes in my database or in store

hope-pharma.com

admin panel works fine but the store not work

thanks for all in advance

Newbie

Posts

Joined
Sun Apr 28, 2019 4:50 pm

Post by opencartmart » Mon Oct 05, 2020 3:38 pm

1. It does not seem a standard OC error.
2. Check the config.php file if the DB information is correct. You can compare with admin/config.php as it is working fine

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by karimsilver » Mon Oct 05, 2020 3:44 pm

opencartmart wrote:
Mon Oct 05, 2020 3:38 pm
1. It does not seem a standard OC error.
2. Check the config.php file if the DB information is correct. You can compare with admin/config.php as it is working fine
Thanks for your reply

i checked the DB data in the config.php file and it's the same with admin/config.php data

should i delete config.php and write it again?

Newbie

Posts

Joined
Sun Apr 28, 2019 4:50 pm

Post by opencartmart » Mon Oct 05, 2020 3:52 pm

karimsilver wrote:
Mon Oct 05, 2020 3:44 pm
i checked the DB data in the config.php file and it's the same with admin/config.php data
should i delete config.php and write it again?
You have overwritten the index.php with another file. Revert the index.php file from the backup or OC v3.0.2.0 source

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by karimsilver » Mon Oct 05, 2020 4:36 pm

opencartmart wrote:
Mon Oct 05, 2020 3:52 pm
karimsilver wrote:
Mon Oct 05, 2020 3:44 pm
i checked the DB data in the config.php file and it's the same with admin/config.php data
should i delete config.php and write it again?
You have overwritten the index.php with another file. Revert the index.php file from the backup or OC v3.0.2.0 source
Thanks solved after re-upload index.php

Thanks for your great support

Newbie

Posts

Joined
Sun Apr 28, 2019 4:50 pm

Post by paulfeakins » Mon Oct 05, 2020 7:16 pm

If this is now fixed please add [SOLVED] to the beginning of the post title.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 419 guests