C5 8.4.4 and php 7.2 question
Permalink Browser Info Environment
Hi,
Does this addon work with 5.8.4.4 and php 7?
Thanks
Phil
Does this addon work with 5.8.4.4 and php 7?
Thanks
Phil
Type: | Pre-Sale |
---|---|
Status: | In Progress |
Hi
Bought the block and am using it on 8.4.2 and php 7.0.33
I am seeing this error code
Uncaught TypeError: Cannot read property 'length' of undefined
at MyChannel.workoutSearchResponse (utuber-min.js:142)
at Object.success (utuber-min.js:125)
at i (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
at y (jquery.js:4)
at XMLHttpRequest.c (jquery.js:4)
Any thoughts?
Best
Phil
Bought the block and am using it on 8.4.2 and php 7.0.33
I am seeing this error code
Uncaught TypeError: Cannot read property 'length' of undefined
at MyChannel.workoutSearchResponse (utuber-min.js:142)
at Object.success (utuber-min.js:125)
at i (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
at y (jquery.js:4)
at XMLHttpRequest.c (jquery.js:4)
Any thoughts?
Best
Phil
Hi Phil,
I've tested this package again just now on my computer and it runs smoothly.
If you look at the utuber.js file within that package there's a comment right next to where that error is occuring. Simply uncomment this to see a more detailed error from youtube. Here's a screenshot:
https://screencast.com/t/bne0CQQTOT...
Chances are the problem is:
1) An invalid username/account in the block editor interface. You can test this by using my Youtube username "c5extras" and see if it works fine. Screenshot:https://screencast.com/t/ua4huEkRz...
2) Your Youtube account isn't active on the API yet. This could be due to it being too new (not old enough or not enough followers). It's been a while since I read about that from YouTube, so I'm not sure if they've changed the limits since then.
Hope this helps. Let me know how you go.
JB
I've tested this package again just now on my computer and it runs smoothly.
If you look at the utuber.js file within that package there's a comment right next to where that error is occuring. Simply uncomment this to see a more detailed error from youtube. Here's a screenshot:
https://screencast.com/t/bne0CQQTOT...
Chances are the problem is:
1) An invalid username/account in the block editor interface. You can test this by using my Youtube username "c5extras" and see if it works fine. Screenshot:https://screencast.com/t/ua4huEkRz...
2) Your Youtube account isn't active on the API yet. This could be due to it being too new (not old enough or not enough followers). It's been a while since I read about that from YouTube, so I'm not sure if they've changed the limits since then.
Hope this helps. Let me know how you go.
JB
When I put in c5extras as the channel i just get the attached graphic.
Also lines 132-150 look nothing like the code in utuber.min.js from your screenshot
mine has
The api seems to be working as google dashboard indicates successful calls.
Also lines 132-150 look nothing like the code in utuber.min.js from your screenshot
mine has
this.workoutSearchResponse = function (response) { var feed = response.entry; if (!feed) return; if (!this.state) { this.state = { data: [], nextPageToken: "", printedTo: 0 } } for (var i = 0; i < feed.items.length; i++) { var entry = feed.items[i]; var _formatDate = Date.create(entry.snippet.publishedAt).format(this.options.dateFormat); var videoUrl = window.location.protocol+'//www.youtube.com/watch?v='+entry.snippet.resourceId.videoId; if ( this.options.channelType == 'uploads' ) {
Viewing 15 lines of 19 lines. View entire code block.
The api seems to be working as google dashboard indicates successful calls.
Okay the c5 system installed package 2.1.3 not 2.1.5.1
I am just downloading that and uploading it manually
So the C5 marketplace system is configured wrong
I am just downloading that and uploading it manually
So the C5 marketplace system is configured wrong
That shows the same thing with an extra piece of info in console
Item: Objectentry: {error: {…}}__proto__: Object on line 133
Item: Objectentry: {error: {…}}__proto__: Object on line 133
Okay, I was able to uncomment debugging line and the issue was the http referrer. I made api unrestricted and it worked and then added http restrictions again and it worked again.
Having version 2.1.5.1 and not 2.1.3 made a big difference in terms of debugging my api issue
Having version 2.1.5.1 and not 2.1.3 made a big difference in terms of debugging my api issue
Ah, good to know it's ok. I'm not sure why the marketplace is sending out the wrong version. Usually when you download the package it shows all versions available to download. I think there were quite a few tweaks made in the most recent versions as YouTube changed their API a little while back.
Glad you're firing on all cylinders now. :-)
Glad you're firing on all cylinders now. :-)
I can't say I've tested this particular block. But since it's pretty basic and doesn't deeply rely on any C5 core features, it should continue to work smoothly.
Hope this helps.
JB