-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column not found Error when saving plugin settings #3
Comments
Hi @raygers, That's weird. Thanks. |
Hi @juban Thanks for the response. The only plugins which I have installed are the following: I am not sure why it does not work. I am also experiencing some issues with the plugin where the article fails to index after save. Is there anywhere where I can check logs for these failures? |
Hi @raygers Very strange indeed. Thanks. |
Hi @raygers Did you figure out what was going wrong? Thanks. |
Hi @raygers, I'm closing the ticket as I did not get new feedback from you and can't reproduce the issue. Thanks again. |
I finally managed to reproduce the issue. |
@juban , apologies for not getting back to you. I haven't had much time to sit and figure it out. In the interim I created an api endpoint using the ElementsApi and I feed that into ES. If you figure it out then let me know and I will test again. Thanks |
Hi @raygers , No apologies needed :) ...
"minimum-stability": "dev",
"prefer-stable": true,
... Let us know. Thanks. |
1.1.0 includes the fix. |
Hi
Get the below error while trying to save the settings from within the plugin settings in CP. I had to revert to using the config file to configure the plugin.
Using Craft Pro 3.1.8
Exception:
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'craft_elements.id' in 'field list' in /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/db/Command.php:1258
Stack trace:
#0 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/db/Command.php(1258): PDOStatement->execute()
#1 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/db/Command.php(1148): yii\db\Command->internalExecute('SELECT `craft_e...')
#2 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/db/Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL)
#3 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/db/Query.php(237): yii\db\Command->queryAll()
#4 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/db/Query.php(161): yii\db\Query->all(NULL)
#5 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/elements/db/ElementQuery.php(1200): craft\db\Query->all(NULL)
#6 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/la-haute-societe/craft-elasticsearch/src/services/Elasticsearch.php(489): craft\elements\db\ElementQuery->all()
#7 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/la-haute-societe/craft-elasticsearch/src/Elasticsearch.php(336): lhs\elasticsearch\services\Elasticsearch->getEnabledEntries()
#8 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/la-haute-societe/craft-elasticsearch/src/Elasticsearch.php(111): lhs\elasticsearch\Elasticsearch->onPluginSettingsSaved()
#9 [internal function]: lhs\elasticsearch\Elasticsearch->lhs\elasticsearch{closure}(Object(craft\events\PluginEvent))
#10 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/base/Event.php(310): call_user_func(Object(Closure), Object(craft\events\PluginEvent))
#11 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/base/Component.php(636): yii\base\Event::trigger('craft\services\...', 'afterSavePlugin...', Object(craft\events\PluginEvent))
#12 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/services/Plugins.php(702): yii\base\Component->trigger('afterSavePlugin...', Object(craft\events\PluginEvent))
#13 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/controllers/PluginsController.php(171): craft\services\Plugins->savePluginSettings(Object(lhs\elasticsearch\Elasticsearch), Array)
#14 [internal function]: craft\controllers\PluginsController->actionSavePluginSettings()
#15 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#16 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#17 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/web/Controller.php(109): yii\base\Controller->runAction('save-plugin-set...', Array)
#18 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('save-plugin-set...', Array)
#19 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/web/Application.php(297): yii\base\Module->runAction('plugins/save-pl...', Array)
#20 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/web/Application.php(561): craft\web\Application->runAction('plugins/save-pl...', Array)
#21 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/web/Application.php(281): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#22 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#23 /Users/raygerstner/GitRespositories/mweb_web_craftcms/web/index.php(21): yii\base\Application->run()
#24 {main}
Next yii\db\Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'craft_elements.id' in 'field list'
The SQL being executed was: SELECT
craft_elements
.id
ASentryId
,craft_elements_sites
.siteId
FROM (SELECT
elements
.id
ASelementsId
,elements_sites
.id
ASelementsSitesId
,content
.id
AScontentId
FROM
craft_elements
elements
INNER JOIN
craft_entries
entries
ONentries
.id
=elements
.id
INNER JOIN
craft_elements_sites
elements_sites
ONelements_sites
.elementId
=elements
.id
INNER JOIN
craft_content
content
ONcontent
.elementId
=elements
.id
LEFT JOIN
craft_structureelements
structureelements
ONstructureelements
.elementId
=elements
.id
WHERE (
elements_sites
.siteId
=1) AND (content
.siteId
=1) AND (elements
.archived
=FALSE) AND (((elements
.enabled
=TRUE) AND (elements_sites
.enabled
=TRUE)) AND (entries
.postDate
<= '2019-02-19 10:44:40') AND ((entries
.expiryDate
IS NULL) OR (entries
.expiryDate
> '2019-02-19 10:44:40'))) AND (elements
.dateDeleted
IS NULL) AND (elements_sites
.enabled
=TRUE)ORDER BY
structureelements
.lft
,entries
.postDate
DESC)subquery
INNER JOIN
craft_entries
entries
ONentries
.id
=subquery
.elementsId
INNER JOIN
craft_elements
elements
ONelements
.id
=subquery
.elementsId
INNER JOIN
craft_elements_sites
elements_sites
ONelements_sites
.id
=subquery
.elementsSitesId
INNER JOIN
craft_content
content
ONcontent
.id
=subquery
.contentId
LEFT JOIN
craft_structureelements
structureelements
ONstructureelements
.elementId
=subquery
.elementsId
ORDER BY
structureelements
.lft
,entries
.postDate
DESC in /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/db/Schema.php:664Stack trace:
#0 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/db/Command.php(1263): yii\db\Schema->convertException(Object(PDOException), 'SELECT
craft_e...') #1 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/db/Command.php(1148): yii\db\Command->internalExecute('SELECT
craft_e...')#2 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/db/Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL)
#3 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/db/Query.php(237): yii\db\Command->queryAll()
#4 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/db/Query.php(161): yii\db\Query->all(NULL)
#5 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/elements/db/ElementQuery.php(1200): craft\db\Query->all(NULL)
#6 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/la-haute-societe/craft-elasticsearch/src/services/Elasticsearch.php(489): craft\elements\db\ElementQuery->all()
#7 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/la-haute-societe/craft-elasticsearch/src/Elasticsearch.php(336): lhs\elasticsearch\services\Elasticsearch->getEnabledEntries()
#8 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/la-haute-societe/craft-elasticsearch/src/Elasticsearch.php(111): lhs\elasticsearch\Elasticsearch->onPluginSettingsSaved()
#9 [internal function]: lhs\elasticsearch\Elasticsearch->lhs\elasticsearch{closure}(Object(craft\events\PluginEvent))
#10 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/base/Event.php(310): call_user_func(Object(Closure), Object(craft\events\PluginEvent))
#11 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/base/Component.php(636): yii\base\Event::trigger('craft\services\...', 'afterSavePlugin...', Object(craft\events\PluginEvent))
#12 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/services/Plugins.php(702): yii\base\Component->trigger('afterSavePlugin...', Object(craft\events\PluginEvent))
#13 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/controllers/PluginsController.php(171): craft\services\Plugins->savePluginSettings(Object(lhs\elasticsearch\Elasticsearch), Array)
#14 [internal function]: craft\controllers\PluginsController->actionSavePluginSettings()
#15 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#16 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#17 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/web/Controller.php(109): yii\base\Controller->runAction('save-plugin-set...', Array)
#18 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('save-plugin-set...', Array)
#19 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/web/Application.php(297): yii\base\Module->runAction('plugins/save-pl...', Array)
#20 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/web/Application.php(561): craft\web\Application->runAction('plugins/save-pl...', Array)
#21 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/craftcms/cms/src/web/Application.php(281): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#22 /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#23 /Users/raygerstner/GitRespositories/mweb_web_craftcms/web/index.php(21): yii\base\Application->run()
#24 {main}
Additional Information:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column 'craft_elements.id' in 'field list'
)
Copied!Copy Stacktrace Search Stackoverflow Search Google Exception
Database Exception – yii\db\Exception
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'craft_elements.id' in 'field list'
The SQL being executed was: SELECT
craft_elements
.id
ASentryId
,craft_elements_sites
.siteId
FROM (SELECT
elements
.id
ASelementsId
,elements_sites
.id
ASelementsSitesId
,content
.id
AScontentId
FROM
craft_elements
elements
INNER JOIN
craft_entries
entries
ONentries
.id
=elements
.id
INNER JOIN
craft_elements_sites
elements_sites
ONelements_sites
.elementId
=elements
.id
INNER JOIN
craft_content
content
ONcontent
.elementId
=elements
.id
LEFT JOIN
craft_structureelements
structureelements
ONstructureelements
.elementId
=elements
.id
WHERE (
elements_sites
.siteId
=1) AND (content
.siteId
=1) AND (elements
.archived
=FALSE) AND (((elements
.enabled
=TRUE) AND (elements_sites
.enabled
=TRUE)) AND (entries
.postDate
<= '2019-02-19 10:44:40') AND ((entries
.expiryDate
IS NULL) OR (entries
.expiryDate
> '2019-02-19 10:44:40'))) AND (elements
.dateDeleted
IS NULL) AND (elements_sites
.enabled
=TRUE)ORDER BY
structureelements
.lft
,entries
.postDate
DESC)subquery
INNER JOIN
craft_entries
entries
ONentries
.id
=subquery
.elementsId
INNER JOIN
craft_elements
elements
ONelements
.id
=subquery
.elementsId
INNER JOIN
craft_elements_sites
elements_sites
ONelements_sites
.id
=subquery
.elementsSitesId
INNER JOIN
craft_content
content
ONcontent
.id
=subquery
.contentId
LEFT JOIN
craft_structureelements
structureelements
ONstructureelements
.elementId
=subquery
.elementsId
ORDER BY
structureelements
.lft
,entries
.postDate
DESCError Info: Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column 'craft_elements.id' in 'field list'
)
↵
Caused by: PDOException
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'craft_elements.id' in 'field list'
in /Users/raygerstner/GitRespositories/mweb_web_craftcms/vendor/yiisoft/yii2/db/Command.php at line 1258
The text was updated successfully, but these errors were encountered: