thumbnails not saving
-
Hi, I am having an issue saving my thumbnails to my media library. I use eww and host all my media on amazon s3 via cloud front.
https://ww.wp.xz.cn/plugins/video-embed-thumbnail-generator/
-
Ok, what is the issue? Give me as many details as possible. And what is eww?
Sorry, ewww is a plugin that lowers image size, https://ww.wp.xz.cn/plugins/ewww-image-optimizer/. I don’t think that is the issue though. When I generate thumbnails, and hit the save “all thumbnail to media library”, nothing happens, the saving bar pops up and it doesn’t move. It gets stuck at 0%.
Are you using FFMPEG or browser-created thumbnails? Does it work if you save a single thumbnail but not if you “save all”? Were you able to do it before but something changed and you can’t now? Do you see any error messages in your browser’s developer console? If not, are you able to turn on WP_DEBUG_LOG and tell me if you get any error messages in the log?
I am not using ffmpeg, it is not installed on my server. This feature used to work when I was on shared hosting, but not when I moved my hosting to amazon EC2 on ubuntu. It does not work on a single image; when I select an image and click update, nothing it reverts back to original. When I generate only 1 image and hit save to media library, i get the same problem as if I “saved all”.
So something in your server configuration has changed. I don’t know what it is because I don’t know how your server is configured. My guess is it’s the same problem this user had https://ww.wp.xz.cn/support/topic/thumbnail-generator-error?replies=5 but I can’t be sure unless you can track down an error message. I think it will be in the browser’s developer console.
I found the error:
SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
toDataURLkgvid_video_plugin_admin.js:403
kgvid_save_canvas_thumbkgvid_video_plugin_admin.js:403
onchangepost.php:1:169
kgvid_video_plugin_admin.js:403I guess it is browser issue on safari, I tried chrome and it wants ffmpeg, so I will just go ahead and install ffmpeg on my server and report back.
Got it. The problem is that your video is hosted on a different domain than your web server. It’s a cross-origin security issue. You’re not even supposed to be able to start making thumbnails in this situation and it looks like Safari’s not reporting the information the other browsers are, so I’ll look in to that issue. FFMPEG will solve the problem, but you might be able to make it work using a CORS policy in S3. I’ve never done it myself, but these are the instructions http://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html
The CORS policy didn’t work for me. Installing FFMPEG worked for chrome, safari is not using ffmpeg, how do I make safari use ffmpeg instead of browser because safari is my main browser.
In the plugin settings page, go to the FFMPEG Settings tab and disable in-browser thumbnails.
Perfect, thank you
The topic ‘thumbnails not saving’ is closed to new replies.