Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: PHP Error adding YouTube videos via REEL Fieldtype

Status Resolved
Add-on / Version Reel REEL 1.3.1
Severity
EE Version EE4.3.4

MakeHay GreenHosting

Sep 13, 2018

Description:Adding a YouTube video will produce the following php error on the publish page

Trying to get property of non-object
user/addons/reel/ft.reel.php, line 149
Severity: E_NOTICE

Detailed steps to reproduce the issue:
1.Add a YouTube video such as this one via the fieldtype in a custom field: https://www.youtube.com/watch?v=IpUM0H7Wh-M
2.Save Entry
3.PHP error appears and video is not showing in the entry

Running PHP 5.6.37 (have tried PHP7 but same result - main production site is on PHP7) on EE4.3.4 - this was an upgrade to REEL from WYVERN Video in case that is relevant. The main site is .net and this is the staging version with an xyz domain for testing and I have included superadmin and FTP below.

Many thanks in advance

Jez Swinscoe

#1

MakeHay GreenHosting

Comment has been marked private.

#2

BoldMinded (Brian)

Are the videos you’re searching for on YT marked as private? If that is the case then they won’t be found.

#3

MakeHay GreenHosting

No, none of the videos are marked private - they were previously entered via Wyvern Video too.

#4

BoldMinded (Brian)

Can you share the YT username you’re using and search terms you’re expecting to get results from? You can mark that comment as private if you want.

#5

MakeHay GreenHosting

Comment has been marked private.

#6

MakeHay GreenHosting

Also - usually I just use the URL to find the video rather than search terms as it faster/more accurate.

#7

MakeHay GreenHosting

Also as an experiment, I created a new channel and a new REEL video field.

I get the same result, I can find a video and add it to the entry but it won’t save and if it does save it can’t be changed or updated without the same php error showing on save.

It seems I can search and find the videos and display them (so the API is ok) but saving/updating them triggers a PHP error.

Vimeo again though is fine and works OK with my new test channel so it’s definitely just YouTube videos that won’t save/update correctly.

#8

BoldMinded (Brian)

Comment has been marked private.

#9

BoldMinded (Brian)

I tried two different users that I know work and they did not return invalid channel errors.

#10

MakeHay GreenHosting

Comment has been marked private.

#11

MakeHay GreenHosting

Also as you can imagine, if I save an existing entry it wipes out the video from the field too so it is a problem for existing data as well, even videos that were added via WYVERN / REEL previously.

This is what happened with this video https://www.youtube.com/watch?v=dFBxEcIk9K4&t=4s from a different youtube channel. Saving the entry triggered the php error and the video field content disappeared, so now I can’t get that entry to save and keep the content of the field, even though it was working fine previously.

#12

BoldMinded (Brian)

Can you point out which channel contains a Reel field? And which entry id contains a Reel field that has old data and has not been re-saved, and an entry id that contains a Reel field that has been re-saved?

#13

BoldMinded (Brian)

The CP login you provided also does not work.

#14

MakeHay GreenHosting

Comment has been marked private.

#15

MakeHay GreenHosting

Comment has been marked private.

#16

BoldMinded (Brian)

I did not have a chance, and unfortunately won’t be able to look at it tonight either. Been a busy few days.

#17

BoldMinded (Brian)

It might be fixed now, give it a shot. There was a JSON decoding problem when trying to display the saved data back in the entry.

#18

BoldMinded (Brian)

Comment has been marked private.

#19

MakeHay GreenHosting

Comment has been marked private.

#20

BoldMinded (Brian)

Those licenses should be on that account now.

Login to reply