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."

TOPIC: [SOLVED] Random display of thumbnails

Random display of thumbnails 2 years 2 months ago #1

  • bodin
  • bodin's Avatar
  • Offline
  • New
  • Posts: 18
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
The administrator has disabled public write access.

Random display of thumbnails 2 years 2 months ago #2

  • makitso
  • makitso's Avatar
  • Offline
  • Administrator
  • Posts: 427
Can you provide a url to see this?
Rob
www.skatekey.net ( version 2.0.0 GitHub)
PHP 7.2.12, MySQL 5.6.40, Apache 2.2.9,
Hosted at tigertech.net
The administrator has disabled public write access.

Random display of thumbnails 2 years 2 months ago #3

  • bodin
  • bodin's Avatar
  • Offline
  • New
  • Posts: 18
The administrator has disabled public write access.

Random display of thumbnails 2 years 2 months ago #4

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1473
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.9
The administrator has disabled public write access.

Random display of thumbnails 2 years 2 months ago #5

  • ddrury
  • ddrury's Avatar
  • Offline
  • Senior
  • Posts: 250
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, Apache 2.4.17 virtual hosts, PHP 5.4.21, 5.5.15, 5.6.16 & 7.0.0, Mysql 5.7.9 all 64bit
Production: linux 2.6.32.21-grsec #5 SMP, Apache 2.2, PHP 5.6.15, Mysql 5.5.28-29.1
The administrator has disabled public write access.

Random display of thumbnails 2 years 2 months ago #6

  • bodin
  • bodin's Avatar
  • Offline
  • New
  • Posts: 18
Thanks for your reply ddrury, but my webtrees log is empty. I have not these messages ???
The administrator has disabled public write access.

Random display of thumbnails 2 years 2 months ago #7

  • bodin
  • bodin's Avatar
  • Offline
  • New
  • Posts: 18
Thanks for your reply bertkoor.

By default, my php memory limit is empty on the webtrees. What is the ideal duration ?
The administrator has disabled public write access.

Random display of thumbnails 2 years 2 months ago #8

  • kiwi
  • kiwi's Avatar
  • Offline
  • Platinum
  • Posts: 4921
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:
The administrator has disabled public write access.
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 2 years 2 months ago #9

  • bodin
  • bodin's Avatar
  • Offline
  • New
  • Posts: 18
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.
The administrator has disabled public write access.

Random display of thumbnails 2 years 1 month ago #10

  • bodin
  • bodin's Avatar
  • Offline
  • New
  • Posts: 18
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 !!!
The administrator has disabled public write access.

Random display of thumbnails 2 years 1 month ago #11

  • kiwi
  • kiwi's Avatar
  • Offline
  • Platinum
  • Posts: 4921
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:
The administrator has disabled public write access.

Random display of thumbnails 2 years 1 month ago #12

  • JustCarmen
  • JustCarmen's Avatar
  • Offline
  • Frequent
  • Posts: 925
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

Check it out at www.justcarmen.nl

webtrees 1.7.11 at www.wijzijnfamilie.nl
PHP 5.6.34

wt 2.0. (latest dev) on local testsite for theme and module development
The administrator has disabled public write access.

[SOLVED] Random display of thumbnails 2 years 1 month ago #13

  • bodin
  • bodin's Avatar
  • Offline
  • New
  • Posts: 18
Problem solved.
The administrator has disabled public write access.

Random display of thumbnails 2 years 1 month ago #14

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

With all my thanks and congratulations to the team of managers.
The administrator has disabled public write access.

Random display of thumbnails 2 years 1 month ago #15

  • coutu
  • coutu's Avatar
  • Offline
  • New
  • Posts: 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.
Last Edit: 2 years 1 month ago by coutu.
The administrator has disabled public write access.

Random display of thumbnails 2 years 1 month ago #16

  • bodin
  • bodin's Avatar
  • Offline
  • New
  • Posts: 18
Thank you for this information. I ended up taking a paid host: obambu.
But I will try your proposal.
The administrator has disabled public write access.

Random display of thumbnails 1 year 10 months ago #17

  • PierreDurand
  • PierreDurand's Avatar
  • Offline
  • New
  • Posts: 20
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)
Last Edit: 1 year 10 months ago by PierreDurand.
The administrator has disabled public write access.
Powered by Kunena Forum