Bienvenue, Invité
Nom d'utilisateur : Mot de passe :
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

SUJET :

Random display of thumbnails il y a 4 ans 7 mois #1

  • bodin
  • Portrait de bodin Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 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

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 7 mois #2

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

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 7 mois #3

  • bodin
  • Portrait de bodin Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 19
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 7 mois #4

  • bertkoor
  • Portrait de bertkoor
  • Hors Ligne
  • Membre platinium
  • Membre platinium
  • Greetings from Utrecht, Holland
  • Messages : 2330
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

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 7 mois #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 Apache 2.4.41, PHP 7.4.16/8.0.3, MariaDB 10.4.10
Production: Apache 2.2, PHP 7.3.27, 10.3.18-MariaDB

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 7 mois #6

  • bodin
  • Portrait de bodin Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 19
Thanks for your reply ddrury, but my webtrees log is empty. I have not these messages ???

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 7 mois #7

  • bodin
  • Portrait de bodin Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 19
Thanks for your reply bertkoor.

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

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 7 mois #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:

Connexion ou Créer un compte pour participer à la conversation.

Avez-vous besoin d'une solution d'hébergement web pour votre site webtrees ?
Si vous préférez un hébergeur spécialisé de webtrees, la page suivante en liste quelques-uns capables de vous offrir ce type de service :

Random display of thumbnails il y a 4 ans 7 mois #9

  • bodin
  • Portrait de bodin Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 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.

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 6 mois #10

  • bodin
  • Portrait de bodin Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 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 !!!

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 6 mois #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:

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 6 mois #12

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 JustLight theme and Fancy Imagebar for webtrees 2.x


Also designer of the JustBlack theme and the other Fancy modules for webtrees 1.x

Check my website at www.justcarmen.nl

Connexion ou Créer un compte pour participer à la conversation.

[SOLVED] Random display of thumbnails il y a 4 ans 6 mois #13

  • bodin
  • Portrait de bodin Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 19
Problem solved.

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 6 mois #14

  • bodin
  • Portrait de bodin Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 19
You are right. I changed hosting (hostinger) and everything works fine.

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

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 6 mois #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.

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par coutu.

Random display of thumbnails il y a 4 ans 6 mois #16

  • bodin
  • Portrait de bodin Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 19
Thank you for this information. I ended up taking a paid host: obambu.
But I will try your proposal.

Connexion ou Créer un compte pour participer à la conversation.

Random display of thumbnails il y a 4 ans 3 mois #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 )

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par PierreDurand.
  • Page :
  • 1
Propulsé par Kunena