MyBB Community Forums

Full Version: Images Issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I am experiencing images not showing issue in my forum, but it's quite strange.

  1. Images only uploaded to certain site (hizliresim.com) not showing properly on my main forum.
  2. Images uploaded to other sites are working completely okay.
  3. When user tries to reach image source -uploaded to hizliresim.com- it redirects user to its own beta page.
  4. Only after that, user can see actual image in threads, from his cache.
When you consider this issue it seems like issue is related to hizliresim.com right?

I have secondary forum (which is clone of main forum I use for experiments) and in that forum hizliresim.com images have no issues at all. So something I did after cloning broke only hizliresim links.

Any idea what's happening?
Can you share links to places where content from that domain is working correctly and where it's not?
Hello,

I usually don't let my clone forum open since it has same content as other one and it's simply for my personal use to experiment new stuff.
The thing is if image is in cache of that user (if user saw that image already) it shown okay in my actual forum too.
If image isn't in cache, then issue happens.

Note that if you look at thread first in clone, and then in actual forum you ll see it there too. Since it's in cache already.
And sometimes for some reason I can see all images in main forum intermittent, then they get broken again - if it's not in cache.

EDIT: Right now actually I can see images in both forums, but issue will happen again.
EDIT2: They are gone again, no hizliresim.com image working properly.
The problem is that these images are loaded over plain HTTP, whereas your main forum is using HTTPS (which explains why the same resources are being displayed correctly on the test site, as it doesn't use/enforce HTTPS).
Browsers usually prevent displaying HTTP resources on HTTPS pages as that would undermine the security provided by HTTPS.

Take a look at our guide that covers dealing with mixed content: https://docs.mybb.com/1.8/administration...ed-content.
Basically, if you you're unable to set up an image proxy or don't want to prevent HTTP images from being displayed (although that would be recommended), you can try adding a Content-Security-Policy header (also mentioned in the guide) to instruct browsers to attempt to fetch insecure images over HTTPS.
But why its only happening to this hizliresim.com's images?

I have tested it with directupload, uploaded same image to hizliresim and directupload and put them into one thread. After I cleared my cache only hizliresim.com one wasn't showing.

And my forum is https over 5-6 months, why am I experiencing this now?

Is there a way I can change all http://i.hizliresim  links to https://i.hizliresim ?
It may be related to the redirect to beta.hizliresim.com (the browsers can "learn" the path or protocol support upon first visit and remember it once refreshed).

You can replace links that have been posted already with a SQL command, but using something like DVZ Secure Content would make sure that all content is replaced correctly.
There is a free image proxy available if you're interested: https://community.mybb.com/thread-206338...pid1254693
Hello Devilshakerz, thank you for help.
I managed to do that SQL command and fixed existing image links.
Then I downloaded and installed your plugin, tried to use free proxy you mentioned.

I am getting this error in images:
Error 410: Server couldn't parse the ?url= that you were looking for, because the hostname of the origin is unresolvable (DNS) or blocked by policy.

For example:
https://images.weserv.nl/?url=i.hizlires...4PYr74.png

And again when I try to use it with directupload, instead of hizliresim it works correctly.
(2017-03-14, 02:01 AM)Darkrad Wrote: [ -> ]I am getting this error in images:
Error 410: Server couldn't parse the ?url= that you were looking for, because the hostname of the origin is unresolvable (DNS) or blocked by policy.

For example:
https://images.weserv.nl/?url=i.hizlires...4PYr74.png

And again when I try to use it with directupload, instead of hizliresim it works correctly.

It seems like that server is not hotlink-friendly due to these redirects.
Is it possible to set it as if image can not be shown via proxy, then show it as link?
I want to use that proxy but I don't want every hizliresim links to be shown as broken.