|
Joined: Oct 2005
Posts: 50
journeyman
|
journeyman
Joined: Oct 2005
Posts: 50 |
Hello, I have installed ImageMagick on my linux server, and checked that it works OK from the terminal. I then entered the paths to mogrify and convert into the UBB control panel, which in this case was...
/usr/local/bin/convert /usr/local/bin/mogrify
I then selected to use ImageMagick on the gallery section of the control panel.
However, when I try to post new images to the gallery pages on my forum they just appear as broken links. Checking the gallery directory the image files are not being added there either (the permissions for that directory and all enclosed directories were set to 777 as instructed). Any ideas what is going wrong?
Thanks, Phil
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
First thing would be to test imagemagick. You can the ending url to this while logged in as admin to test it:
ubbthreads.php?ubb=captcha&t=im&test=1
|
|
|
|
Joined: Oct 2005
Posts: 50
journeyman
|
journeyman
Joined: Oct 2005
Posts: 50 |
OK tried that, just getting a blank page at the moment
|
|
|
|
Joined: Oct 2005
Posts: 50
journeyman
|
journeyman
Joined: Oct 2005
Posts: 50 |
...though when I tested imagemagick from the command line I could generate an image fine. I would use GD2 instead (which I was using fine in 7.2.2) but since upgrading to 7.3, using GD2 I keep getting a message "fatal error: Allowed memory size of 33554432 bytes exhausted" which I have noticed a few other users posting too. Even though the files were well under 33554432 bytes and the permissions allowed for fair sized images. Anyway, I would rather get ImageMagick working than GD2 if possible.
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
It's total memory being utilized at the time of execution via php; you'll want to report it to your webhost so they can increase the value.
|
|
|
|
Joined: Oct 2005
Posts: 50
journeyman
|
journeyman
Joined: Oct 2005
Posts: 50 |
I have a dedicated server with my webhost which has full root access, is this something I can adjust myself?
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Edit your /etc/php.ini, change max_execution_time (i think is what it's named) and change it to 35M or so? Depends what it is now...
|
|
|
|
Joined: Oct 2005
Posts: 50
journeyman
|
journeyman
Joined: Oct 2005
Posts: 50 |
Gizmo, I edited the following line in php.ini: memory_limit = 36M (was 32M)
No good.
Then I edited the following value on php.ini: upload_max_filesize = 35M (was 2M)
No good either.
Still getting this message:
Fatal error: Allowed memory size of 37748736 bytes exhausted (tried to allocate 12288 bytes)
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Looks like you need to bump it up a bit more. Your memory_limit is 36M, and it's trying to allocate a bit over 37 megs.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
37748736 <-- is exactly 36M (1024 remember?)
but regardless, it needs an increase..
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Well, not exactly, since it can't allocate the extra 12288 bytes
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
you sir, are correct /me hangs head in shame for not adding the 2 numbers
|
|
|
|
Joined: Oct 2005
Posts: 50
journeyman
|
journeyman
Joined: Oct 2005
Posts: 50 |
Right, I have gone crazy and upped the php.ini to: memory_limit = 48M, and that seems to have fixed GD2 now, fingers crossed. Many thanks.
Seems I will have to stick with GD2, could never get ImageMagick to work, it did not write the images into the gallery directories for some reason. I could get it to work from the terminal and the paths were definitely correct, does it need any permission changes or anything? All gallery directories were set to cmod 777.
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Then I edited the following value on php.ini: upload_max_filesize = 35M (was 2M)
Don't do that.
|
|
|
|
Joined: Oct 2005
Posts: 50
journeyman
|
journeyman
Joined: Oct 2005
Posts: 50 |
Ah, OK thanks Gizmo, changed that back now.
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
By doing that, you'd be giving people some pretty large range to fill your server up :x
|
|
|
1 members (Ruben),
1,277
guests, and
207
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|