Skip to content

Exception - imagesx(): Argument #1 ($image) must be of type GdImage, bool given #35

@dustinbrisebois

Description

@dustinbrisebois

MDL 4.1 getting this error:

line 386 of /mod/mediagallery/classes/item.php: TypeError thrown
line 386 of /mod/mediagallery/classes/item.php: call to imagesx()
line 296 of /mod/mediagallery/classes/item.php: call to mod_mediagallery\item->get_image_resized()
line 495 of /mod/mediagallery/classes/item.php: call to mod_mediagallery\item->generate_image_by_type()
line 622 of /mod/mediagallery/classes/item.php: call to mod_mediagallery\item->get_stored_file_by_type()
line 340 of /mod/mediagallery/classes/gallery.php: call to mod_mediagallery\item->get_image_url()
line 204 of /mod/mediagallery/renderer.php: call to mod_mediagallery\gallery->get_thumbnail()
line 173 of /mod/mediagallery/renderer.php: call to mod_mediagallery_renderer->gallery_list_item()
line 128 of /mod/mediagallery/classes/viewcontroller.php: call to mod_mediagallery_renderer->render_collection()
line 64 of /mod/mediagallery/classes/viewcontroller.php: call to mod_mediagallery\viewcontroller->action_viewcollection()
line 144 of /mod/mediagallery/view.php: call to mod_mediagallery\viewcontroller->display_action()

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