Skip to Content Skip to Menu

Community builder registration - picture size

9 years 4 months ago - 9 years 4 months ago #265550 by julie.prod.web
Community builder registration - picture size was created by julie.prod.web
Hi,

I am working with cb2 and cbsub4.

At the end of the registration when people make a wrong choise and take a photo to heavy, there is blank page.
In debug mode I have this message :
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16000 bytes) in <span>/</span>home<span>/</span>mywebsite/www/libraries/CBLib/Imagine/Gd/Image.php on line 602

Why there is not just like a popup who say, "picture to heavy" or some things like that.
What can i do to solve this problem ?

Thanks
Last edit: 9 years 4 months ago by julie.prod.web.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 4 months ago #265582 by krileon
Replied by krileon on topic Community builder registration - picture size
Because that's not a validation error. It's a server error. Your server is running out or resources trying to process the image. Set the maximum upload size to a smaller size so they're not uploading 9mb photos that consume 30mb+ memory to process. You can also try using ImageMagick if it's available as it's much more efficient than PHP GD2.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

9 years 4 months ago #265629 by julie.prod.web
Replied by julie.prod.web on topic Community builder registration - picture size
Hi,

Ok I understand.
Just I case,some things was rong with my server ? Did I need to change some settings ?
It's Php 5.4.38, post_max_size 64M, realpath_cache_size 2M, upload_max_filesize 64 M.
joomla 3.4.1 and CB 2.O.9.

Where I can find ImageMagick ? I just find soft to install to my computer...

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 4 months ago #265639 by nant

julie.prod.web wrote: Where I can find ImageMagick ? I just find soft to install to my computer...


It needs to be installed by your host.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 4 months ago #265657 by krileon
Replied by krileon on topic Community builder registration - picture size
Your memory limit is already set to 128mb. You'd need to increase this to something like 256mb to allow for large images to process as GD2 is pretty heavy on memory. For images to process they have to be exploded to raw data, which isn't really based off the filesize of the image but more so the width and height of the image. For example a 4000 x 4000 image has very large amount of pixel data to process so it takes a lot of memory. Contact your host if you're unsure how to increase the memory limit and for ImageMagick setup help.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum