Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2020-02-06 09:25:14

jackm
Member
Registered: 2013-01-22
Posts: 170

Embedded YouTube videos not playing after switching to SSL site.

Today I switched my site to a SSL protected site. I switched all the web info and Lightroom Publisher Service inform to the https designation.

I am currently using Blacklight 1 with the Theater add on, and now my embedded YouTube videos come up blank.

I think I need verify my https site with YouTube/Google.

Or is there something else in Backlight that need to be changed?

Jack

Offline

#2 2020-02-06 09:43:46

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Embedded YouTube videos not playing after switching to SSL site.

Backlight 1 requires a change in the .htaccess file (there’s a setting in Backlight 2 that takes care of this)
See this thread: http://community.theturninggate.net/vie … hp?id=7876


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2020-02-06 10:48:37

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: Embedded YouTube videos not playing after switching to SSL site.

Rod,

I did fix the .htaccess file and my site works for everything as a secure site, except for the embedded videos.

Don't know where else to reference https in Backlight.

I am hoping it is a YouTube issue.

Jack

Offline

#4 2020-02-06 12:33:30

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Embedded YouTube videos not playing after switching to SSL site.

How did you embed the Video? It looks like the links starts with http:// but it should be https://.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#5 2020-02-06 13:13:42

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: Embedded YouTube videos not playing after switching to SSL site.

Daniel,

I embedded them in the Theater add on.

Not sure which links you mean. Or where I can change them.

Thanks,

Jack

Offline

#6 2020-02-06 15:23:00

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Embedded YouTube videos not playing after switching to SSL site.

Hi Jack,

As expected, loading your site in the debugger, I get an error:

Mixed Content: The page at 'https://www.stuffbyjack.com/jackonly/ga … ideo-test/' was loaded over HTTPS, but requested an insecure resource 'http://www.youtube.com/embed//X2jUWQxbw … &hd=1&fs=1'. This request has been blocked; the content must be served over HTTPS.

Try to execute Backlight >  Designer > Templates > Clear Template Cache to see if this fixes this issue.

Oh, you are using the latest version of Backlight 1, aren't you?


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#7 2020-02-07 00:28:37

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Embedded YouTube videos not playing after switching to SSL site.

If Daniel's suggestion doesn't work...

The theater youtube embed code starts with:

<iframe src="<?php echo BROWSER_PROTOCOL ?>

When implementing https, did you make sure to change the site URL in Settings?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#8 2020-02-07 01:03:33

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: Embedded YouTube videos not playing after switching to SSL site.

Daniel's suggestion didn't work. I am on the latest version of Backlight (124) and Theater (126). I change the site URL to https.

Suggestions?

Jack

Offline

#9 2020-02-07 02:30:41

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Embedded YouTube videos not playing after switching to SSL site.

Hmm... I would send Ben an email with your backlight admin and ftp credentials and a link to a gallery that shows the issue along with a link to this thread.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#10 2020-02-07 03:33:30

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Embedded YouTube videos not playing after switching to SSL site.

jackm wrote:

Daniel's suggestion didn't work. I am on the latest version of Backlight (124) and Theater (126). I change the site URL to https.

Suggestions?

Jack

Is your host using any caching?
If so, see if you can clear that.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#11 2020-02-07 06:10:13

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: Embedded YouTube videos not playing after switching to SSL site.

I called my host, Godaddy, no caching one their end. They said from what they see, the "front end" of the call to YouTube in the Theater Add On I suppose has the http in it.

I did sent this link and FTP stuff in an email to Ben, as he just fixed a problem with one of my other sub domain sites I upgraded to Backlight 2. I use that site to test stuff. I put a video up on that site and it played!?!

Not sure what is different. I am going to upgrade another sub domain site that currently is in Backlight 1 with existing video links in it to see if that makes a difference.

Jack

Offline

#12 2020-02-07 11:13:04

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Embedded YouTube videos not playing after switching to SSL site.

If using Backlight 2 and the Theater Add-on, YouTube and Vimeo embeds should honor your protocol, whether http or https. Make sure your Backlight settings are correctly set, and refresh your template cache.

For Backlight 1, I can't recall; Backlight 2 definitely offers improvements when it comes to HTTPS support. As announced on our blog, Backlight 1 is end-of-life, and so we will not be patching it with additional HTTPS support. Here's that post, if you haven't yet seen it:
http://theturninggate.net/2020/01/29/ba … fe-update/

If you're going to be using SSL on your site, then you are well advised to upgrade to Backlight 2.


Matt

The Turning Gate, http://theturninggate.net

Offline

#13 2020-02-07 11:38:09

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Embedded YouTube videos not playing after switching to SSL site.

The protocol for youtube in the old module theater is hard-coded to http.

Offline

#14 2020-02-07 11:44:34

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Embedded YouTube videos not playing after switching to SSL site.

An alternative solution is to use Pangolin Theater in BL1.  This fixes the bug.

Offline

#15 2020-02-07 12:54:15

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: Embedded YouTube videos not playing after switching to SSL site.

Ben, Matthew,

Now I understand the issues with the old module theater and the hard coded http.

I am in the process of tying to upgrade to Backlight 2.

I have 2 of my 4 sites upgraded to Backlight 2. The first one was a test site and had some problems that Ben sorted out for me. Thanks again Ben.

The second site was successfully upgraded today, and I installed the Pangolin Theater module. The problem I see is the Backlight Theater template did not carry over. So none of my videos on that site work as the template does not exist anymore.

Question #1, for that upgraded site, do I have to go into each album with an embedded video and manually switch it to the Pangolin Theater template?

That site is www.stuffbyjack.com/oneview

Question #2, for the other 2 Backlight 1 sites, is there a way do that before I upgrade to Backlight 2? And not manually.

The reason is I have a lot (hundreds) of embedded videos on those 2 sites. A lot of work to upgrade.

All the photo albums are fine.

Thanks,

Jack

Offline

#16 2020-02-07 14:07:05

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: Embedded YouTube videos not playing after switching to SSL site.

Offline

#17 2020-02-07 14:37:36

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Embedded YouTube videos not playing after switching to SSL site.

You’ll need to create a new template and assign it to the old albums.
You don’t need to assign templates one album at a time though, you can reassign them all at once in Backlight > Publisher > Albums > Assign Templates.

You cannot install the Backlight 2 Pangolin Theater add-on into Backlight 1. You’ll need to upgrade the sites to Backlight 2, create a new template, run the migration and assign the template to the albums.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#18 2020-02-08 03:26:36

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: Embedded YouTube videos not playing after switching to SSL site.

Rod, Ben, Matthew and Daniel,

Thanks for all the help with the SSL and upgrade to Backlight 2 issues I was having. I better understand how it works now.

My 2 upgraded-to-Backlight 2 sites are working as they should, including SSL and Theater YouTube embedded video links. I will upgrade the remaining 2 sites in the next few days, with the appropriate new templates where needed, and will be running Backlight 2 on everything. A long journey from the CE3 days when I started with TTG!

One suggestion for documentation, I could not find anything that indicated Backlight 1 Theater add-on would not carry over and work in Backlight 2. There was also no indication, that I could find, that Backlight 2 Pangolin Theater add-on will not work in Backlight 1.

Obviously that means that all theater embedded video albums will have to be updated in Backlight2 with a new template, as indicated. I have a couple of hundred such albums across all 3 of my sites, so some additional unplanned work will be needed to upgrade to Backlight 2 to get it all working.

That explanation in the upgrade documentation for Backlight 1 to Backlight 2 would be helpful for others. It would have saved me and you support guys a lot of time.

Again thanks again. I appreciate it.

Jack

Offline

#19 2020-02-09 08:18:07

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Embedded YouTube videos not playing after switching to SSL site.

Hi Jack,

Glad to hear you are finding success with the upgrades. I think you will appreciate that from here, future updates and upgrades will be far simpler to accomplish. The update mechanism introduced in Backlight 2 is a tremendous boon in this regard.

I'll add a blurb to the Backlight 1 upgrade docs to mention that okapi modules do not carry forward. Thanks.


Matt

The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB