TypeError: Argument 1 passed to image_rotate() must be an instance of stdClass, boolean given

Created on 16 June 2020, over 4 years ago
Updated 15 June 2023, over 1 year ago

The image_rotate() method expect a stdClass object. The image_load() method can return an image object or FALSE if there was a problem loading the file.

To prevent the typeError we need to check if the image object was successfully loaded.

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium p-neyens

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024