Page 1 of 1
Fatal error: Class 'DB\stdClass' not found [RESOLVED]
Posted: Tue Sep 30, 2014 3:03 am
by ljstorage
Hi,
I'm not sure what I've done but I'm getting the following error everytime I try to access my store
Fatal error: Class 'DB\stdClass' not found in /MYSITE/public_html/store/system/library/db/mysql.php on line 39
which is
$query = new stdClass();
in code
if ($resource) {
if (is_resource($resource)) {
$i = 0;
$data = array();
while ($result = mysql_fetch_assoc($resource)) {
$data[$i] = $result;
$i++;
}
mysql_free_result($resource);
$query = new stdClass();
$query->row = isset($data[0]) ? $data[0] : array();
$query->rows = $data;
$query->num_rows = $i;
unset($data);
return $query;
} else {
return true;
}
} else {
$trace = debug_backtrace();
Can anyone help?????
Re: Fatal error: Class 'DB\stdClass' not found
Posted: Thu Oct 02, 2014 4:46 am
by jdurand
I just installed version 2.0 and suddenly get the same thing. It was working fine before that.
Re: Fatal error: Class 'DB\stdClass' not found
Posted: Thu Oct 02, 2014 4:55 am
by ljstorage
For anyone who gets this... my database driver was the wrong type. Changed it and it worked
Re: Fatal error: Class 'DB\stdClass' not found [RESOLVED]
Posted: Thu Oct 02, 2014 6:04 am
by hamidg84
Hello
How did you solve this problem? Im getting exact one.
Re: Fatal error: Class 'DB\stdClass' not found [RESOLVED]
Posted: Thu Oct 02, 2014 4:44 pm
by ljstorage
Just check all of your database info in config.php . My db driver was the wrong type
:-)
Re: Fatal error: Class 'DB\stdClass' not found [RESOLVED]
Posted: Thu Oct 02, 2014 5:28 pm
by hamidg84
How do you check that? I don't know much about this driver stuff
Re: Fatal error: Class 'DB\stdClass' not found [RESOLVED]
Posted: Fri Oct 03, 2014 6:55 am
by hamidg84
Hello
What was your db driver before and what did you change to?
Re: Fatal error: Class 'DB\stdClass' not found [RESOLVED]
Posted: Fri Oct 03, 2014 6:11 pm
by ljstorage
In the config.php file at the bottom it was set to MYSQL but it needed to be MYSQLi
Hope that helps :-)
Re: Fatal error: Class 'DB\stdClass' not found [RESOLVED]
Posted: Tue Oct 07, 2014 5:21 am
by twd247
Hi
I have just change it to MYSQLi and i now get this. please can you help.
Notice: Error: Can't DROP 'value'; check that column/key exists
Error No: 1091
ALTER TABLE `product_option` DROP `value` in /home/flowcent/public_html/system/library/db/mysqli.php on line 40
Notice: Error: Can't DROP 'option_value'; check that column/key exists
Error No: 1091
ALTER TABLE `product_option` DROP `option_value` in /home/flowcent/public_html/system/library/db/mysqli.php on line 40
Warning: Cannot modify header information - headers already sent by (output started at /home/flowcent/public_html/system/library/db/mysqli.php:40) in /home/flowcent/public_html/system/library/response.php on line 12
put back up for now.
Thank you
Mark
Re: Fatal error: Class 'DB\stdClass' not found [RESOLVED]
Posted: Thu Oct 09, 2014 7:29 pm
by bjinau
Getting the same error

Re: Fatal error: Class 'DB\stdClass' not found [RESOLVED]
Posted: Mon Oct 20, 2014 1:00 am
by ajojavi
same, change smqli , and same error
Re: Fatal error: Class 'DB\stdClass' not found [RESOLVED]
Posted: Thu Oct 23, 2014 9:18 am
by ocxd
new stdClass();
Changed To:
new \stdClass();
Re: Fatal error: Class 'DB\stdClass' not found [RESOLVED]
Posted: Wed Mar 09, 2016 7:51 am
by saliverdim
ocxd wrote:new stdClass();
Changed To:
new \stdClass();
alreadyon 2.0.3.1 new \stdClass();
can you help me ?