Search Forums
Forums
Kiwitrees on Twitter
    Tags

    notes, NCHI, language, index, .mo, Batch Updates, themes, php 7, mobile, defacto, googlemap, kiwitrees, validation, kiwitrees theme, name, autocomplete, mysql5.7, timeout, 3.2.1, places, html, research, relationships, administration pages, gender change, bug, Require visitor authentication, margin, 3.2.3, last change date, ID facts, birth, default individual, I18N, Default record, white screen, updates, translate, event, hover, folder, Themes change, image, time, REFN, tags, fixing errors, not married, error, pop-ups, family fact, request, mystyle, charts, events of close relatives, favourite, add, new feature, ckeditor, contacts

    Topic:   Image not shown  

    This topic contains 14 replies, has 2 voices, and was last updated by kiwi kiwi 11 months, 2 weeks ago.

    Viewing 15 posts - 1 through 15 (of 15 total)
    • Author
      Posts
    • #6687
      grebjiem
      grebjiem
      Participant

      105 posts

      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)

      Attachments:
      You must be logged in to view attached files.
      #6690
      kiwi
      kiwi
      Keymaster

      1443 posts

      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

      #6694
      grebjiem
      grebjiem
      Participant

      105 posts

      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.

      #6695
      kiwi
      kiwi
      Keymaster

      1443 posts

      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

      #6696
      kiwi
      kiwi
      Keymaster

      1443 posts

      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

      #6697
      grebjiem
      grebjiem
      Participant

      105 posts

      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.

      #6698
      kiwi
      kiwi
      Keymaster

      1443 posts

      “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

      #6719
      grebjiem
      grebjiem
      Participant

      105 posts

      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!

      #6720
      grebjiem
      grebjiem
      Participant

      105 posts

      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?

      #6721
      kiwi
      kiwi
      Keymaster

      1443 posts

      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 kb

      They 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

      #6722
      grebjiem
      grebjiem
      Participant

      105 posts

      Acces details are in the mail.

      #6756
      grebjiem
      grebjiem
      Participant

      105 posts

      Thank you for your support with this problem.
      After a week with a lot of e-mails send to Nigel and my webhost, it looks like the problem is solved.
      My webhost moved my website to another server, memory set back to 1 Gb.
      Didn’t see any new errors show up.

      Thanks Nigel, you were a great help!

      #6757
      kiwi
      kiwi
      Keymaster

      1443 posts

      My webhost moved my website to another server, memory set back to 1 Gb.
      Didn’t see any new errors show up.

      That’s great news. Did they say what is different about the new server?

      Nigel

      My personal kiwitrees site is www.our-families.info

      #6760
      grebjiem
      grebjiem
      Participant

      105 posts

      Not yet, but I will ask them again.
      I think it was a real problem with the server, because testing with 2 Gb memory was also not enough to run kiwitrees properly,
      Got an e-mail to upgrade to 4 GB or change server. The choice was easy to be made.

      #6762
      kiwi
      kiwi
      Keymaster

      1443 posts

      Got an e-mail to upgrade to 4 GB or change server. The choice was easy to be made.

      Good decision. I have NEVER seen a kiwitrees installation that needs even close to those memory figures.

      My own tree is about twice the size of yours, including more than twice as many media items, and I operate comfortably with 128MB.
      I have a hosting client whose tree is greater than 70,000 individuals, plus media etc. and that still works well at 256MB.
      BUT the server needs to be well setup and managed. Kiwitrees hosting uses a New Zealand hosting business that I have worked with for over 10 years. They know what the software needs and works with me to achieve it.
      Sadly many people struggle to accept that with web hosting “you get what you pay for”.

      Nigel

      My personal kiwitrees site is www.our-families.info

    Viewing 15 posts - 1 through 15 (of 15 total)

    You must be logged in to reply to this topic.