craftcms / commerce

Fully integrated ecommerce for Craft CMS.
https://craftcms.com/commerce
Other
217 stars 170 forks source link

[4.3.1]: Address editing for completed orders broken #3310

Closed bossanova808 closed 10 months ago

bossanova808 commented 10 months ago

What happened?

Description

We're seeing a 500 error trying to edit any address in the orders control panel

{
    "name": "Exception",
    "message": "craft\\web\\View::namespaceInputs(): Argument #1 ($html) must be of type callable|string, null given, called in /home/forge/imagescience.com.au/releases/dev/vendor/craftcms/cms/src/web/View.php on line 1669",
    "code": 0,
    "error": "craft\\web\\View::namespaceInputs(): Argument #1 ($html) must be of type callable|string, null given, called in /home/forge/imagescience.com.au/releases/dev/vendor/craftcms/cms/src/web/View.php on line 1669",
    "exception": "TypeError",
    "file": "/home/forge/imagescience.com.au/releases/dev/vendor/craftcms/cms/src/web/View.php",
    "line": 1657,
    "trace": [
        {
            "file": "/home/forge/imagescience.com.au/releases/dev/vendor/craftcms/cms/src/web/View.php",
            "line": 1669,
            "function": "namespaceInputs",
            "class": "craft\\web\\View",
            "type": "->"
        },
        {
            "file": "/home/forge/imagescience.com.au/releases/dev/vendor/craftcms/cms/src/web/CpScreenResponseFormatter.php",
            "line": 70,
            "function": "namespaceInputs",
            "class": "craft\\web\\View",
            "type": "->"
        },
        {
            "file": "/home/forge/imagescience.com.au/releases/dev/vendor/craftcms/cms/src/web/CpScreenResponseFormatter.php",
            "line": 47,
            "function": "_formatJson",
            "class": "craft\\web\\CpScreenResponseFormatter",
            "type": "->"
        },
        {
            "file": "/home/forge/imagescience.com.au/releases/dev/vendor/yiisoft/yii2/web/Response.php",
            "line": 1100,
            "function": "format",
            "class": "craft\\web\\CpScreenResponseFormatter",
            "type": "->"
        },
        {
            "file": "/home/forge/imagescience.com.au/releases/dev/vendor/craftcms/cms/src/web/Response.php",
            "line": 337,
            "function": "prepare",
            "class": "yii\\web\\Response",
            "type": "->"
        },
        {
            "file": "/home/forge/imagescience.com.au/releases/dev/vendor/yiisoft/yii2/web/Response.php",
            "line": 340,
            "function": "prepare",
            "class": "craft\\web\\Response",
            "type": "->"
        },
        {
            "file": "/home/forge/imagescience.com.au/releases/dev/vendor/yiisoft/yii2/base/Application.php",
            "line": 390,
            "function": "send",
            "class": "yii\\web\\Response",
            "type": "->"
        },
        {
            "file": "/home/forge/imagescience.com.au/releases/dev/web/index.php",
            "line": 12,
            "function": "run",
            "class": "yii\\base\\Application",
            "type": "->"
        }
    ]
}

Craft CMS version

4.5.8

Craft Commerce version

4.3.1

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

-

bossanova808 commented 10 months ago

Ah might be a general Craft thing - https://github.com/craftcms/cms/issues/13867

brandonkelly commented 10 months ago

Craft 4.5.9 is out with a fix for this.