Web based family history software

Question [SOLVED] Error When Adding Media

  • ejbondar
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 11 months ago #1 by ejbondar
Error When Adding Media was created by ejbondar
Hi:

I am running webtrees 1.7.13 with PHP 5.6.27 on a GoDaddy hosted domain heaneyhistory.com/webtrees

When trying to add a picture, I get the following error:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 13228 bytes) in /home/content/28/6551828/html/webtrees/app/Media.php on line 208

I suspect that I need to increase the PHP memory size, but wanted to confirm. If so, is the value in the php.ini file or somewhere else?


Thanks in advance,

Ed

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
4 years 11 months ago - 4 years 11 months ago #2 by bertkoor
Replied by bertkoor on topic Error When Adding Media
Are you perhaps adding a scan of a document? These tend to be very large... Not in kilobytes (jpeg is compressed) but it's dimensions.
webtrees needs to expand it in memory to generate a thumbnail picture. Each pixel requires about 4 bytes. You appear to have maxed out 64 MB.
A4 / Legal format (8.5 x 11") scanned at 600 dpi = 5100 x 6600 pixels = 33.660.000 pixels requiring at least 134 MB memory solely for the image.
You might need another extra 32 MB for the process itself.

Some possible solutions:
1) upload a separate thumbnail you created yourself
2) reduce the image size prior to uploading. A 300 dpi scan instead of 600 dpi requires just a quarter of the memory and 150 dpi just 1/16th of what it was.
3) increase the PHP memory limit (if your hosting provider allows it) in webtrees' Control Panel - Web Site Preferences. Check it after saving with Web Site - Server Information (search for "memory_limit")

stamboom.BertKoor.nl runs on webtrees v1.7.13
Last edit: 4 years 11 months ago by bertkoor.

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

  • ejbondar
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 11 months ago #3 by ejbondar
Replied by ejbondar on topic Error When Adding Media
The file was a jpeg but it was not excessive in size and only 96 dpi. I changed the PHP memory size to 128M under the webtrees preferences and it seems to have resolved the errors. Thanks.

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

  • ejbondar
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 11 months ago #4 by ejbondar
Replied by ejbondar on topic [SOLVED] Error When Adding Media
Problem solved.

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

Powered by Kunena Forum
}