Post by SXGuy » Fri Oct 06, 2017 4:17 pm

Getting a strange error all of a sudden and cant track down what it relates to

Fatal error: Class 'DB' not found in system/framework.php on line 36

Code: Select all

if ($config->get('db_autostart')) {
	$registry->set('db', new DB($config->get('db_type'), $config->get('db_hostname'), $config->get('db_username'), $config->get('db_password'), $config->get('db_database'), $config->get('db_port')));
}
I am able to get a connection manually to the database, so unsure what this means? ive checked both config.php files and they are all correct.
Last edited by SXGuy on Fri Oct 06, 2017 7:54 pm, edited 1 time in total.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by paulfeakins » Fri Oct 06, 2017 4:33 pm

Does the file /system/library/db.php exist with the right permissions?

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by SXGuy » Fri Oct 06, 2017 5:18 pm

Yes. This just suddenly happened last night with no reason

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by SXGuy » Fri Oct 06, 2017 7:55 pm

My bad, looks like i accidently moved system\library\db.php. placed it back and all is fine again!

Thread marked fixed.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am
Who is online

Users browsing this forum: No registered users and 18 guests