Advertisement:

Author Topic: Images only appear after reloading page  (Read 657 times)

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,302
  • Gender: Male
    • docsPT
Images only appear after reloading page
« 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 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?

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,236
Re: Images only appear after reloading page
« Reply #1 on: July 21, 2019, 07:17:02 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.


Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,302
  • Gender: Male
    • docsPT
Re: Images only appear after reloading page
« Reply #2 on: July 21, 2019, 07:23:42 PM »
I do have a redirect in my root's .htaccess

Offline drewactual

  • Full Member
  • ***
  • Posts: 672
    • College Football Fan Site CFB51
Re: Images only appear after reloading page
« Reply #3 on: July 21, 2019, 07:39:23 PM »
are you sure this isn't a cache issue?

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,302
  • Gender: Male
    • docsPT
Re: Images only appear after reloading page
« Reply #4 on: July 21, 2019, 10:18:24 PM »
Yes, pretty sure.  :-\


are you sure this isn't a cache issue?

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,538
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Images only appear after reloading page
« Reply #5 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.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"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

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,104
  • Gender: Male
    • Macedonian electronics forum
Re: Images only appear after reloading page
« Reply #6 on: July 22, 2019, 07:38:10 AM »
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?"..."

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,302
  • Gender: Male
    • docsPT
Re: Images only appear after reloading page
« Reply #7 on: July 22, 2019, 10:21:02 AM »
Bummer.  :(

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


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.

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 916
Re: Images only appear after reloading page
« Reply #8 on: July 22, 2019, 11:07:22 AM »
Bummer.  :(

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


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.


Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,538
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Images only appear after reloading page
« Reply #9 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.

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
« Last Edit: July 22, 2019, 11:47:48 AM by Aleksi "Lex" Kilpinen »
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"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

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,302
  • Gender: Male
    • docsPT
Re: Images only appear after reloading page
« Reply #10 on: July 22, 2019, 06:19:52 PM »
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.



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?



Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,538
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Images only appear after reloading page
« Reply #11 on: July 23, 2019, 12:20:24 AM »
Yes that's an external proxy service.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"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

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,302
  • Gender: Male
    • docsPT
Re: Images only appear after reloading page
« Reply #12 on: July 24, 2019, 12:08:38 PM »
Thanks. I'll give it a try.


Yes that's an external proxy service.

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 916
Re: Images only appear after reloading page
« Reply #13 on: July 24, 2019, 02:13:13 PM »
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

Code: [Select]
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

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,538
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Images only appear after reloading page
« Reply #14 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.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"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