Skip to content

Uncaught TypeError: round() in PHP 8.0 #30

@CamillaVoss

Description

@CamillaVoss

I tried running my modx environment with PHP 8.0 and encountered an issue with Resizer when trying to save a resource.

PHP Fatal error: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /Users/name/Sites/site/core/components/resizer/model/vendor/sepiariver/reductionist/src/Reductionist/Reductionist.php:292 Stack trace:
#0 /Users/name/Sites/site/core/components/resizer/model/vendor/sepiariver/reductionist/src/Reductionist/Reductionist.php(292): round('575px')
#1 /Users/name/Sites/site/core/components/phpthumbof/model/phpthumbof.class.php(385): Reductionist\Reductionist->processImage('/Users/name...', '/Users/name...', Array)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions