Page 1 of 12

OpenCart 2.0 ISSUES Topic

Posted: Thu Oct 02, 2014 2:20 am
by i2Paq
Post here any question regarding a CLEAN install of OpenCart 2.0

To report a real bug please use our Atlassian bug tracker here

If you have a suggestion / improvement please use our User Voice system

If you get the error...

Code: Select all

Notice: Undefined variable: text_edit in /home/....../admin/view/template/setting/setting.tpl on line 29
The FIX...
In admin/controller/setting/setting.php on line 26 find...

Code: Select all

           $data['heading_title'] = $this->language->get('heading_title');
After it Add...

Code: Select all

          $data['text_edit'] = $this->language->get('text_edit');
REMEMBER TO USE THE SEARCH BEFORE YOU ASK ABOUT A BUG AS IT MAY BE FIXED ALREADY!

That's it! Enjoy!

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 2:51 am
by pm-netti
This error is admin page setting/setting and click Edit

Code: Select all

Notice: Undefined variable: text_edit in /home/....../admin/view/template/setting/setting.tpl on line 29

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 6:02 am
by hamidg84
When trying to upgrade, 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

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 7:34 am
by sahaja
just instal 2.0 and got this :
Undefined variable: text_edit in /home/......../admin/view/template/setting/setting.tpl on line 29
how to fix this?

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 9:57 am
by Gilmore
FIXED - Undefined variable: text_edit in /home/......../admin/view/template/setting/setting.tpl on line 29

READ THIS POST FOR THE FIX
http://forum.opencart.com/viewtopic.php?f=161&t=131788

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 7:17 pm
by richylh
hamidg84 wrote:When trying to upgrade, 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

For the missing DIR_Modification, please update the config.php and admin/config.php by adding a new line:

Code: Select all

define('DIR_MODIFICATION', 'xxxxxx/system/modification/');
(xxxxx is your root shop directory)


For the system/library/db/mysql.php, please find:

Code: Select all

$query = new stdClass();

and update with:

Code: Select all

$query = new \stdClass();
Note the \ before stdClass()

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 7:40 pm
by hamidg84
Thanks for reply but it's still not working.

I get blank page

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 7:44 pm
by hamidg84
Now i'm getting this

PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/xxx/public_html/vqmod/vqcache/vq2-system_startup.php on line 51

PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/xxx/public_html/vqmod/vqcache/vq2-system_startup.php on line 57

PHP Parse error: syntax error, unexpected '[' in /home/xxxpublic_html/system/library/db/mysql.php on line 39

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 7:56 pm
by pm-netti
hamidg84 wrote:Now i'm getting this

PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/xxx/public_html/vqmod/vqcache/vq2-system_startup.php on line 51

PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/xxx/public_html/vqmod/vqcache/vq2-system_startup.php on line 57

PHP Parse error: syntax error, unexpected '[' in /home/xxxpublic_html/system/library/db/mysql.php on line 39
Do you have a DIR_MODIFICATION defined in the config.php file?
What happens if you change the driver to "mysqli"?

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 8:00 pm
by hamidg84
Yes i have DIR_MODIFICATION defined in the config.php file

What happens if you change the driver to "mysqli"? ( i did not get this bit )?

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 8:02 pm
by OSWorX
hamidg84 wrote:Yes i have DIR_MODIFICATION defined in the config.php file
In both - also the admin?

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 8:33 pm
by pm-netti
hamidg84 wrote:Yes i have DIR_MODIFICATION defined in the config.php file

What happens if you change the driver to "mysqli"? ( i did not get this bit )?
I do not know if this is just official correction, this change helped test:
File system/library/db/mysql.php line 39:

Code: Select all

$query = new stdClass(); > $query = new \stdClass();

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 8:48 pm
by hamidg84
I have added the following but still no luck

$query = new stdClass(); > $query = new \stdClass();

Yes i did add modification line in both admin and root folder.

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 9:07 pm
by hamidg84
My mistake

I wasn't adding public_html patch in config file. Also ** $query = new \stdClass(); *** worked fine in mysql.php

Only problem now i have is below after seeing the successful page.

