News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Images only appear after reloading page

Started by FragaCampos, July 21, 2019, 06:59:26 PM

Previous topic - Next topic

FragaCampos

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 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?

Sir Osis of Liver

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.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

FragaCampos

I do have a redirect in my root's .htaccess

drewactual


FragaCampos


Aleksi "Lex" Kilpinen

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.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

GigaWatt

Yeah, that's why I also have image proxy disabled on my forum.
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

FragaCampos

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.

njtweb

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.


Aleksi "Lex" Kilpinen

#9
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
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

FragaCampos

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?



Aleksi "Lex" Kilpinen

Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

FragaCampos


njtweb

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

Aleksi "Lex" Kilpinen

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.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: