Fixed "Please enter a valid value." error when adding embed media.

estranged

Well-known member
Affected version
1.1.15
This seems to have started after upgrading to 1.1.15 but not %100 sure.

After entering the video url and clicking + button, video is displayed below as usual but after clicking "save media" We get this error.

No errors in logs.

Any ideas?
 
Last edited:
Likely a coincidence as no changes were made, that I can think of, that would cause this.

Do you have any required custom fields or anything similar? If you click on the "Expand" button on the displayed video, does that reveal any other fields and does filling them in make the error go away?
 
This is rather strange. I have just had a user report exactly the same thing to me (with a screenshot to prove it). I've tried with the URLs that he had issues with:

Code:
https://youtu.be/QF031DwMffQ

https://www.youtube.com/watch?v=QF031DwMffQ&feature=youtu.be

https://youtu.be/6340tX9M_eM

https://www.youtube.com/watch?v=1c0Th8-809k

The user says that he has issues on his work computer (which is Windows XP and has old versions of Firefox and Chrome that run on that) but also the same problem on his phone and tablet which are running the latest version of Chrome for Android. He is using various ISPs - BT, Virgin and Vodaphone. He said he noticed the issue first late last week (which rules out the XenForo 1.5.16a upgrade I did yesterday) so it seems to be related to XFMG 1.1.15/XenForo 1.5.16.

As a further test, the user put the URLs into a forum post and there was no problem there.

There are no required custom fields used at all in XFMG on my site.


I have tested all of this on my site with these URLs and I cannot replicate the issue at all. I've chatted with the user using our chat facility and got him to try various things and he's still got these issues, yet I'm having no problems with the same URLs (I'm on Virgin and EE).
 
Our users have reported this and I can also replicate.

I haven't changed any field options recently. There is one field which is not required and filling it doesn't fix the issue.
 
I can reproduce with three different devices with different browsers. Home pc with windows 10/chrome/edge, work pc with win 8.1/chrome/ie and android phone with chrome/samsung browser.
 
Thanks, apologies there is a regression here. You can fix by uploading the attached file to: library/XenGallery/ControllerPublic/Media.php.
 

Attachments

Back
Top Bottom