503 Service Unavailable. The server is temporarily busy, try again later!

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 9:51 pm
by kestas
Hello,

I try upgrade from 1.5.6.4 And now in admin site got this:

Notice: Error: Table '147_152.event' doesn't exist
Error No: 1146
Error in: /mounted-storage/home127/sub005/sc75372-HHAX/xxxx/admin/index.php line 148
SELECT * FROM event in /mounted-storage/home127/sub005/sc75372-HHAX/xxxx/system/library/db/mysql.php on line 53Notice: Trying to get property of non-object in /mounted-storage/home127/sub005/sc75372-HHAX/xxxx/admin/index.php on line 150Warning: Invalid argument supplied for foreach() in /mounted-storage/home127/sub005/sc75372-HHAX/xxxx/admin/index.php on line 150Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home127/sub005/sc75372-HHAX/xxxx/admin/index.php:80) in /mounted-storage/home127/sub005/sc75372-HHAX/xxxx/system/library/response.php on line 12

in front end:
Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /mounted-storage/home127/sub005/sc75372-HHAX/xxxx/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /mounted-storage/home127/sub005/sc75372-HHAX/xxxx/system/startup.php on line 57


Error No: 1146
Error in: /mounted-storage/home127/sub005/sc75372-HHAX/xxxx/index.php line 236
SELECT * FROM event in /mounted-storage/home127/sub005/sc75372-HHAX/xxxx/system/library/db/mysql.php on line 53Notice: Trying to get property of non-object in /mounted-storage/home127/sub005/sc75372-HHAX/xxxx/index.php on line 238Warning: Invalid argument supplied for foreach() in /mounted-storage/home127/sub005/sc75372-HHAX/xxxx/index.php on line 238


Where is the problem?

Re: OpenCart 2.0 BUG Topic

Posted: Thu Oct 02, 2014 10:55 pm
by pm-netti
kestas wrote:Hello,

I try upgrade from 1.5.6.4 And now in admin site got this:

Notice: Error: Table '147_152.event' doesn't exist

Where is the problem?
A little risky to upgrade the manufacturing trade.
Can be a tedious job.
Try using the help opencart.sql file. Copy that file somewhere and edit it. Delete all the rows, which add tables data (INSERT INTO .... etc..)
After downloading the file to the database.
Update config.php file

Re: OpenCart 2.0 BUG Topic

Posted: Fri Oct 03, 2014 4:15 am
by hamidg84
Anyone please?

Re: OpenCart 2.0 BUG Topic

Posted: Fri Oct 03, 2014 4:53 am
by Gilmore
You have an error with your vQmod. Make sure you have updated vQmod to the latest version.
https://github.com/vqmod/vqmod/releases
You will want the latest one for Opencart.
VQmod is NOT part of Opencart.

Also clear your vQmod cache and see if that helps too, since both errors stem form the vqmod cache.
hamidg84 wrote:Now i'm getting this

PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/xxx/public_html/vqmod/vqcache/vq2-system_startup.php on line 51

PHP Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/xxx/public_html/vqmod/vqcache/vq2-system_startup.php on line 57

PHP Parse error: syntax error, unexpected '[' in /home/xxxpublic_html/system/library/db/mysql.php on line 39
Also keep in mind, the previous Extensions, themes and such probably are NOT 2.0 compatible. Disable them and check for updates from the Author of those.

Re: OpenCart 2.0 BUG Topic

Posted: Fri Oct 03, 2014 5:08 am
by dpit
The welcome mod has some issues... (upgrade from 1.5.6 > 2)

Notice: Indirect modification of overloaded property ControllerModuleWelcome::$data has no effect in /public_html/admin/controller/module/welcome.php on line 20Notice: Indirect modification of overloaded property ControllerModuleWelcome::$data has no effect in /public_html/admin/controller/module/welcome.php on line 22...and on, and on, and on

Solution: drop the welcome mod and use the HTML content mod instead

Re: OpenCart 2.0 BUG Topic

Posted: Fri Oct 03, 2014 5:30 am
by dpit
If I add a product to the cart, the button cycles via "loading.." but the cart doesn't refresh.

However, if I change page the cart loads with the product added.