I am getting this error during my upgdare of http://rentusmailbox.com/install/index. ... te=upgrade
Fatal error: Class 'DB\stdClass' not found in /home2/neighbor/public_html/rentusmailbox.com/system/library/db/mysql.php on line 39
Mysql.php attached
Fatal error: Class 'DB\stdClass' not found in /home2/neighbor/public_html/rentusmailbox.com/system/library/db/mysql.php on line 39
Mysql.php attached
Attachments
When trying to upgrade via /install, im getting the follow error
PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/xxx/public_html/system/startup.php on line 53
PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/xxx/public_html/system/startup.php on line 57
PHP Fatal error: Class 'DB\stdClass' not found in /home/xxx/public_html/system/library/db/mysql.php on line 39
PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/xxx/public_html/system/startup.php on line 53
PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/xxx/public_html/system/startup.php on line 57
PHP Fatal error: Class 'DB\stdClass' not found in /home/xxx/public_html/system/library/db/mysql.php on line 39
It's likely something wrong in the config.php file. Make a fresh install of OC2.0 and then change the DB details in the config.php and run the upgrade script yoursite/install.hermis wrote:I'm getting this error "Fatal error: Class 'DB\stdClass' not found in" when upgrading opencart from 1.5.3.1 to 2.0.0.0
It should work
config file is ok, db login data and filepaths are correct. problem is somewhere else..beipink wrote:It's likely something wrong in the config.php file. Make a fresh install of OC2.0 and then change the DB details in the config.php and run the upgrade script yoursite/install.hermis wrote:I'm getting this error "Fatal error: Class 'DB\stdClass' not found in" when upgrading opencart from 1.5.3.1 to 2.0.0.0
It should work
No errors here although DB is not modified (tables are not added). PHP 5.4.
It must be something corrupt somewhere in your installation.
Try and replace all files. Update to OC 1.5.6 first and then on to OC 2.0 and see if that gives you any error. Keep tab of the tables created.
If I remember correctly OC1.5.5 has 109Tables OC1.5.6 130+ and OC2.0 150+
It must be something corrupt somewhere in your installation.
Try and replace all files. Update to OC 1.5.6 first and then on to OC 2.0 and see if that gives you any error. Keep tab of the tables created.
If I remember correctly OC1.5.5 has 109Tables OC1.5.6 130+ and OC2.0 150+
upgrade from 1.5.3.1 to 1.5.6.4 went OK, from 1.5.6.4 to 2.0.0.0 gave same error as posted above in screenshot:beipink wrote:No errors here although DB is not modified (tables are not added). PHP 5.4.
It must be something corrupt somewhere in your installation.
Try and replace all files. Update to OC 1.5.6 first and then on to OC 2.0 and see if that gives you any error. Keep tab of the tables created.
If I remember correctly OC1.5.5 has 109Tables OC1.5.6 130+ and OC2.0 150+
Fatal error: Class 'DB\stdClass' not found in C:\wamp\www\bem\system\library\db\mysql.php on line 39
For the missing DIR_Modification, please update the config.php and admin/config.php by adding a new line:hamidg84 wrote:When trying to upgrade via /install, im getting the follow error
PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/xxx/public_html/system/startup.php on line 53
PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/xxx/public_html/system/startup.php on line 57
PHP Fatal error: Class 'DB\stdClass' not found in /home/xxx/public_html/system/library/db/mysql.php on line 39
Code: Select all
define('DIR_MODIFICATION', 'xxxxxx/system/modification/');
For the system/library/db/mysql.php, please find:
Code: Select all
$query = new stdClass();
Code: Select all
$query = new \stdClass();
Last edited by richylh on Fri Oct 03, 2014 10:19 am, edited 1 time in total.
Hi,
Thanks for the post, I have tried this fix and when running the install again, I get:
Parse error: syntax error, unexpected '[' in /homepages/44/d478900058/htdocs/trade/system/library/db/mysql.php on line 39
Removing the [, give a different message:
Parse error: syntax error, unexpected '=' in /homepages/44/d478900058/htdocs/trade/system/library/db/mysql.php on line 39
Any war of fixing the issue, or using different code?
Thanks
Thanks for the post, I have tried this fix and when running the install again, I get:
Parse error: syntax error, unexpected '[' in /homepages/44/d478900058/htdocs/trade/system/library/db/mysql.php on line 39
Removing the [, give a different message:
Parse error: syntax error, unexpected '=' in /homepages/44/d478900058/htdocs/trade/system/library/db/mysql.php on line 39
Any war of fixing the issue, or using different code?
Thanks
Hello,
I just installed opencart 2.0 in my store and i keep getting error.
Whenever, i try to make any changes it doesn't save it. I'm guessing it has to do with the token error i receive.
Any knows how to solve this problem?
I just installed opencart 2.0 in my store and i keep getting error.
Whenever, i try to make any changes it doesn't save it. I'm guessing it has to do with the token error i receive.
Any knows how to solve this problem?
Attachments
error.jpg (234.25 KiB) Viewed 26690 times
For the missing DIR_Modification, please update the config.php and admin/config.php by adding a new line:(xxxxx is your root shop directory)Code: Select all
define('DIR_MODIFICATION', 'xxxxxx/system/modification/');
For the system/library/db/mysql.php, please find:and update with:Code: Select all
$query = new stdClass();
Code: Select all
$query = new \stdClass();
I tried upgrading from 1.5.4 and got both of the same errors. I applied the fix above and it cleared up the errors but then it couldn't find some tables. I also noticed a syntax error during the upgrade process(below). I just switched back to my backups and will wait until this is smoothed out.
opencart syntax error, unexpected $end in install/model/upgrade.php on line 271
Also.. People(aka luisvillacrez) please don't hijack threads with other errors/issues. Start your own thread.. Its just as easy.
I'm getting following error on upgrade. can you please help?
Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/goshoppeuk/public_html/system/startup.php on line 53
Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/goshoppeuk/public_html/system/startup.php on line 57
Fatal error: Class 'DB\stdClass' not found in /home/goshoppeuk/public_html/system/library/db/mysql.php on line 39
Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/goshoppeuk/public_html/system/startup.php on line 53
Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/goshoppeuk/public_html/system/startup.php on line 57
Fatal error: Class 'DB\stdClass' not found in /home/goshoppeuk/public_html/system/library/db/mysql.php on line 39
I am trying to upgrade from 1.5.4 to 2.0
got below error
Notice: Error: Can't DROP 'option_value'; check that column/key exists
Error No: 1091
Error in: /home/******/public_html/******/install/model/upgrade.php line 349
ALTER TABLE `oc_product_option` DROP `option_value` in /home/*******/public_html/*****/system/library/db/mysql.php on line 53
got below error
Notice: Error: Can't DROP 'option_value'; check that column/key exists
Error No: 1091
Error in: /home/******/public_html/******/install/model/upgrade.php line 349
ALTER TABLE `oc_product_option` DROP `option_value` in /home/*******/public_html/*****/system/library/db/mysql.php on line 53
Hello,
I've upgraded from 1.5.6.3 to 2.0.1.1 and can't even log in the Admin Panel.
I get the following:
Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /www/cosmetophoria.com/www/root/system/startup.php on line 53
Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /www/cosmetophoria.com/www/root/system/startup.php on line 57
I've upgraded from 1.5.6.3 to 2.0.1.1 and can't even log in the Admin Panel.
I get the following:
Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /www/cosmetophoria.com/www/root/system/startup.php on line 53
Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /www/cosmetophoria.com/www/root/system/startup.php on line 57
Hi
I fixed this problem. My issue was that I had forgoten to upload the theme update. I uploaded my theme update and this fixed the issue. Make sure your theme has an update for a new opencart version before upgrading.
I fixed this problem. My issue was that I had forgoten to upload the theme update. I uploaded my theme update and this fixed the issue. Make sure your theme has an update for a new opencart version before upgrading.
Any news about this post?
I follow the instructions that are displayed to the https://www.youtube.com/watch?v=zRyIA9cWrSE but I get many errors
ex. Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/opencart/system/startup.php on line 53Notice
The Open Card is new installation I didn't had any products or configurations from 1.5.4.
I follow the instructions that are displayed to the https://www.youtube.com/watch?v=zRyIA9cWrSE but I get many errors
ex. Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/opencart/system/startup.php on line 53Notice
The Open Card is new installation I didn't had any products or configurations from 1.5.4.
I had the same errors and applied the code in the config files as suggested above and now everything seems to work as it should.
2015-05-12 17:58:19 - PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home1/jonjazz/public_html/system/startup.php on line 51
2015-05-12 17:58:19 - PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home1/jonjazz/public_html/system/startup.php on line 57
Thanks.
JB
2015-05-12 17:58:19 - PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home1/jonjazz/public_html/system/startup.php on line 51
2015-05-12 17:58:19 - PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home1/jonjazz/public_html/system/startup.php on line 57
Thanks.
JB
Who is online
Users browsing this forum: No registered users and 18 guests