Skip to content

Problem creating Video Thumbnails #526

@tante

Description

@tante

We run Wordpress 6.3 with PHP 7.4.3-4ubuntu2.19.

There's an issue when trying to set a thumbnail. I can generate them (I get 4 suggestions from the video) but when trying to save them I get an "Internal Server Error".

The logs show:

[Tue Aug 22 13:18:00.804074 2023] [php7:error] [pid 144111] [client 80.82.201.37:56447] PHP Fatal error:  Uncaught Error: Call to a member function get_size() on bool in PATH_TO_WORDPRESS/wp-content/plugins/video-embed-thumbnail-generator-4.8.11/src/admin/videopack-admin-ajax.php:398
Stack trace:
#0 PATH_TO_WORDPRESS/wp-includes/class-wp-hook.php(310): kgvid_ajax_save_html5_thumb()
#1 PATH_TO_WORDPRESS/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 PATH_TO_WORDPRESS/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 PATH_TO_WORDPRESS/wp-admin/admin-ajax.php(188): do_action()
#4 {main}
thrown in PATH_TO_WORDPRESS/wp-content/plugins/video-embed-thumbnail-generator-4.8.11/src/admin/videopack-admin-ajax.php on line 398, referer: https://MYSITE/wp-admin/upload.php?item=7252

The problem seems to be in line 385:
$editor = kgvid_decode_base64_png( $raw_png, $tmp_posterpath );

This does not seem to return an object.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions