backdrop-contrib / video_embed_field

Video Embed field creates a simple field type called Video Embed that allows you to embed videos from YouTube and Vimeo or show their thumbnail previews simply by entering the video's url.
GNU General Public License v2.0
1 stars 5 forks source link

PHP Notice: Trying to get property 'data' of non-object in video_embed_field_get_ajax_url() #19

Open jenlampton opened 2 years ago

jenlampton commented 2 years ago

I'm getting an error with the ajax URLs for videos:

Notice: Trying to get property 'data' of non-object in video_embed_field_get_ajax_url() (line 551 of backdrop/docroot/modules/contrib/video_embed_field/video_embed_field.module).

It looks like video styles haven't been converted to config yet, and the code that loads them may be loading image styles instead. (I may be asked to work on this shortly, if needed.)

laryn commented 2 years ago

If you have a chance that would be great.

I've been meaning to get back to video styles and https://github.com/backdrop-contrib/video_embed_field/issues/1 but the right project hasn't come along yet.

laryn commented 8 months ago

@jenlampton Is this still an issue in the most recent version, after the Preset API and config was implemented?