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

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


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
journeyman
F Offline
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,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
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...


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
journeyman
F Offline
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
R
Former Developer
Former Developer
R Offline
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
SD Offline
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
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Well, not exactly, since it can't allocate the extra 12288 bytes laugh

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
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 tongue

Joined: Oct 2005
Posts: 50
F
journeyman
journeyman
F Offline
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,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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
journeyman
F Offline
Joined: Oct 2005
Posts: 50
Ah, OK thanks Gizmo, changed that back now.

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)