News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SSL Problem

Started by iLearner, November 18, 2017, 02:20:07 PM

Previous topic - Next topic

iLearner

Hello, I've recently installed SSL certificate on my site however a few thing on index.php are causing it to not work (while it works on pther pages), so here's the problem:


I have downloaded the whole directory and made a file based search with notepad++ for those lines, however no match at all.
I need to convert those files from http:// to https:// however i can't find them lol

a10

Is "Enable Image Proxy" ticked in Server Settings? If not, enable it and it should fix things.

Continue searching for the links, they must be there somewhere, good to have everything set to https.

But those images are maybe often used on the forum, why not download them and transfer them to your own (https) site, load them from there (just update the links...after finding them:O)
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

iLearner

As I said i cant even find those lines anywhere in my whole folder... I would do if i'd know where they're defined.
Anyway I ticked it, however if i reload the page its again unticked.


while in settings.php:
$image_proxy_enabled = 1;

Shambles

Chances are, those images are members avatars or linked images in their signatures.

iLearner

So how do I change them?

a10

#5
... on second thought, the proxy only work on 'img' tags, so you got to find these links. But be sure the proxy works anyway, will be needed sooner or later (test the proxy by posting a http picture).

What I'do (and done in similar situations): download all forum files (may have them already as previously downloaded backup), search relevant folders for text matches, using a very good search program, recommending https://www.mythicsoft.com/agentransack/ which will find anything wherever it may hide.

Edit, good point indeed, if they are signatures, in the db... look in 'smf_members` table and edit it there. Do some good backup along the way :O)
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Arantor

Avatars should work through the proxy too but mods might not have updated to use the proxy.

iLearner

Well i've found all links in database (and changed them) except 1, i can't find this one:
http://mapper-mobile.com/wp-content/uploads/2015/08/mapper-text-logo.png

EDIT: Found and fixed, SSL is working.

One question though: what if a member uses a avatar that links to a http:// site? will i have to edit manually every time?

iLearner

Quote from: iLearner on November 18, 2017, 04:05:17 PM
Well i've found all links in database (and changed them) except 1, i can't find this one:
http://mapper-mobile.com/wp-content/uploads/2015/08/mapper-text-logo.png

EDIT: Found and fixed, SSL is working.

One question though: what if a member uses a avatar that links to a http:// site? will i have to edit manually every time?

today i had to change manually once again cause 2 members had avatars with http:// there must be an easier way?

Arantor

Without seeing your site, impossible to say.


Arantor

I found the link in your screenshot.

The problem is, it's not open to guests therefore I can't see anything.

iLearner

I opened it for guests...

I am having to change like on daily bases manually from database the links from http to https...

a10

#13
Quote from: iLearner on November 20, 2017, 08:36:08 AM
I opened it for guests...

I am having to change like on daily bases manually from database the links from http to https...

Is that from new posts \ new members or from older (pre-ssl upgrade) content ?

Edit: I quickly found many http's, example from https://gta-dayz.com/index.php?topic=4088.0
http://sf-cnr.com
http://samp-ac.com
http://i65.tinypic.com/iptiq0.jpg
http://forum.sa-mp.im/download/file.php?avatar=61756_1496951397.jpg
etc

Maybe a complete notepad++ find \ replace http > https will work ?
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

iLearner

its just members using some http:// websites for their avatars mostly.

Illori

if the image image proxy is enabled then it will take care of that. is the image proxy enabled?

iLearner

It is set to enabled in settings.php however on forum board it is not ticked (if i tick and reload page its unticked again)

Illori

are you using 2.0.14 or 2.0.15? if you are not using 2.0.15 please upgrade and try again.

iLearner

I've upgraded, let's see what happens.

Illori

can you enable the image proxy now?

Advertisement: