• Home
  • Get help
  • Ask a question
Last post 10 hours 47 min ago
Posts last week 128
Average response time last week 28 min
All time posts 70382
All time tickets 10864
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#8556 – 4Video: Issue with 2 Youtube video's on the same page

Posted in ‘SEOInfo and other Weeblr extensions’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 02 March 2022 10:00 UTC
Kloostra

Hi Yannick, not sure whether you provide support for your free extension 4Video, but in case you do:

I have a page containing 2 Youtube video's: https://hielspoorinfo.nl/hielspoor-behandeling/oefeningen

However, only the first one is shown, the second one only shows a blank container. The structured data for both video's is created though.

The video's are embedded in a Yootheme builder page using the yootheme feature to embed modules, but the same happens if I use the {loadmoduleid} feature, also in a non-builder article.

I can work around this using the Youtube-provided embed code, but maybe you have a solution or tip.

Also another page with a video is randomly not shown it seems (https://hielspoorinfo.nl/nieuws/hielspoor-youtube-video).

In the Firefox console, I see the following errors:

Uncaught TypeError: ({provider:"youtube", videoId:"M_IIo3Cfg-M", videoTitle:"Wat is hielspoor en wat kun je er aan doen", aspectRatio:"16/9", loop:0, theme:"auto", origin:"https//hielspoorinfo.nl", jumpToDef:[]}) is not a function

    <anonymous> https://hielspoorinfo.nl/nieuws/hielspoor-youtube-video:97
hielspoor-youtube-video:97:1 4Video: an error happened, aborting. Error details: File: https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js Line: 1 colno: 4698 B@https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1:4698 V@https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1:4244 L@https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1:6444 @https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1:7550 app<@https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1:7468 app<@https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1:7605 @https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1:7608 forvideo-iife-18aedee2.js:1:6972

Uncaught TypeError: t[1] is undefined

    B https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1
    V https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1
    L https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1
    <anonymous> https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1
    app https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1
    app https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1
    <anonymous> https://hielspoorinfo.nl/media/mod_forvideo/vendor/weeblr/forvideo/assets/dist/forvideo-iife-18aedee2.js:1
Wednesday, 02 March 2022 10:12 UTC
wb_weeblr

Hi

Having multiple videos on the same page is not a problem but here  a javascript error is triggered: 

The first error is indeed in a YooTheme piece of javascript:

I suspect 4Video is prevented from showing the second video because of that uncaught javascript error happening (loading happens with javascript so if a javascript error happens anywhere in the page, all javascript processing for that page is failing).

also in a non-builder article.

Do you have a test page where you' ve done that? Like I said, we are using multiple videos on same page here, and although we are using Vimeo, Youtube was also tested heavily during development, so I'm curious what javascript error happens on a page without the YooTheme code.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Wednesday, 02 March 2022 10:14 UTC
wb_weeblr

 

By the way, here is an interesting screenshot a French user posted in a ticket yesteday, from their Google search console:

This is the Web Vitals reports. It's a video-heavy website, with lots of YT embeds. 

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 

 
Wednesday, 02 March 2022 10:20 UTC
Kloostra

Yes, maybe the issue is due to a Yootheme relationship. Here is a page where I put two video's, non of which is displayed: https://hielspoorinfo.nl/nieuws/hielpijncentrum

Also, a page where only one video is shown does not seem to show anything: https://hielspoorinfo.nl/nieuws/video-met-strassburg-sock-instructies

Only this page seems to work most of the time: https://hielspoorinfo.nl/nieuws/hielspoor-youtube-video  However, on some pageviews, it is not displayed, seems to be a bit of an on / off issue....

Wednesday, 02 March 2022 10:27 UTC
wb_weeblr

Hi

Here is a page where I put two video's, non of which is displayed: https://hielspoorinfo.nl/nieuws/hielpijncentrum

There's no trace of 4Video on that page, are you sure the module is published to them and assigned to their menu item?

Also, a page where only one video is shown does not seem to show anything: https://hielspoorinfo.nl/nieuws/video-met-strassburg-sock-instructies

On this page, you also have the YooTheme code that's failing:

Yes, maybe the issue is due to a Yootheme relationship.

Not sure it's a "relationship" issue. What I see is a piece of javascript from YooTheme that:

- fails and causes an error

- does not have a try/catch block wrapping it so that errors in it does not affect the rest of the page

It's only  a wild guess as I can't really see what that line of code is doing but I think it's failing due to 4Video being a custom element. Only them can tell.

Can you please confirm about the first page and modules publication?

In any case, I'm pretty sure that page will fail as well as it has the same YooTheme code in it, even though it's not a page builder page:

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 

 
Wednesday, 02 March 2022 10:36 UTC
Kloostra

Yes, sorry, modules assigned to https://hielspoorinfo.nl/nieuws/hielpijncentrum now.

Wednesday, 02 March 2022 10:38 UTC
wb_weeblr

Hi

And you get the exact same result. I don't see and I don't think that's a problem in 4Video but indeed it's caused by that line of Javascript from YooTheme.

Can you temporarily switch to Protostar (or assign Protostar to that specific page) so that we can check without any interference from YooTheme? 

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Wednesday, 02 March 2022 10:43 UTC
Kloostra

I have a dev site, will set it up in a few minutes

 

Wednesday, 02 March 2022 10:49 UTC
Kloostra

Switched to a dev site, see https://seomon.nl/nieuws/hielpijncentrum

Indeed no issues with Protostar.... Pffff

Will check with Yootheme support. Will probably take a few days for them to respond. Thanks for checking so quickly!

Wednesday, 02 March 2022 10:55 UTC
wb_weeblr

Hi

Yes, that's best at this stage. Make sure to point them at the javascript line I mentioned and the error (in their code) visible in the browser console. The code is compressed so I can't make any sense of it myself.

I will leave this ticket open in case you need to add something. It will automatically close in 2 weeks if no further comment is made.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 

 
Thursday, 03 March 2022 10:06 UTC
Kloostra

Hi Yannick, I did some checking myself and it turms out that it is related to the Revo optimzer plugin: https://alexrevo.pw/product/revo-theme-optimizer.html.

It works well for my sites, but in this case, it appears that it inlined a Yootheme file called theme.js, inserting the code in between the 4Video code. I now set it to load the theme.js file, but defer it instead of inline it, and now the video works great. I informed the developer.

Thanks for helping to troubleshoot this!

Thursday, 03 March 2022 10:59 UTC
wb_weeblr

Hi

Great that you solved it. I did not know this optimizer plugin, and just looked at their site. What surprises me is that all the optimizations are simple and should be done by YooTheme really...

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Thursday, 03 March 2022 11:01 UTC
wb_weeblr

Hi again

By the way, there was a bug in the YouTube implementation whereby the rel=0 option 4Video was adding to the YT videos was not taken in to account. 

This option causes suggested videos displayed at the end of the video to be selected only from the same channel as the played video.

This version should be out today I hope.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Sunday, 03 April 2022 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.