Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Tumblr theme wont save because of non-https urls?

So yesterday i was happily editing the theme of my tumblr blog and everything was working fine. Go into same blog to day and it brings up thsi when i click save: "Un oh! We could't save your theme. Looks like your custom theme references assets from non-HTTPS Urls. Please try again using only HTTPS Urls." Super confusing because not urls have been add since yesterday and everything was fine then. Same thing is happening with my other blogs with custom themes. I even went through and deleted all the urls on the html page just to see if it would do anything and the same alert came up. What is going on ??

Please help

Cheers

like image 595
Layton Otene Avatar asked Jan 08 '19 09:01

Layton Otene


People also ask

How do I fix https error on Tumblr?

It's because the code you're using still contains old “http” tags which don't provide the security standard as “https” and Tumblr made it now standard to use only “https”. Click Ctrl+F: The Search/Replace Bar should pop up like this. Type in search “http” and replace it with “https” by clicking on “All”.

What is a non https URL?

HTTPS keeps a user's connection to a server safe from eavesdropping and tampering. Non-HTTPS websites cause modern browsers to display an off-putting “Not Secure” warning. Google Search favors HTTPS pages over unsecure HTTP ones.

How do I fix my Tumblr HTML?

Try the following: Remove all code from the description box at the top of your Customize menu. Click "Save," then view your blog to see if the problem is resolved. Save a copy of your custom HTML, then re-install the theme from www.tumblr.com/themes.


2 Answers

Just had the same problem. Tumblr updated their Encryption policies.

If you're a theme developer and you'd like to ensure your themes support HTTPS, make sure that any externally hosted resources, such as Cascading Style Sheets (CSS) or Javascript files, and even images, are served using HTTPS.


As we now know that Tumblr requires that we use HTTPS instead of HTTP, here's how can we solve the error:

  1. Make sure that you are in the customize section and access "Edit HTML":

Tumblr - Customize Section

Tumblr - Edit HTML

  1. In the "Edit HTML", press Ctrl+F (or press the Settings button and then "Find and replace"):

Tumblr - Settings - Find and Replace

  1. Search for "http" and Replace with "https" - apply that to all.

Tumblr - Finding and Replacing

  1. As the previous step can cause some links to be "httpss", this needs to be fixed. By accessing the Find and Replace and Search for "httpss" and Replace with "https".

The steps bellow should solve your problem. If they don't, see "Extra considerations" below, more specifically, point 1.


Extra considerations

  1. I've done all the above, but it didn't solve my problem. What should I do?

When one has android-app://, for example:

<link rel="alternate" href="android-app://com.tumblr/tumblr/x-callback-url/blog?blogName=goncalomperes" />

One will need to add [https], as following:

<link rel="alternate" href="android-app:https://com.tumblr/tumblr/x-callback-url/blog?blogName=goncalomperes" />

As @mchid suggested in the comment, apart from android-app://, we will also need to do the above for: "//, ios-app://, and http-equiv.

  1. Accordingly to Tumblr support:

Yet another update: SSL is now being turned on by default for ALL Tumblrs that use our Official theme on the web. Even though we don’t recommend it, you can still turn it off in your blog settings.

So changing the Encryption section to allow SSL should not be the problem.

like image 199
Gonçalo Peres Avatar answered Oct 28 '22 08:10

Gonçalo Peres


Ok im a goose. Looks like tumblr has changed their requirements on http. I know it sounds obvious but i couldn't tell why it was happening on every theme apart from their default theme. The reason is you need to go in and change the tumblr links to css and java from http to https "http://static.tumblr.com/xlsgtjb/WEMoeha97/style.css becomes https://static.tumblr.com/xlsgtjb/WEMoeha97/style.css" If you still get the alert after this try searching for other urls and delete or change them to https

like image 41
Layton Otene Avatar answered Oct 28 '22 06:10

Layton Otene