Troubleshooting
Common issues and their resolutions when configuring and using the Product Video for Magento 2 (Webkul_VideoPlayer) extension.
1. Video Not Appearing on Storefront Product Page
Symptoms
You have attached a video in the product edit screen, but only static product images are visible on the storefront product detail page.
Resolution Steps
- Verify that the module is enabled in Admin under Stores > Configuration > Webkul > Video Player (Module Enable must be
Yes). - Verify that your license is registered under Stores > Configuration > Webkul > Module License.
- Check the product edit screen under Images and Videos to verify that a preview image was assigned a media role (Base, Small, or Thumbnail).
- Verify module status via CLI:
php bin/magento module:status Webkul_VideoPlayer - Flush the Magento application cache:
php bin/magento cache:flush
2. File Upload Fails with "Maximum Allowed Size" Error
Symptoms
When uploading large video files (such as .mp4, .webm, .mov, .wmv, .flv, .mkv, or .3gp) in the product edit screen or via Mass Upload, an error message appears stating the file exceeds the upload limit, or the upload stalls and disconnects.
Resolution Steps
Open your server's
php.inifile and adjust the upload and POST size directives:upload_max_filesize = 500M post_max_size = 500M memory_limit = 2G max_execution_time = 300If using Nginx, ensure
client_max_body_sizeis configured inside yournginx.confserverorhttpblock:client_max_body_size 500M;Restart PHP-FPM and your web server:
sudo systemctl restart php-fpm sudo systemctl restart nginx
3. YouTube Video Fails to Embed or Returns an API Error
Symptoms
Adding a YouTube video URL displays an error message stating that the YouTube API key is invalid or missing, or the video preview fails to fetch.
Resolution Steps
- Navigate to Stores > Configuration > Catalog > Catalog > Product Video.
- Verify that the YouTube API Key field contains a valid API key.
- Check the configured key via CLI:
php bin/magento config:show catalog/productvideo/youtube_api_key - In the Google Cloud Console, confirm that the YouTube Data API v3 library is enabled for your project.
- If your API key has HTTP referrer or IP restrictions, ensure your server's public IP address or store domain is whitelisted.
- Save configuration and flush cache:
php bin/magento cache:flush
4. Chapter Markers or Download Button Not Appearing
Symptoms
You have enabled chapters and the download option, but the markers and download icon do not show in the video player controls.
Resolution Steps
- Check the video source type. Chapters and Download are only supported for Uploaded Videos and direct CDN URLs. They cannot be applied to YouTube, Vimeo, or Google Drive embed players.
- In Stores > Configuration > Webkul > Video Player > Player Options, ensure Download and Allow Chapters are selected.
- Verify your configuration settings via CLI:
php bin/magento config:show webkul_videoplayer/player_options/options - On the product edit page, verify that the Download Enable checkbox is checked and chapter timestamps are formatted correctly as
mm:ss(e.g.,01:30) orhh:mm:ss.
5. Google Drive Video Shows "Refused to Connect" or Access Denied
Symptoms
A Google Drive video player displays a black box or indicates permissions are restricted.
Resolution Steps
- Open Google Drive, locate the video file, click Share, and verify access is set to "Anyone with the link can view".
- When pasting the Google Drive sharing link into Magento, replace
/viewwith/previewat the end of the URL:# Incorrect (causes embed refusal) https://drive.google.com/file/d/XYZ12345/view # Correct (enables direct responsive preview player) https://drive.google.com/file/d/XYZ12345/preview - Save the product and flush the Magento cache:
php bin/magento cache:flush
