Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

Images won't load until I refresh the pages 1 month 6 days ago #1

Hello,
my website works fine in 1.7.17 on localhost + on distant webserver (no problem)

It also works fine with the 2.0 on localhost, but on distant webserver the medias won't load until I refresh the pages:

For example if I go to "Manage media" the names of the medias are displayed correctly in the "Media file"column, but the "Media" column only displays the link to the image (not the expected thumbnail).If I clik on this link the photo opens correctly, and when I click the navigation back page button, this time the photo is displayed. The same problem occurs with the Individuals pages and their media & album tabs (the images won't display until I click their links, display and go back to the page with the navigation back button). Same problem with the photos in the charts. My photos are small, about 40 ko.
I have tried on pc (Firefox linux, windows10, IE ) , on tablet , with a higher speed connection and ethernet, nothing changes.

Also sometimes when I sign in, I get an error "this page can't be displayed" , but if I click on the navigation backbutton , I find that I am connected.

If I can't solve this problem I will go back to 1.7.17 version, but that would be a shame.
Can somebody help ?
Sorry for my english, it is not perfect...

Please Log in or Create an account to join the conversation.

Last edit: by md.

Images won't load until I refresh the pages 1 month 6 days ago #2

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1934
Could you give us the URL of your site, so we can have a look?
What is your hosting provider? There are some (e.g. OHV) that require you to jump through some extra hoops.
(see webtrees.net/install/ under "Server-specific documentation")
stamboom.BertKoor.nl runs on webtrees v1.7.13

Please Log in or Create an account to join the conversation.

Last edit: by bertkoor.

Images won't load until I refresh the pages 1 month 5 days ago #3

Thank you for your answer, my hosting provider is Planethoster world lite (free hosting) .I mostly wanted to know whether other people have had this problem and how they have solved it.
It is probably a problem specific to Planethoster hosting. I'll check with their support and I'll keep you informed.

Please Log in or Create an account to join the conversation.

Last edit: by md.

Images won't load until I refresh the pages 4 weeks 1 day ago #4

It seems that the problem is related to the server resources (free hosting...) . Does 2.0 version needs more server resources than the 1.7.15 version ?

Please Log in or Create an account to join the conversation.

Images won't load until I refresh the pages 4 weeks 1 day ago #5

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13196
1.7 created thumbnails sequentially, while creating the page that contains the thumbnail.

If there are many new images, then the entire page will take a long time to appear.
Perhaps longer than the PHP time-limit. Or if one thumbnail could not be generated, then the entire page would be unavailable.

2.0 creates the thumbnails in parallel - after the page is displayed.

The advantages are that the page appears instantly, even if there are errors creating thumbnails.
Each thumbnail is created in its own process, reducing memory requirements.

Your browser should only send 6(?) requests at a time. But if your server is only able to serve 4 requests at a time, then 2 will fail.
But they should work if you reload the page - so the problem is self-healing.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Images won't load until I refresh the pages 4 weeks 1 day ago #6

thank you for all this information

Please Log in or Create an account to join the conversation.

Images won't load until I refresh the pages 4 weeks 1 day ago #7

HI, I also got the same MEDIA issue

I came from 1.7.16 and upgrade to 1.7.17 Images still fine and all media is under /data/media
And the updated to 2.0.5. and image don't render.

Also if i enable clean urls [rewrite_urls="1"] the site stays dead as is still goes to www.domain.xx/login?url=

Please Log in or Create an account to join the conversation.

Images won't load until I refresh the pages 4 weeks 1 day ago #8

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13196
> HI, I also got the same MEDIA issue
> And the updated to 2.0.5. and image don't render.

This issue is that not all thumbnails are shown at once - but appear after a refresh.
Your problem appears to be very different.
Did you see webtrees.net/faq/thumbnails/
Can you share the URL of your site.
It is often very easy to identify the problem when you can see the site.
Otherwise we have very little information and can only guess.

> Also if i enable clean urls [rewrite_urls="1"] the site stays dead as is still goes to

Did you also update your webserver configuration as well. e.g. via a .htaccess file.
Perhaps you made a mistake in this configuration?
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Images won't load until I refresh the pages 4 weeks 1 day ago #9

Plesk Server got GD + Imagemagick php 7.3x (256M)

Here the logs

403
GET /index.php?route=%2Ftree%2Fdomain%2Fmedia-thumbnail&s=877faa3305ce36ccabe090bb0f55df6c&xref=M28&fact_id=d2f7ad6a1ee409c65105c101f4b1dbe7&w=400&h=400&fit=&mark=&markh=100h&markw=100w&markpos=center&markalpha=25&or=or&q=35 HTTP/1.1

ModSecurity: Access denied with code 403 (phase 2). Pattern match "[\\\\[\\\\]\\\\x22',()\\\\.]{10}$|\\\\b(?:union\\\\sall\\\\sselect\\\\s(?:(?:null|\\\\d+),?)+|order\\\\sby\\\\s\\\\d{1,4}|(?:and|or)\\\\s\\\\d{4}=\\\\d{4}|waitfor\\\\sdelay\\\\s'\\\\d+:\\\\d+:\\\\d+'|(?:select|and|or)\\\\s(?:(?:pg_)?sleep\\\\(\\\\d+\\\\)|\\\\d+\\\\s?=\\\\s?(?:dbms_pipe\\\\.receive_message\\\\ ..." at REQUEST_URI. [line "64"] [id "218500"] [rev "15"] [msg "COMODO WAF: SQLmap attack detected||www.domain.de|F|2"] [data "Matched Data: or&q=35 found within REQUEST_URI: /index.php?route=/tree/domain/media-thumbnail&s=877faa3305ce36ccabe090bb0f55df6c&xref=m28&fact_id=d2f7ad6a1ee409c65105c101f4b1dbe7&w=400&h=400&fit=&mark=&markh=100h&markw=100w&markpos=center&markalpha=25&or=or&q=35"] [severity "CRITICAL"] [tag "CWAF"] [tag "SQLi"] [hostname "www.domain.de"] [uri "/index.php"] [unique_id "Xt4nN7VdlxhnGnqSoYlsywAAAAM"], referer: https://www.domain.de/index.php?route=%2Ftree%2Fdomain%2Fmy-page[file "/etc/apache2/modsecurity.d/rules/comodo_free/22_SQL_SQLi.conf"] [line "64"] [id "218500"] [rev "15"] [msg "COMODO WAF: SQLmap attack detected||www.domain.de|F|2"] [data "Matched Data: or&q=35 found within REQUEST_URI: /index.php?route=/tree/domain/media-thumbnail&s=877faa3305ce36ccabe090bb0f55df6c&xref=m28&fact_id=d2f7ad6a1ee409c65105c101f4b1dbe7&w=400&h=400&fit=&mark=&markh=100h&markw=100w&markpos=center&markalpha=25&or=or&q=35"] [severity "CRITICAL"] [tag "CWAF"] [tag "SQLi"] [hostname " www.domain.de "] [uri "/index.php"] [unique_id "Xt4nN7VdlxhnGnqSoYlsywAAAAM"], referer: www.domain.de/index.php?route=%2Ftree%2Fdomain%2Fmy-page

Please Log in or Create an account to join the conversation.

Images won't load until I refresh the pages 4 weeks 1 day ago #10

just turned off ModSecurity then image load.

So for now I turned off rule 218500 :-(

Please have a look at your side what triggers ModSecurity

# RULEDATA:218500:SQLi:1:COMODO WAF: SQLmap attack detected

Please Log in or Create an account to join the conversation.

Last edit: by Rar9.

Images won't load until I refresh the pages 4 weeks 1 day ago #11

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13196
> Please have a look at your side what triggers ModSecurity

ModSecurity is triggered by the rules that you configure on your server.

If you use ModSecurity, then it is your responsibility to select the rules that
are required / compatible with your applications.

My guess is that you have selected a rule that matches "or=or" in the URL.

In webtrees, this parameter means "orientation = original".

1) I do not control this parameter. It is part of a widely-used graphics library.
2) If I did change it, then every webtrees site would need to re-create every thumbnail.
3) The problem is your rules, not webtrees URLs.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum