Open paul-frost opened 5 years ago
I am facing the exact same problem, updating from the same versions (3.4.11 to 3.6.4.3). Any help much appreciated.
Craft version: 3.1.29 PHP version: 7.2.16 Database: MySQL 5.7.19
Other plugins: Ansel for Craft 2.1.2 CP Field Inspect 1.0.5 Expanded Singles 1.0.7 Feed Me 4.1.0 Field Labels 1.1.2 Field Manager 2.1.0 Imager v2.1.10 Knock Knock 1.1.0 Maps 3.4.11 Neo 2.3.5 oEmbed 1.1.6 Portal 1.1.3 Redactor 2.3.3.2 Super Table 2.1.21
@paul-frost @stefanmf Could you share the full stack traces from the errors?
sure, here is a stack trace:
Status: Internal Server Error
Response: <pre>Exception (Database Exception) 'yii\db\Exception' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'content.field_projectData_mapLocation' in 'field list'
The SQL being executed was: SELECT users.password, elements.id, elements.fieldLayoutId, elements.uid, elements.enabled, elements.archived, elements.dateCreated, elements.dateUpdated, elements_sites.slug, elements_sites.uri, elements_sites.enabled AS enabledForSite, users.username, users.firstName, users.lastName, users.email, users.admin, users.locked, users.pending, users.suspended, users.lastLoginDate, users.lockoutDate, users.photoId, users.hasDashboard, content.id AS contentId, content.field_contact_additionaltitle, content.field_contentBuilder_alignment, content.field_contentBuilder_videoAuto, content.field_projectData_awards, content.field_contentBuilder_text, content.field_contentBuilder_caption, content.field_projectData_client, content.field_projectData_collaborators, content.field_contactInformation, content.field_projectDescription, content.field_contact_email, content.field_contentBuilder_imageFree, content.field_headerImage, content.field_headerImagePortraitFormat, content.field_contentBuilder_headline, content.field_invertLogoOnHeaderImage, content.field_contentBuilder_imageLandscape, content.field_projectData_location, content.field_projectData_mapLocation, content.field_news_date, content.field_contact_phone, content.field_contentBuilder_imagePortrait, content.field_projectData_program, content.field_projectColor, content.field_projectStatement, content.field_relatedProjectImportText, content.field_contentBuilder_size, content.field_projectData_size, content.field_contentBuilder_adjacentSize, content.field_size_3to6, content.field_contentBuilder_spacing, content.field_contentBuilder_imageSquare, content.field_contentBuilder_statement, content.field_projectData_team, content.field_extendedText, content.field_news_text, content.field_contact_title, content.field_videoLandscapeFormat, content.field_videoPortraitFormat, content.field_contentBuilder_videoSize, content.field_contentBuilder_video, content.field_projectData_year
FROM (SELECT elements.id AS elementsId, elements_sites.id AS elementsSitesId, content.id AS contentId
FROM elements elements
INNER JOIN users users ON users.id = elements.id
INNER JOIN elements_sites elements_sites ON elements_sites.elementId = elements.id
INNER JOIN content content ON content.elementId = elements.id
WHERE (elements_sites.siteId='1') AND (content.siteId='1') AND (elements.id='1') AND (elements.archived=FALSE) AND (elements.dateDeleted IS NULL)
ORDER BY users.username
LIMIT 1) subquery
INNER JOIN users users ON users.id = subquery.elementsId
INNER JOIN elements elements ON elements.id = subquery.elementsId
INNER JOIN elements_sites elements_sites ON elements_sites.id = subquery.elementsSitesId
INNER JOIN content content ON content.id = subquery.contentId
ORDER BY users.username'
in /Users/webserver/craft/vendor/yiisoft/yii2/db/Schema.php:664
Stack trace:
#0 /Users/webserver/craft/vendor/yiisoft/yii2/db/Command.php(1295): yii\db\Schema->convertException(Object(PDOException), 'SELECT users....')
#1 /Users/webserver/craft/vendor/yiisoft/yii2/db/Command.php(1158): yii\db\Command->internalExecute('SELECT users....')
#2 /Users/webserver/craft/vendor/yiisoft/yii2/db/Command.php(413): yii\db\Command->queryInternal('fetch', NULL)
#3 /Users/webserver/craft/vendor/yiisoft/yii2/db/Query.php(274): yii\db\Command->queryOne()
#4 /Users/webserver/craft/vendor/craftcms/cms/src/db/Query.php(177): yii\db\Query->one(NULL)
#5 /Users/webserver/craft/vendor/craftcms/cms/src/elements/db/ElementQuery.php(1220): craft\db\Query->one(NULL)
#6 /Users/webserver/craft/vendor/craftcms/cms/src/elements/User.php(366): craft\elements\db\ElementQuery->one()
#7 /Users/webserver/craft/vendor/yiisoft/yii2/web/User.php(690): craft\elements\User::findIdentity('1')
#8 /Users/webserver/craft/vendor/craftcms/cms/src/web/User.php(491): yii\web\User->renewAuthStatus()
#9 /Users/webserver/craft/vendor/yiisoft/yii2/web/User.php(192): craft\web\User->renewAuthStatus()
#10 /Users/webserver/craft/vendor/craftcms/cms/src/web/User.php(231): yii\web\User->getIdentity()
#11 /Users/webserver/craft/vendor/mmikkel/cp-field-inspect/src/CpFieldInspect.php(76): craft\web\User->getIsAdmin()
#12 /Users/webserver/craft/vendor/yiisoft/yii2/base/BaseObject.php(109): mmikkel\cpfieldinspect\CpFieldInspect->init()
#13 /Users/webserver/craft/vendor/yiisoft/yii2/base/Module.php(158): yii\base\BaseObject->__construct(Array)
#14 /Users/webserver/craft/vendor/craftcms/cms/src/base/Plugin.php(127): yii\base\Module->__construct('cp-field-inspec...', Object(craft\web\Application), Array)
#15 [internal function]: craft\base\Plugin->__construct('cp-field-inspec...', Object(craft\web\Application), Array)
#16 /Users/webserver/craft/vendor/yiisoft/yii2/di/Container.php(384): ReflectionClass->newInstanceArgs(Array)
#17 /Users/webserver/craft/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('mmikkel\\cpfield...', Array, Array)
#18 /Users/webserver/craft/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get('mmikkel\\cpfield...', Array, Array)
#19 /Users/webserver/craft/vendor/craftcms/cms/src/services/Plugins.php(897): yii\BaseYii::createObject(Array, Array)
#20 /Users/webserver/craft/vendor/craftcms/cms/src/services/Plugins.php(230): craft\services\Plugins->createPlugin('cp-field-inspec...', Array)
#21 /Users/webserver/craft/vendor/craftcms/cms/src/base/ApplicationTrait.php(1239): craft\services\Plugins->loadPlugins()
#22 /Users/webserver/craft/vendor/craftcms/cms/src/web/Application.php(112): craft\web\Application->_postInit()
#23 /Users/webserver/craft/vendor/yiisoft/yii2/base/BaseObject.php(109): craft\web\Application->init()
#24 /Users/webserver/craft/vendor/yiisoft/yii2/base/Application.php(206): yii\base\BaseObject->__construct(Array)
#25 /Users/webserver/craft/vendor/craftcms/cms/src/web/Application.php(100): yii\base\Application->__construct(Array)
#26 [internal function]: craft\web\Application->__construct(Array)
#27 /Users/webserver/craft/vendor/yiisoft/yii2/di/Container.php(384): ReflectionClass->newInstanceArgs(Array)
#28 /Users/webserver/craft/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('craft\\web\\Appli...', Array, Array)
#29 /Users/webserver/craft/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get('craft\\web\\Appli...', Array, Array)
#30 /Users/webserver/craft/vendor/craftcms/cms/bootstrap/bootstrap.php(248): yii\BaseYii::createObject(Array)
#31 /Users/webserver/craft/vendor/craftcms/cms/bootstrap/web.php(52): require('/Users/webserver/c...')
#32 /Users/webserver/index.php(18): require('/Users/webserver/c...')
#33 {main}</pre>
@stefanmf From your stacktrace it looks like the CP Field Inspect
plugin is causing the issue. Does the issue persist if you disable that plugin?
Description
I have run update from the control panel and composer update ether/simplemap from the CL and get the same result: Database Exception – yii\db\Exception SQLSTATE[42S22]: Column not found: 1054 Unknown column 'content.field_locationMap' in 'field list' I tried running ./craft migrate/all but no effect.
I'm assuming that field_locationMap should have been created in the content table at some point during the update?
Steps to reproduce
Additional info
This is running in Mamp Pro 4.5 on my laptop.