Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Class 'CI_DB_forge' not found CI 1.6.0
#1

[eluser]HdotNET[/eluser]
Getting this error

Code:
Fatal error: Class 'CI_DB_forge' not found in /path/to/CodeIgniter_1.6.0/system/database/DB_utility.php on line 25

when running this backup database code in the database utilities:

Code:
$this->load->database();
$this->load->dbutil();
$this->load->helper('file');
$backup =& $this->dbutil->backup();
$filename = date('Ymd-His');
$filepath = '/path/to/backups/'.$filename.'.sql.gz';
write_file($filepath, $backup);

As you can see this is pretty much verbatim from the user guide:

http://ellislab.com/codeigniter/user-gui...ities.html

The code used to work with v1.5.4

Has anyone else found this error?
#2

[eluser]Seppo[/eluser]
That's weird... I've test it OK... Have you updated the Loader class? It loads DB Forge before loading the db util class.
#3

[eluser]HdotNET[/eluser]
whats to update?

all I've done is change system folders and made sure these tasks were completed..

http://ellislab.com/codeigniter/user-gui...ading.html
#4

[eluser]HdotNET[/eluser]
ahh.... see what you mean.

For some reason I had overidden the Loader class. That was the problem. my bad.
#5

[eluser]Seppo[/eluser]
No problem =)




Theme © iAndrew 2016 - Forum software by © MyBB