This Help forum is for issues relates to the latest release (1.7.8). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."
  • Page:
  • 1

TOPIC:

Random display of thumbnails 3 years 7 months ago #1

  • bodin
  • bodin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 19
Whichever page is viewed, the thumbnails appear randomly : some are displayed and some are not, and after refitting the page, they are not necessarily the same ones that are displayed.

These are not necessarily the heaviest ones that do not display : the size of my thumbnails are between 2 and 6 ko.

Is it possible to correct this problem?

Thanks you for your reply

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

Random display of thumbnails 3 years 7 months ago #2

Can you provide a url to see this?
Rob
www.skatekey.net ( beta GitHub)
PHP 7.4.6, MariaDB 10.1.44, Apache 2.4.43,
Hosted at tigertech.net

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

Random display of thumbnails 3 years 7 months ago #3

  • bodin
  • bodin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 19
Attachments:

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

Random display of thumbnails 3 years 7 months ago #4

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1931
Wild guess: php memory limit.

In order to generate a thumbnail the image needs to be fully decompressed in memory first. A photo of 3000x2000 pixels takes 6 million pixels of several bytes each. Maybe your default memory size doesn't suffice.

Search here for php memory limit, and you will find clues how to raise that...
stamboom.BertKoor.nl runs on webtrees v1.7.13

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

Random display of thumbnails 3 years 7 months ago #5

Are you getting any messages similar to the following in your webtrees log
  • Invalid mime type
  • failure to create an already existing thumb folder
  • recreating an already existing thumb file
  • streaming failure from the mediafilewall

If so this may give you some ideas
--
Dave

Local: Win 10 Pro/WSL Ubuntu 18.04.4, Nginx 1.14.0, PHP 7.4.5/7.3.17-1, Mysql 5.7.29-0ubuntu0.18.04.1
Production: Apache 2.2, PHP 7.3.15, 10.3.18-MariaDB

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

Random display of thumbnails 3 years 7 months ago #6

  • bodin
  • bodin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 19
Thanks for your reply ddrury, but my webtrees log is empty. I have not these messages ???

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

Random display of thumbnails 3 years 7 months ago #7

  • bodin
  • bodin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 19
Thanks for your reply bertkoor.

By default, my php memory limit is empty on the webtrees. What is the ideal duration ?

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

Random display of thumbnails 3 years 7 months ago #8

I don't believe your issue is any of the things suggested to far. They are all relatively common problems and generally only effect one image in a consistent manner.

I have seen exactly the issue you describe (random image files not displayed) just once before. It was caused by one or more corrupted image files. You need to find and replace them. I know of only one way to do this - download all your media objects and try opening each one locally in any image editing software. It will fail to open the corrupt ones. They will not necessarily be any of those you have noticed are not displayed.

I'm still looking for a satisfactory way to identify these at the server, but not yet succeeded.
Nigel

www.our-families.info

Hosted at:
Follow me at:

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: 

Random display of thumbnails 3 years 7 months ago #9

  • bodin
  • bodin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 19
Thank you for your message Platinum.
In fact, I think the problem comes from the fact that my internet connection has a very slow : I'm on vacation off of home.
As soon as i have a connection with a satisfactory throughput, i shall able to check.

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

Random display of thumbnails 3 years 7 months ago #10

  • bodin
  • bodin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 19
I have imported all the thumbnails locally to check them : they are all correctly displayed locally with windows 10. If I export them online, the problem remains the same: random display of thumbnails.

I remade the thumbnails with Easy Thumbnails, but the problem persists with these new thumbnails.

On the other hand, the display of the images in full size is always correct.

I have not solution !!!

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

Random display of thumbnails 3 years 7 months ago #11

You misunderstood my previous post. The problem is not in the thumbnails, it is in the main images. Download all those and check them.
Nigel

www.our-families.info

Hosted at:
Follow me at:

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

Random display of thumbnails 3 years 7 months ago #12

  • JustCarmen
  • JustCarmen's Avatar
  • Offline
  • Frequent
  • Frequent
  • Posts: 939
I think Bertkoor was right after all. It is a memory issue.

You are using a free webserver where the provider is squeezing the connection on every page request. When looking at the network activities with firebug I noticed a file named 'overload.html' which is definitely not a webtrees file. Looking up this file in the webbrowser brings up this page: perso99-g5.free.fr/overload.html where you can find this message:

Nous avons détécté que votre adresse IP ouvrait trop de connexions vers notre serveur web.
Nous vous rappelons que ces pratiques sont strictement inutile et n'ont pour unique conséquence de ralentir les serveurs.

Si vous désirez stocker temporairement des données, vous pouvez utiliser ce service: dl.free.fr que nous mettons à votre disposition.


There you have your answer.

Solution? Find another host.

Carmen
Designer of the JustBlack theme, the JustLight theme and the Fancy modules for webtrees 1.x

Check it out at www.justcarmen.nl

webtrees 1.7.16 / 2.1.0 at www.wijzijnfamilie.nl
PHP 7.3.1

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

[SOLVED] Random display of thumbnails 3 years 7 months ago #13

  • bodin
  • bodin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 19
Problem solved.

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

Random display of thumbnails 3 years 7 months ago #14

  • bodin
  • bodin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 19
You are right. I changed hosting (hostinger) and everything works fine.

With all my thanks and congratulations to the team of managers.

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

Random display of thumbnails 3 years 7 months ago #15

I had the same issue it's a free server problem. For each thumbnail display => a request to webtrees mediafirewall.php. And it's too much requests for free server (overload.html) so the thumbs appear randomly.
What I did to solve this and kept my free host pages perso.
I use webtrees 1.7.8, my thumbs are in data/media/thumbs/

1) Open file : webtrees/app/Media.php
I replace the function getHtmlUrlDirect by this one, the mediafirewall request will be avoided for thumb and the real path used :

public function getHtmlUrlDirect($which = 'main', $download = false) {
// “cb” is “cache buster”, so clients will make new request if anything significant about the user or the file changes
// The extension is there so that image viewers (e.g. colorbox) can do something sensible
$downloadstr = ($download) ? '&dl=1' : '';
if ($which == 'thumb') {
return 'data/media/thumbs/' . $this->file;
} else {
return
'mediafirewall.php?mid=' . $this->getXref() . $downloadstr .
'&ged=' . $this->tree->getNameUrl() .
'&cb=' . $this->getEtag($which);
}
}

2) In order for the function to work, the protection of the thumbs folder must be removed. In folder data/media/thumbs/ put a file named .htaccess :
Open it and write 2 lines :

order allow,deny
allow from all

All thumbnails display well and so i keep my free server host.

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

Last edit: by coutu.

Random display of thumbnails 3 years 7 months ago #16

  • bodin
  • bodin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 19
Thank you for this information. I ended up taking a paid host: obambu.
But I will try your proposal.

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

Random display of thumbnails 3 years 3 months ago #17

Hello,
What about your site at Obambu?
I am at Obambu too and I have the same problem with thumbs for some time.
And I can't display more than 3 blocks on the home page!
They said that more scripts overflow the 1Gb memory limit. Hard to believe...

Edit: I forgot to add that all worked fine last year.

Edit2: I just tried the above coutu's solution and guess... works fine with 1.7.8 and 1.7.9. Thank you "coutu" ;-)
Please don't you have the same for blocks on home page? Because your solution is wonderful but looks like ancient korean language for me :-D

(Continuation at about-memory-and-requests-at-the-same-time )

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

Last edit: by PierreDurand.
  • Page:
  • 1
Powered by Kunena Forum