Skip to content
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

[5.x]: #3774

Open
mdresoled opened this issue Nov 15, 2024 · 1 comment
Open

[5.x]: #3774

mdresoled opened this issue Nov 15, 2024 · 1 comment

Comments

@mdresoled
Copy link

What happened?

Description

We upgraded our Commerce and CMS versions this morning.

Now whenever we access the the commerce table on a user profile we get the following error log

2024-11-15 18:28:24 [web.INFO] [yii\db\Connection::open] Opening DB connection: pgsql:host=127.0.0.1;port=3307;dbname=somedb {"memory":820840} 
2024-11-15 18:28:24 [web.INFO] [yii\web\Session::open] Session started {"memory":1585400} 
2024-11-15 18:28:24 [web.INFO] [nystudio107\codeeditor\CodeEditor::bootstrap] CodeEditor module bootstrapped {"memory":1685824} 
2024-11-15 18:28:24 [web.ERROR] [yii\base\ErrorException:2] yii\base\ErrorException: Undefined array key "defaultViewMode" in /app/vendor/craftcms/cms/src/helpers/Cp.php:1286
Stack trace:
#0 /app/vendor/craftcms/cms/src/web/ErrorHandler.php(79): yii\base\ErrorHandler->handleError()
#1 /app/vendor/craftcms/cms/src/helpers/Cp.php(1286): craft\web\ErrorHandler->handleError()
#2 /app/vendor/craftcms/commerce/src/controllers/UsersController.php(68): craft\helpers\Cp::elementIndexHtml()
#3 [internal function]: craft\commerce\controllers\UsersController->actionIndex()
#4 /app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#5 /app/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#6 /app/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction()
#7 /app/vendor/craftcms/cms/src/web/Application.php(350): yii\base\Module->runAction()
#8 /app/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction()
#9 /app/vendor/craftcms/cms/src/web/Application.php(318): yii\web\Application->handleRequest()
#10 /app/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest()
#11 /app/web/index.php(12): yii\base\Application->run()
#12 {main} {"memory":3566800,"exception":"[object] (yii\\base\\ErrorException(code: 2): Undefined array key \"defaultViewMode\" at /app/vendor/craftcms/cms/src/helpers/Cp.php:1286)"} 

Steps to reproduce

  1. Upgrade to CMS 5.5.0.1 and Commerce to 5.2.4
  2. Navigati to users
  3. Select user
  4. Click the Commerce tab on the left

Expected behavior

Show me the standard Commerce section

Actual behavior

The commerce section is blank

Craft CMS version

5.5.0.1

Craft Commerce version

5.2.4

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant