Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: FragaCampos on July 21, 2019, 06:59:26 PM

Title: Images only appear after reloading page
Post by: FragaCampos on July 21, 2019, 06:59:26 PM
I there.

I've just moved my forum to https and everything went well.
But after activating image proxy in the admin panel, I see that images inside topics are not shown, only after reloading the page.
I saw this (https://www.simplemachines.org/community/index.php?topic=553914.0) fix, but I realized that my forum's version (2.0.15) already has that.
So, what's the problem here?
For the time being, I have deactivated image proxy.


BTW, I could just replace all instances of http to https in the database. Would be that ok?
Title: Re: Images only appear after reloading page
Post by: Sir Osis of Liver on July 21, 2019, 07:17:02 PM
Quote from: FragaCampos on July 21, 2019, 06:59:26 PM
For the time being, I have deactivated image proxy.

That's how I fixed it.

Quote
BTW, I could just replace all instances of http to https in the database. Would be that ok?

Not really, if you do a global find/replace for all http urls, you'll break external links to http sites that are embedded in posts or elsewhere in the forum.  You'd have to change them one at time, or change only http://yourdomain/ to https://yourdomain/.  It's easier to use a redirect.

Title: Re: Images only appear after reloading page
Post by: FragaCampos on July 21, 2019, 07:23:42 PM
I do have a redirect in my root's .htaccess
Title: Re: Images only appear after reloading page
Post by: drewactual on July 21, 2019, 07:39:23 PM
are you sure this isn't a cache issue?
Title: Re: Images only appear after reloading page
Post by: FragaCampos on July 21, 2019, 10:18:24 PM
Yes, pretty sure.  :-\


Quote from: drewactual on July 21, 2019, 07:39:23 PM
are you sure this isn't a cache issue?
Title: Re: Images only appear after reloading page
Post by: Aleksi "Lex" Kilpinen on July 21, 2019, 11:42:49 PM
That is a known issue in how the proxy works currently, the first one to load a page will not see the images on it.
Title: Re: Images only appear after reloading page
Post by: GigaWatt on July 22, 2019, 07:38:10 AM
Yeah, that's why I also have image proxy disabled on my forum.
Title: Re: Images only appear after reloading page
Post by: FragaCampos on July 22, 2019, 10:21:02 AM
Bummer.  :(

Oh, well. Let's home this issue can be solved by SMF team.


Quote from: Aleksi "Lex" Kilpinen on July 21, 2019, 11:42:49 PM
That is a known issue in how the proxy works currently, the first one to load a page will not see the images on it.
Title: Re: Images only appear after reloading page
Post by: njtweb on July 22, 2019, 11:07:22 AM
Quote from: FragaCampos on July 22, 2019, 10:21:02 AM
Bummer.  :(

Oh, well. Let's home this issue can be solved by SMF team.


Quote from: Aleksi "Lex" Kilpinen on July 21, 2019, 11:42:49 PM
That is a known issue in how the proxy works currently, the first one to load a page will not see the images on it.

FYI, I clicked on your signature to check out your site and got a Malware alert.

Title: Re: Images only appear after reloading page
Post by: Aleksi "Lex" Kilpinen on July 22, 2019, 11:22:21 AM
From what I can see, that would probably be a custom entry (on the client side of Umbrella) or a false real time positive. OpenDNS holds no entries for the domain.

Quote from: FragaCampos on July 22, 2019, 10:21:02 AM
Bummer.  :(

Oh, well. Let's home this issue can be solved by SMF team.

As a quick solution, this seems to work ok - I'm using this currently myself
https://custom.simplemachines.org/mods/index.php?mod=4173
Title: Re: Images only appear after reloading page
Post by: FragaCampos on July 22, 2019, 06:19:52 PM
Quote from: njtweb on July 22, 2019, 11:07:22 AM
FYI, I clicked on your signature to check out your site and got a Malware alert.

That's a false positive. There's no malware on my forum.



Quote from: Aleksi "Lex" Kilpinen on July 22, 2019, 11:22:21 AM
As a quick solution, this seems to work ok - I'm using this currently myself
https://custom.simplemachines.org/mods/index.php?mod=4173

Thanks! I'll look into it.
The image caching is done externally?


Title: Re: Images only appear after reloading page
Post by: Aleksi "Lex" Kilpinen on July 23, 2019, 12:20:24 AM
Yes that's an external proxy service.
Title: Re: Images only appear after reloading page
Post by: FragaCampos on July 24, 2019, 12:08:38 PM
Thanks. I'll give it a try.


Quote from: Aleksi "Lex" Kilpinen on July 23, 2019, 12:20:24 AM
Yes that's an external proxy service.
Title: Re: Images only appear after reloading page
Post by: njtweb on July 24, 2019, 02:13:13 PM
Quote from: Aleksi "Lex" Kilpinen on July 22, 2019, 11:22:21 AM
From what I can see, that would probably be a custom entry (on the client side of Umbrella) or a false real time positive. OpenDNS holds no entries for the domain.



Cisco Umbrella at the company I work for.

Diagnostic report

ACType
0
Block Type
security
Bundle ID
157
Domain Tagging
-
Host
malware.opendns.com
IP Address
63.175.140.33
Org ID
48365
Origin ID
272379214
Prefs
-
Query
url=www.docspt.com&server=ash15&prefs=&tagging=&nref
Server
ash15
Time
2019-07-24 18:11:21.853377683 +0000 UTC m=+2318714.356254886
Title: Re: Images only appear after reloading page
Post by: Aleksi "Lex" Kilpinen on July 24, 2019, 03:14:14 PM
Yes, and since OpenDNS holds no tags - it is most likely a custom block based on the fact that the domain is untagged, so "unknown".
The OpenDNS tag catalog is public and searchable.