- This topic has 14 replies, 2 voices, and was last updated 7 years, 4 months ago by
kiwi.
-
6th July 2016 at 4:02 pm #6687
The pages are not loading all images. In the source code the following error is shown
Failed to load resource: the server responded with a status of 500 (Internal Server Error) -
6th July 2016 at 4:44 pm #6690
I’ve looked at your site, and I might be able to guess the problem. Did you upload all, or a great many images in bulk, perhaps via FTP?
That is OK, but when you do thumbnails are not immediately created. It would take far too much server resource/ So they are created as each image is viewed. The 500 error is basically telling that, at that instant, the thumbnail doesn’t exist.
If you click on one of those images that is not displayed you will see the full size image correctly. Then close it, and refresh the whole browser page. You will now see the thumbnail appear.
There is no quick way to do this, but you can go scroll through all the images in Administration > Media > Manage media. The ones with no thumbnail are easy to spot. So just open, then close it and move on to the next. Eventually you will catch them all.
I hope this is the right solution 🙂
Nigel
My personal kiwitrees site is www.our-families.info -
6th July 2016 at 6:23 pm #6694
When I changed from server I uploaded all by FTP,
Tried your solution, The thumbmail is showing up, but showing some more images the thumbnail dissappears again. -
6th July 2016 at 7:19 pm #6695
Is there anything related to these events in your server logs (not the kiwitrees logs)?
There’s really nothing I can think of in the kiwitrees code that would do something this random. More likely some capacity issue at the server. If so then it will be noted in the error logs, unless the web host has disabled error reporting.
Nigel
My personal kiwitrees site is www.our-families.info -
6th July 2016 at 7:22 pm #6696
Just a thought, what version of php are you using? If php 7+ can you downgrade to 5.6 and see if it makes a difference.
Nigel
My personal kiwitrees site is www.our-families.info -
6th July 2016 at 9:47 pm #6697
Php version is 5.6.21
In the error logs is “cannot allocate memory” and “couldn’t create child process”
I have contacted my webhost and I am waiting for an answer. -
6th July 2016 at 10:03 pm #6698
“cannot allocate memory”
Ok, that’s not an uncommon problem when trying to create thumbnails. It might be compounded by the number you need to do.
It usually means your server doesn’t have enough memory to create a thumbnail of one or more images. But which ones can be hard to identify. You are NOT looking for large file sizes, especially not among jpegs. The process of creating a thumbnail requires the server to store in memory the FULL ORIGINAL size of the image, as it exists without jpeg compression. You can calculate that from the pixel dimensions (width x height) x bit size (often 8 bit or more). So a compressed file that appears as (say) 500kb might expand in memory to 20 or mor MB. So the problem image(s) will have large dimensions and probably be high resolution colour.
I would suggest look in your media folder and isolate the ones that exist in full size, but without a matching thumbnail. It must be one or more of those.
Then for each either create and ftp your own thumbnail, or reprocess the image to a smaller size.
Nigel
My personal kiwitrees site is www.our-families.info -
8th July 2016 at 10:55 pm #6719
Did not find the file, the thumbnails matched with the images.
Resized all pictures and uploaded. Same problem.
Resized all pictures wit the program RIOT. Uploaded the pictures same problem, removed cache and finally problem solved! -
9th July 2016 at 9:59 am #6720
And the problem is back again!
From the about 900 jpg files are about 125 files with bitsize 24, all the others are 8.
Bitsize 8 largest dimension 640×640=3276800
Bitsize 24 largest dimension 640×510=7833600
Largest filesize jpg is 25 kb
Is it the amount of calculations?
Or are files like wmv or pdf causing the problems? -
9th July 2016 at 10:29 am #6721
And the problem is back again!
That’s a relief! 🙂 After reading your previous reply late last night I’ve been trying to imagine how the kiwitrees cache could have anything to do with images. I’m certain it’s not used for any aspect of image displays.
From the about 900 jpg files are about 125 files with bitsize 24, all the others are 8.
Bitsize 8 largest dimension 640×640=3276800
Bitsize 24 largest dimension 640×510=7833600
Largest filesize jpg is 25 kbThey are all reasonable and not likely to cause an issue.
Is it the amount of calculations?
That’s a possibility, but it shouldn’t be. Thumbnails should only be created as they are required, and only once, when the image is first viewed. After, the thumbnail is used form the stored copy.
Or are files like wmv or pdf causing the problems?
Again, possible, but unlikely. They don’t / can’t have thumbnails automatically created, and the code knows that so doesn’t try.
I think I will need to have a browse through your server files, logs etc to see if I can spot anything that might be the cause. Can you send me access details?
Nigel
My personal kiwitrees site is www.our-families.info
- The topic ‘Image not shown’ is closed to new replies.