InstantCMS - Ошибка в запросе БД: Неизвестный столбец 'i.is enabled' в 'where clause': различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Admin iph (обсуждение | вклад) (Новая страница: «===InstantCMS - Ошибка в запросе БД: Неизвестный столбец 'i.is enabled' в 'where clause' === При переходе по сс…») |
Admin iph (обсуждение | вклад) м |
||
Строка 30: | Строка 30: | ||
Нажат "Go" <br /> | Нажат "Go" <br /> | ||
− | Скриншот: | + | Скриншот: <br /> |
+ | |||
[[Файл:Inst_err2.png | 600x300px]] | [[Файл:Inst_err2.png | 600x300px]] |
Версия 08:56, 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"
Скриншот: