InstantCMS - Ошибка в запросе БД: Неизвестный столбец 'i.is enabled' в 'where clause': различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Admin iph (обсуждение | вклад) м |
Admin iph (обсуждение | вклад) |
||
(не показана 1 промежуточная версия этого же участника) | |||
Строка 24: | Строка 24: | ||
− | Решение - зайти в phpmyadmin в базу и выполнить 3 sql запроса: | + | '''Решение - зайти в phpmyadmin в базу и выполнить 3 sql запроса:''' |
ALTER TABLE `cms_topic_threads_fields` ADD `groups_add` TEXT NULL DEFAULT NULL AFTER `groups_read`; | ALTER TABLE `cms_topic_threads_fields` ADD `groups_add` TEXT NULL DEFAULT NULL AFTER `groups_read`; | ||
UPDATE `cms_topic_threads_fields` SET `groups_add`= `groups_edit`; | UPDATE `cms_topic_threads_fields` SET `groups_add`= `groups_edit`; | ||
ALTER TABLE `cms_topic_threads_fields` ADD `is_enabled` TINYINT(1) UNSIGNED NULL DEFAULT '1' AFTER `ordering`; | ALTER TABLE `cms_topic_threads_fields` ADD `is_enabled` TINYINT(1) UNSIGNED NULL DEFAULT '1' AFTER `ordering`; | ||
− | + | Нажать "Go" <br /> | |
Скриншот: <br /> | Скриншот: <br /> | ||
[[Файл:Inst_err2.png | 600x300px]] | [[Файл:Inst_err2.png | 600x300px]] |
Текущая версия на 08:57, 29 августа 2019
InstantCMS - Ошибка в запросе БД: Неизвестный столбец 'i.is enabled' в 'where clause'
При переходе по ссылкам на форуме и с главной на форум пишет
Ошибка в запросе БД: Неизвестный столбец 'i.is_enabled' в 'where clause' SELECT i.* FROM cms_topic_threads_fields i WHERE (i.is_enabled = '1') ORDER BY i.ordering LIMIT 1000 Последние вызовы: cmsModel->get() @ /system/controllers/content/model.php : 613 modelContent->getContentFields() @ /system/controllers/topic/actions/view.php : 64 actionTopicView->run() call_user_func_array() @ /system/core/controller.php : 546 cmsController->runExternalAction() @ /system/core/controller.php : 453 cmsController->executeAction() @ /system/core/controller.php : 429 cmsController->runAction() @ /system/core/core.php : 764 cmsCore->runController() @ /index.php : 44
Решение - зайти в phpmyadmin в базу и выполнить 3 sql запроса:
ALTER TABLE `cms_topic_threads_fields` ADD `groups_add` TEXT NULL DEFAULT NULL AFTER `groups_read`; UPDATE `cms_topic_threads_fields` SET `groups_add`= `groups_edit`; ALTER TABLE `cms_topic_threads_fields` ADD `is_enabled` TINYINT(1) UNSIGNED NULL DEFAULT '1' AFTER `ordering`;
Нажать "Go"
Скриншот: