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: No Results Found for YouTube - Vimeo working

Status Resolved
Add-on / Version Reel 1.3.1
Severity
EE Version 2.6.1

Leanna Norwood

Jun 16, 2015

Description:
I am using Wyvern Video version 1.3.1 with Wygwam version 3.0.2.
When adding videos in Wygwam with Wyvern Video I am able to produce results for Vimeo when searching (although having this issue https://boldminded.com/support/ticket/1121), but receive the No Results Found for YouTube videos….no matter what I am searching for. I have added the YouTube API key but this doesn’t seem to help.

The only js error I am getting that is related is:
Uncaught TypeError: Cannot read property ‘nextPage’ of null.

#1

BoldMinded (Brian)

Did you get a Google API key? Check the Wyvern Video settings page for a link to obtaining a key.

#2

Leanna Norwood

Yes I did. That was the YouTube API key I mentioned.

#3

BoldMinded (Brian)

Sorry, I admit I didn’t fully read your original post and assumed you hadn’t updated the key.

Is there more to that error? Perhaps a line number?

#4

Leanna Norwood

The error is: wyvern_video_dialog.js: line 837 Uncaught TypeError: Cannot read property ‘nextPage’ of null

I am not sure if this is because YouTube is returning no results so there is no pagination or if it is related.

#5

BoldMinded (Brian)

I think its b/c there are no results. Would you mind opening that file and adding this return statement?

https://www.dropbox.com/s/6m7mi9g613n85ph/Screenshot 2015-06-16 15.42.02.png?dl=0

#6

Leanna Norwood

Adding that return statement gets rid of the js error. Still no luck with getting results.

#7

BoldMinded (Brian)

Ok, thats progress.

There could be any number of reasons why you aren’t getting any results. Are you searching within just a user account? Or searching all of YT? Open up your network tab in the console to see what the actual ajax response is, and the requested URL. You can paste them here for me to see (use the private comment option if you want).

#8

Leanna Norwood

Comment has been marked private.

#9

BoldMinded (Brian)

What happens when you access that URL directly in the browser? It looks like its missing the ACT id value…. That definitely shouldn’t be happening.

Try uninstalling and re-installing (backup your database first) and see if that fixes it. You may lose existing data though. First, take a look at your exp_actions table to see if there are 2 rows in there for wyvern_video. Should look like this: https://www.dropbox.com/s/nt1p0yxnftnfmka/Screenshot 2015-06-16 16.16.05.png?dl=0

If not, just add the rows manually and it’ll auto-assign an ID to them, then that URL should load with ACT=SOMENUMBERHERE

#10

BoldMinded (Brian)

Comment has been marked private.

#11

Leanna Norwood

There’s no action for load_youtube load_vimeo is action_id=47

#12

Leanna Norwood

And thanks for the Vimeo fix!

#13

Leanna Norwood

We got this working. But the account filter is broken. But we have a fix for that….want me to send through?

#14

BoldMinded (Brian)

So adding the action_id row fixed YouTube?

If you can send a .diff file or a new version of the file with notes on which lines were changed I can get the fix into the next official release. Thanks!

You can email it to support at boldminded dot com, or just add a Dropbox link or something similar to this thread.

#15

BoldMinded (Brian)

Leanna, are you able to send the fix you were referring to?

Login to reply