craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.28k stars 635 forks source link

[3.x]: Setting unknown property: craft\models\MailSettings::tempVolumeUid #11102

Closed mijewe closed 2 years ago

mijewe commented 2 years ago

What happened?

Description

I went to the Commerce System Settings page (/admin/commerce/settings/general), and I get an error: Setting unknown property: craft\models\MailSettings::tempVolumeUid

The same error occurs when I go to the Email Settings page (/admin/settings/email)

Steps to reproduce

  1. go to the Email Settings page (/admin/settings/email)
  2. see the error message

Expected behavior

Actual behavior

Craft CMS version

3.7.40.1

PHP version

8.0.17

Operating system and version

Linux 5.10.104-linuxkit

Database type and version

MySQL 10.3.34

Image driver and version

Imagick 3.7.0 (ImageMagick 7.1.0-16)

Installed plugins and versions

Blitz 3.12.4 CP Field Inspect 1.4.2 Craft Commerce 3.4.14 Formie 1.5.16 Imager X v3.5.8 Maps 3.9.3 oEmbed 1.3.15 PayPal Checkout for Craft Commerce 1.3.2.1 Phone Number 1.5.0 Postmark 2.1.0 Redactor 2.10.8 Retour 3.1.71 Sentry SDK 1.1.2 SEOmatic 3.4.30 Super Table 2.7.1 Typed link field 1.0.25 Xero 1.0.4.1

brandonkelly commented 2 years ago

Please search for the error in storage/logs/web.log, and post the stack trace that is logged after it.

mijewe commented 2 years ago

Here you go

Stack trace:
#0 /app/vendor/yiisoft/yii2/BaseYii.php(558): yii\base\Component->__set('tempVolumeUid', '25e20d7e-8aeb-4...')
#1 /app/vendor/yiisoft/yii2/base/BaseObject.php(107): yii\BaseYii::configure(Object(craft\models\MailSettings), Array)
#2 /app/vendor/craftcms/cms/src/helpers/App.php(690): yii\base\BaseObject->__construct(Array)
#3 /app/vendor/craftcms/commerce/src/controllers/SettingsController.php(33): craft\helpers\App::mailSettings()
#4 [internal function]: craft\commerce\controllers\SettingsController->actionEdit()
#5 /app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#6 /app/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
#7 /app/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction('edit', Array)
#8 /app/vendor/craftcms/cms/src/web/Application.php(293): yii\base\Module->runAction('commerce/settin...', Array)
#9 /app/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction('commerce/settin...', Array)
#10 /app/vendor/craftcms/cms/src/web/Application.php(278): yii\web\Application->handleRequest(Object(craft\web\Request))
#11 /app/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest(Object(craft\web\Request))
#12 /app/web/index.php(21): yii\base\Application->run()
#13 {main}
mijewe commented 2 years ago

Looks like this was due to a dodgy yaml merge which caused the tempVolumeUid field to be somewhere it shouldn't be