• Resolved bird0is0the0word

    (@bird0is0the0word)


    Exception:

    PHP Fatal error: Uncaught TypeError: Unsupported operand types: string / string in wp-content/plugins/video-embed-thumbnail-generator/video-embed-thumbnail-generator.php:7147

    File: wp-content/plugins/video-embed-thumbnail-generator/video-embed-thumbnail-generator.php

    Line 7147

    $form_fields[“kgflashmediaplayer-aspect”][“value”] = esc_attr( round($set[‘height’] / $set[‘width’], 5) );

    MY FIX:

    $form_fields[“kgflashmediaplayer-aspect”][“value”] = esc_attr( round(intval($set[‘height’]) / intval($set[‘width’]), 5) );

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Kyle Gilman

    (@kylegilman)

    Thank you! I’ll do this in the next update. I haven’t seen this error in my testing. What version of PHP are you running?

    Thread Starter bird0is0the0word

    (@bird0is0the0word)

    we running php version 8.2

    the exception occurs when we open the media library

    Plugin Author Kyle Gilman

    (@kylegilman)

    This should be fixed in version 4.8.3, which I just released.

    Thread Starter bird0is0the0word

    (@bird0is0the0word)

    Hello,

    i am using php-Version 8.2 and plugin-version 4.8.7

    After update to wordpress 6.2, the following exception happens:

    PHP Fatal error: Uncaught TypeError: Unsupported operand types: string / string in wordpress/wp-content/plugins/video-embed-thumbnail-generator/src/admin/videopack-ffmpeg.php:201\nStack trace

    i changed line 201 from

    $aspect_ratio = $options[‘height’] / $options[‘width’];

    to

    $aspect_ratio = intval($options[‘height’]) / intval($options[‘width’]);

    so it is currently working

    regards

    Plugin Author Kyle Gilman

    (@kylegilman)

    Thanks. I’ll have an update out today. I’ve been getting by with PHP’s automatic type juggling for too long.

    What are your width and height settings?

    Thread Starter bird0is0the0word

    (@bird0is0the0word)

    the settings are: height: 720 and width: 600

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Exception in Videopack Version 4.8.2’ is closed to new replies.