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

Type: Pre-Sale
Status: In Progress
PhilYoung
View Replies:
jb1 replied on at Permalink Reply
jb1
Hi Phil,
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
PhilYoung replied on at Permalink Reply
PhilYoung
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
jb1 replied on at Permalink Reply
jb1
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
PhilYoung replied on at Permalink Reply 1 Attachment
PhilYoung
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

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' ) {


The api seems to be working as google dashboard indicates successful calls.
PhilYoung replied on at Permalink Reply
PhilYoung
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
PhilYoung replied on at Permalink Reply
PhilYoung
That shows the same thing with an extra piece of info in console

Item: Objectentry: {error: {…}}__proto__: Object on line 133
PhilYoung replied on at Permalink Reply
PhilYoung
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
jb1 replied on at Permalink Reply
jb1
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. :-)

concrete5 Environment Information

n/a

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.