Skip to Content Skip to Menu

CB Gallery Plugin Error

  • stilton
  • stilton
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
13 years 2 months ago #158701 by stilton
CB Gallery Plugin Error was created by stilton
I've installed the CB Gallery plugin to J1.6 and CB1.4 which works ok when I upload small photos but if I attempt any larger photos I continue to get:

Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 4839 bytes) in /home/xxxxx/public_html/administrator/components/com_comprofiler/imgToolbox.class.php on line 415

My php configuration on the webserver is set at 32mb for memory & file size. In CB Tab Manager for CB Gallery I have width & height set at 6000, maximum size at 5000, but get this error trying to upload a 2mb photo at 4839x3226.

Any help is greatly appreciated!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
13 years 2 months ago #158711 by krileon
Replied by krileon on topic Re: CB Gallery Plugin Error
The error is pointing to GD function imagecreatefromjpeg. This is happening because GD deals with the uncompressed version of the image in bitmap format, which is significantly larger then what you've uploaded. According to the error your memory limit is set to 48M, this is combined with everything else you're running at that time. So you could by time you upload the image only have 1MB available of memory. I recommend increasing your memory limit to 64M.


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.

  • stilton
  • stilton
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
13 years 2 months ago #158742 by stilton
Replied by stilton on topic Re: CB Gallery Plugin Error
Thanks for the response - I went in and increased the limit to 64mb as you suggested but still get a similar response when uploading a photo along the same specs as before:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 15176 bytes) in /home/xxxxxxx/public_html/administrator/components/com_comprofiler/imgToolbox.class.php on line 415

Should I keep trying to increase the memory limit?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
13 years 2 months ago #158751 by krileon
Replied by krileon on topic Re: CB Gallery Plugin Error

Should I keep trying to increase the memory limit?

Yes, that's about your only option. You're uploading a huge image and it will take massive memory to process in raw format through GD. If you used a 3rd party library like imagemagik (configured within CB configuration on images tab) it'd probably be fine. GD is fairly slow and inefficient, but is built into PHP so it's hard to not support it. Most hosts don't provide imagemagik and if they do it's usually on request. Probably going to need to push memory limit to around 200M. If it fails at that then there's some sort of other problem present.


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.

  • stilton
  • stilton
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
13 years 2 months ago - 13 years 2 months ago #158814 by stilton
Replied by stilton on topic Re: CB Gallery Plugin Error
Ok, my host installed Imagemagick on my VPS account and server shows its working however CB doesn't seem to recognize it showing "Not Installed" for some reason. I'm trying to enter the path myself but can't seem to get it this way either...

My VPS shows the following:

Imagemagik has been installed and is working properly:

bash-2.05b# /scripts/checkimagemagick
ok
bash-2.05b# /scripts/installimagemagick
ImageMagick installed ok
bash-2.05b# /usr/bin/convert --version
Version: ImageMagick 6.4.1 06/29/08 Q16 < www.imagemagick.org > www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
Last edit: 13 years 2 months ago by stilton. Reason: Server info

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

  • stilton
  • stilton
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
13 years 1 month ago #158893 by stilton
Replied by stilton on topic Re: CB Gallery Plugin Error
I've done everything I can think to do and still nothing will allow imagemagick to show as being installed by CB, but other programs recognize it??? I've used "auto" as well as several paths including /usr/bin/ and /usr/bin/convert/ and still nothing...any help is appreciated!

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

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn