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

[4.x]: Update to 4.3.2 broke image transform #12333

Closed
petenice opened this issue Nov 17, 2022 · 1 comment
Closed

[4.x]: Update to 4.3.2 broke image transform #12333

petenice opened this issue Nov 17, 2022 · 1 comment

Comments

@petenice
Copy link

petenice commented Nov 17, 2022

What happened?

Description

Updated CraftCMS to 4.3.2, and image transform borked, error message follows

[HTTP 500 – Internal Server Error](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#500) – [yii\web\ServerErrorHttpException](https://www.yiiframework.com/doc-2.0/yii-web-servererrorhttpexception.html)
Image transform cannot be created.
↵
Caused by: yii\base\ErrorException
Undefined array key "height" in /Users/petenice/Sites/VOA3/public/vendor/craftcms/cms/src/helpers/ImageTransforms.php at line 61

1. in /Users/petenice/Sites/VOA3/public/vendor/craftcms/cms/src/controllers/AssetsController.php at line 1056
1047104810491050105110521053105410551056105710581059106010611062106310641065                
$transform = $transformIndexModel->getTransform();
            } else {
                $assetId = $this->request->getRequiredBodyParam('assetId');
                $handle = $this->request->getRequiredBodyParam('handle');
                $transform = ImageTransforms::normalizeTransform($handle);
                $transformer = $transform->getImageTransformer();
            }
        } catch (\Exception $exception) {
            Craft::$app->getErrorHandler()->logException($exception);
            throw new ServerErrorHttpException('Image transform cannot be created.', 0, $exception);
        }
 
        $asset = Asset::findOne(['id' => $assetId]);
 
        if (!$asset) {
            throw new NotFoundHttpException();
        }
 
        $url = $transformer->getTransformUrl($asset, $transform, true);
2. craft\controllers\AssetsController::actionGenerateTransform(35434)
3. in /Users/petenice/Sites/VOA3/public/vendor/yiisoft/yii2/base/InlineAction.php at line 57– call_user_func_array([craft\controllers\AssetsController, 'actionGenerateTransform'], [35434])
4. in /Users/petenice/Sites/VOA3/public/vendor/yiisoft/yii2/base/Controller.php at line 178– [yii\base\InlineAction::runWithParams](https://www.yiiframework.com/doc-2.0/yii-base-inlineaction.html#runWithParams()-detail)(['transformId' => '35434'])
5. in /Users/petenice/Sites/VOA3/public/vendor/yiisoft/yii2/base/Module.php at line 552– [yii\base\Controller::runAction](https://www.yiiframework.com/doc-2.0/yii-base-controller.html#runAction()-detail)('generate-transform', ['transformId' => '35434'])
6. in /Users/petenice/Sites/VOA3/public/vendor/craftcms/cms/src/web/Application.php at line 301– [yii\base\Module::runAction](https://www.yiiframework.com/doc-2.0/yii-base-module.html#runAction()-detail)('assets/generate-transform', ['transformId' => '35434'])

Craft CMS version

4.3.2

PHP version

8.0

Operating system and version

Valet / Nginx

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

Doh, thanks for reporting that. Just released 4.3.2.1 with a fix.

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

2 participants