Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2005
Posts: 50
F
journeyman
OP Offline
journeyman
F
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
R
Former Developer
Offline
Former Developer
R
Joined: Jun 2006
Posts: 9,242
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
F
journeyman
OP Offline
journeyman
F
Joined: Oct 2005
Posts: 50
OK tried that, just getting a blank page at the moment

Joined: Oct 2005
Posts: 50
F
journeyman
OP Offline
journeyman
F
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,071
Likes: 72
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,071
Likes: 72
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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Oct 2005
Posts: 50
F
journeyman
OP Offline
journeyman
F
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,071
Likes: 72
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,071
Likes: 72
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...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Oct 2005
Posts: 50
F
journeyman
OP Offline
journeyman
F
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
R
Former Developer
Offline
Former Developer
R
Joined: Jun 2006
Posts: 9,242
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
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
37748736 <-- is exactly 36M (1024 remember?)

but regardless, it needs an increase..

Joined: Jun 2006
Posts: 9,242
R
Former Developer
Offline
Former Developer
R
Joined: Jun 2006
Posts: 9,242
Well, not exactly, since it can't allocate the extra 12288 bytes laugh

Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
you sir, are correct

/me hangs head in shame for not adding the 2 numbers tongue

Joined: Oct 2005
Posts: 50
F
journeyman
OP Offline
journeyman
F
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,071
Likes: 72
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,071
Likes: 72
Then I edited the following value on php.ini: upload_max_filesize = 35M (was 2M)

Don't do that.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Oct 2005
Posts: 50
F
journeyman
OP Offline
journeyman
F
Joined: Oct 2005
Posts: 50
Ah, OK thanks Gizmo, changed that back now.

Joined: Jun 2006
Posts: 16,071
Likes: 72
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,071
Likes: 72
By doing that, you'd be giving people some pretty large range to fill your server up :x


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Scroll Up Button
by JAISP - 04/28/2021 7:39 AM
[Cannot Replicate] Unapprove Post Bug
by Larry Miller - 04/26/2021 10:07 AM
Just popping in
by Harold - 04/25/2021 9:05 PM
Moving Forum/Category location
by ECNet - 04/25/2021 12:11 PM
7.7.5 become member issue
by Ruben - 04/15/2021 10:06 AM
Who's Online Now
1 members (Ruben), 71 guests, and 54 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5