Page 1 of 1

[FIXED]OC 2.3.0.2 Fatal error: Class 'DB' not found in system/framework.php

Posted: Fri Oct 06, 2017 4:17 pm
by SXGuy
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.

Re: OC 2.3.0.2 Fatal error: Class 'DB' not found in system/framework.php

Posted: Fri Oct 06, 2017 4:33 pm
by paulfeakins
Does the file /system/library/db.php exist with the right permissions?

Re: OC 2.3.0.2 Fatal error: Class 'DB' not found in system/framework.php

Posted: Fri Oct 06, 2017 5:18 pm
by SXGuy
Yes. This just suddenly happened last night with no reason

Re: [FIXED]OC 2.3.0.2 Fatal error: Class 'DB' not found in system/framework.php

Posted: Fri Oct 06, 2017 7:55 pm
by SXGuy
My bad, looks like i accidently moved system\library\db.php. placed it back and all is fine again!

Thread marked fixed.