Title: Extra comma in function
Last modified: February 26, 2024

---

# Extra comma in function

 *  Resolved [andreiandronachi95](https://wordpress.org/support/users/andreiandronachi95/)
 * (@andreiandronachi95)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/extra-comma-in-function/)
 * Hello! I tried to update the plugin from 4.9.4 to 4.9.5, but I see there is a
   problem with the plugin, more exactly, in the src/admin/videopack-ffmpeg.php 
   I there is an error on line 208 “unexpected )”. The problem is that there is 
   an extra comma after last parameter (intval…)
 * $encode_array = kgvid_generate_encode_array(
 *         $input,
 *         $uploads[‘path’] . ‘/Adobestock_469037984’ . $video_formats[ $options[‘
   sample_format’] ][‘suffix’],
 *         $movie_info,
 *         $options[‘sample_format’],
 *         $encode_dimensions[‘width’],
 *         $encode_dimensions[‘height’],
 *         intval( $options[‘sample_rotate’] ),
 * );
   Because of this I got 500 on all pages.
    -  This topic was modified 2 years, 3 months ago by [andreiandronachi95](https://wordpress.org/support/users/andreiandronachi95/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Kyle Gilman](https://wordpress.org/support/users/kylegilman/)
 * (@kylegilman)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/extra-comma-in-function/#post-17453680)
 * Oh, that’s a PHP v7.3 feature and I see I’m still targeting PHP v7.2.5 in the
   Videopack system requirements. I’ll get a fix out for that ASAP. But definitely
   bug your host about updating to a newer version of PHP because everything before
   v8.1 is end of life and won’t be releasing security fixes.
 *  Thread Starter [andreiandronachi95](https://wordpress.org/support/users/andreiandronachi95/)
 * (@andreiandronachi95)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/extra-comma-in-function/#post-17453845)
 * Thank you for the response! Sorry for forgetting specify my PHP version. You 
   are right, at this moment my site still run with PHP 7
 *  Plugin Author [Kyle Gilman](https://wordpress.org/support/users/kylegilman/)
 * (@kylegilman)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/extra-comma-in-function/#post-17454291)
 * Version 4.9.6 is released and should work with PHP v7.1 and higher.
 *  Thread Starter [andreiandronachi95](https://wordpress.org/support/users/andreiandronachi95/)
 * (@andreiandronachi95)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/extra-comma-in-function/#post-17455230)
 * Thank you for the quick response! Now is ok.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Extra comma in function’ is closed to new replies.

 * ![](https://ps.w.org/video-embed-thumbnail-generator/assets/icon.svg?rev=2965979)
 * [Videopack](https://wordpress.org/plugins/video-embed-thumbnail-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/video-embed-thumbnail-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [andreiandronachi95](https://wordpress.org/support/users/andreiandronachi95/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/extra-comma-in-function/#post-17455230)
 * Status: resolved