EE compatibility updates:

  • Publisher is EE5 compatible, but it does not currently support the Fluid field.

ExpressionEngine.com licenses:

  • 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: Reel search modal not pulling up anything

Status Resolved
Add-on / Version Reel 1.5.2
Severity
EE Version 5.4.0

MLohrman

Dec 15, 2020

I have setup an API app per instructions for Vimeo.  When I click the Add Video button the modal pops up, but no results are ever displayed. I thought maybe I had messed up the API stuff, but then noticed the JS error in the browser console. Any ideas? Thanks!

 

#1

BoldMinded (Brian)

Dec 16, 2020

Line 308 of reel.js has a conditional, change it to this:

if (data.body.hasOwnProperty('developer_message')) {
                showError(getResultList('vimeo'), data.body.developer_message);
                return;
            }
#2

BoldMinded (Brian)

Dec 16, 2020

Sorry, line 368

#3

MLohrman

Dec 16, 2020

Thanks Brian, mostly same error…

reel.js:368 Uncaught TypeError: Cannot read property ‘hasOwnProperty’ of null
  at Object.success (reel.js:368)
  at i (jquery.js?v=1607456803:2)
  at Object.fireWith [as resolveWith] (jquery.js?v=1607456803:2)
  at z (jquery.js?v=1607456803:4)
  at XMLHttpRequest.<a> (jquery.js?v=1607456803:4)

#4

BoldMinded (Brian)

Dec 16, 2020

Check your network tab to see what the raw response is when it makes the Ajax query to Vimeo.

#5

MLohrman

Dec 16, 2020

I don’t think it’s getting that far…https://www.dropbox.com/s/3qrt99a3eeamf3x/Screen%20Recording%202020-12-16%20at%2011.04.56%20AM.mp4?dl=0

#6

BoldMinded (Brian)

Dec 16, 2020

Try changing the conditional to this:

if (data && data.body && data.body.developer_message) {
#7

BoldMinded (Brian)

Dec 16, 2020

It wouldn’t throw that error unless an Ajax request is made, so you should definitely see something in your network tab.

#8

MLohrman

Dec 16, 2020

I uploaded a screenshot, let me know if this is what you are looking for. Thanks!

#9

MLohrman

Dec 16, 2020

I updated the conditional and here;s the error….

reel.js:373 Uncaught TypeError: Cannot read property ‘error’ of null
  at Object.success (reel.js:373)
  at i (jquery.js?v=1607456803:2)
  at Object.fireWith [as resolveWith] (jquery.js?v=1607456803:2)
  at z (jquery.js?v=1607456803:4)
  at XMLHttpRequest.<a> (jquery.js?v=1607456803:4)

#10

BoldMinded (Brian)

Dec 16, 2020

Part of the error message is covered in the screenshot by a tool tip.

In a private comment, can you share the credentials you’re using to connect to Vimeo so I can try it locally?

#11

MLohrman

Dec 16, 2020

Comment has been marked private.

#12

BoldMinded (Brian)

Dec 22, 2020

Comment has been marked private.

#13

MLohrman

Dec 23, 2020

I can change that name to be anything, so it does seem like a “display name” rather than a user name, I just tried the “User ID” which is just numbers and that worked. Thanks and have a good holiday!

Login to reply