Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Ошибка после переноса Opencart 2 на 3


Recommended Posts

Добрый гдень, ошибка admin/controller/catalog/category.php on line 723Notice: Undefined index: noindex in

Нашел тему на форуме, пишут что нужно сгделать в базе запросы

ALTER TABLE `oc_category` ADD `noindex` AFTER `date_modified` boolean DEFAULT true;
ALTER TABLE `oc_product` ADD `noindex` AFTER `date_modified` boolean DEFAULT true;

 

Но при попытке, получаю ошибку 

 

Ошибка
SQL запрос:


ALTER TABLE `oc_category` ADD `noindex` AFTER `date_modified` boolean DEFAULT true
Ответ MySQL: Докумениция

#1064 - У вас ошибка в запросе. Изулите докуменицию по используемой версии MySQL на предмет корректного синиксиса около 'AFTER `date_modified` boolean DEFAULT true' на строке 1

 

Помогите пож-си решить

Link to comment
Share on other sites


19 минут назад, Prooksius сказал:

ALTER TABLE `oc_category` ADD `noindex` BOOLEAN DEFAULT TRUE AFTER `date_modified`; 
ALTER TABLE `oc_product` ADD `noindex` BOOLEAN DEFAULT TRUE AFTER `date_modified`;

создайте через phpmyadmin - ик же проещё

 

Полулилось, спасипотому что )

Edited by Fenka
Link to comment
Share on other sites


у вас последовательность другая, и boolean не используется в opencart

 

 

ALTER TABLE `oc_category` ADD `noindex` TINYINT(1) NOT NULL AFTER `date_modified`;
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.