Local thumbnails are only used by Embedded Media Field if Node is saved twice
Nina82 - May 15, 2009 - 12:58
| Project: | Embedded Media Field |
| Version: | 6.x-1.x-dev |
| Component: | Embedded Media Thumbnail |
| Category: | bug report |
| Priority: | normal |
| Assigned: | aaron |
| Status: | closed |
Jump to:
Description
I've been experimenting a bit with Embedded Media Field and Embedded Media thumbnails and found a strange bug related to the local thumbnails. When i add a video the thumbnail is saved locally to my files directory. But it is not shown in the node. There the remote thumbnail is still used. But when i edit the node and save it again the local thumbnail is used correctly.
It seems like that the path to the local thumbnail is wirtten to the databse only the second but not the first time the node is saved. Can you confirm that problem?
Hope you have some answers for me. Still new to Drupal. Hope this is no stupid question.
Nina

#1
Yes, I've noticed the same problem. I'll have to dig into the problem. Thanks for reporting it!
#2
Thank you! Is there any way I can support you?
#3
I've noticed something else about the problem. When i save a node twice the local thumbnail is used correctly. But when i then go to content administration and perform "Reload Embedded Media Data" for these nodes, the local thumbnails are once again replaced by the remote ones.
If you have any solution for the problem please let me know. I'd volunteer to test a patch...
#4
OK, figured it out with a bunch of dpm's. The element process stage during insertion didn't have the provider info (but did during update), so that the module wasn't properly retrieving the thumbnail. I added a check during the node insertion phase, so now it works properly. If you can't wait for the next release of the module, you can get this functionality now in the dev version (which is currently stable).
For old nodes, you currently have to go to content administration and select "Reload Embedded Media Data".
#5
Thank you for fixing the issue! I have tested it and it seems to be working flawlessly. I will do some additional tests in the coming days...
The only problem is that when I "Reload Embedded Media Data" all thumbnails are retrieved correctly but the database entry of the local thumbnail is not being written to the db. After the "reload" the thumbnails are available on my local server but due to the missing database entry the remote thumbnail is still shown!
#6
hmmm... ok, i'll do some testing on that and see if i can fix that issue too. i didn't actually test that functionality when i made the last fix.
thanks,
aaron
#7
i believe this has been fixed. please reopen if you still have a problem. thanks!
#8
Automatically closed -- issue fixed for 2 weeks with no activity.