Post by Rov4 » Mon Jun 19, 2023 8:22 pm

I get these errors when connection V4.0.2.1 to an existing SQLI using V3.x. Can anyone advise exactly what to change?

Warning: Undefined array key "extension" in /var/www/web/Ocart/catalog/model/localisation/language.php on line 44Warning: Undefined array key "extension" in /var/www/web/Ocart/catalog/controller/startup/language.php on line 19Exception: Error: Unknown column 'extension' in 'field list'
Error No: 1054
SELECT DISTINCT `extension` FROM `oc_extension` in /var/www/web/Ocart/system/library/db/mysqli.php on line 64

Newbie

Posts

Joined
Mon Jun 19, 2023 7:40 pm

Post by Johnathan » Mon Jun 19, 2023 10:12 pm

It sounds like you didn't update your database tables (or at least missed the "extension" table). 4.0 has a new "extension" column that 3.0 did not have. You will need to run a comparison between the two databases, and add that column (as well as any others that are missing).

I'd recommend installing a fresh 4.0 installation on a duplicate site, then analyze what is in the columns you have missing. For the "extension" column specifically, it would need to have a value of "opencart" for the default extensions, and the extension codename if it's a third-party extension. (You will need to re-download and re-install new versions of all extensions you use, because 4.0 handles them much differently than 3.0.)

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Emileecardenas » Thu Jun 22, 2023 2:19 pm

Rov4 wrote:
Mon Jun 19, 2023 8:22 pm
I get these errors when connection V4.0.2.1 to an existing SQLI using V3.x. Can anyone advise exactly what to change?

Warning: Undefined array key "extension" in /var/www/web/Ocart/catalog/model/localisation/language.php on line 44Warning: Undefined array key "extension" in /var/www/web/Ocart/catalog/controller/startup/language.php on line 19Exception: Error: Unknown column 'extension' in 'field list'
Error No: 1054
SELECT DISTINCT `extension` FROM `oc_extension` in /var/www/web/Ocart/system/library/db/mysqli.php on line 64
Did you fixed your issue because I am having same issue and it is very annoying for me. I tried many changes checked my extensions which is fine. Also checked array key extension is properly defined. Need help. Target Pay and Benefits


Posts

Joined
Wed Jun 21, 2023 1:57 pm
Who is online

Users browsing this forum: GPAC and 3 guests