Post by i2Paq » Thu Oct 02, 2014 2:20 am

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!

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by pm-netti » Thu Oct 02, 2014 2:51 am

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

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by hamidg84 » Thu Oct 02, 2014 6:02 am

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

Active Member

Posts

Joined
Wed Feb 29, 2012 6:18 am

Post by sahaja » Thu Oct 02, 2014 7:34 am

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?

Newbie

Posts

Joined
Thu Oct 02, 2014 7:33 am

Post by Gilmore » Thu Oct 02, 2014 9:57 am

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
Last edited by Gilmore on Sat Oct 04, 2014 3:36 am, edited 1 time in total.

Thanks!

Gilmore


User avatar
Active Member

Posts

Joined
Thu Aug 12, 2010 7:33 am

Post by richylh » Thu Oct 02, 2014 7:17 pm

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()
Last edited by OSWorX on Thu Oct 02, 2014 7:50 pm, edited 1 time in total.
Reason: fixed code

Newbie

Posts

Joined
Mon Feb 14, 2011 7:39 am

Post by hamidg84 » Thu Oct 02, 2014 7:40 pm

Thanks for reply but it's still not working.

I get blank page

Active Member

Posts

Joined
Wed Feb 29, 2012 6:18 am

Post by hamidg84 » Thu Oct 02, 2014 7:44 pm

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

Active Member

Posts

Joined
Wed Feb 29, 2012 6:18 am

Post by pm-netti » Thu Oct 02, 2014 7:56 pm

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"?

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by hamidg84 » Thu Oct 02, 2014 8:00 pm

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 )?

Active Member

Posts

Joined
Wed Feb 29, 2012 6:18 am

Post by OSWorX » Thu Oct 02, 2014 8:02 pm

hamidg84 wrote:Yes i have DIR_MODIFICATION defined in the config.php file
In both - also the admin?

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by pm-netti » Thu Oct 02, 2014 8:33 pm

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();

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by hamidg84 » Thu Oct 02, 2014 8:48 pm

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.

Active Member

Posts

Joined
Wed Feb 29, 2012 6:18 am

Post by hamidg84 » Thu Oct 02, 2014 9:07 pm

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!

Active Member

Posts

Joined
Wed Feb 29, 2012 6:18 am

Post by kestas » Thu Oct 02, 2014 9:51 pm

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?

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by pm-netti » Thu Oct 02, 2014 10:55 pm

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

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by hamidg84 » Fri Oct 03, 2014 4:15 am

Anyone please?

Active Member

Posts

Joined
Wed Feb 29, 2012 6:18 am

Post by Gilmore » Fri Oct 03, 2014 4:53 am

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.

Thanks!

Gilmore


User avatar
Active Member

Posts

Joined
Thu Aug 12, 2010 7:33 am

Post by dpit » Fri Oct 03, 2014 5:08 am

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

Newbie

Posts

Joined
Sun Apr 08, 2012 12:58 am

Post by dpit » Fri Oct 03, 2014 5:30 am

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.

Newbie

Posts

Joined
Sun Apr 08, 2012 12:58 am
Who is online

Users browsing this forum: No registered users and 51 guests