View Full Version : An Answer to the Error creating thumbnail! Error code: 127
October 13th, 2004, 12:13 AM
I was having the same issue as most users here. This is what I found. about a month ago I found some security issues with PHP so I upgraded it. I also had the edit my httpd.conf file for apache. I added these to lines of code to block the security problem that php has. your provider will have to edit the php.ini or edit your httpd.conf to make photopost work with Imagemagic.
php_admin_value safe_mode On
php_admin_value open_basedir /usr/home/domains/byuboyz.com/www:/tmp
If I remove these lines of code Photopost will work and not give me the error code 127.
I hope this helps
October 13th, 2004, 10:18 AM
Yep on our requirements page it states SAFE MODE MUST BE OFF.
October 13th, 2004, 11:25 AM
Do you know of a way around the security issues with safe mode off?
October 13th, 2004, 11:52 AM
Well generally most commercial programs try to follow secure programming guidelines to prevent attack.
It is a noted thing to call an external variable like Imagemagick you need to have SAFE MODE OFF.
There is no workaround.
You can usually use SAFE MODE ON with GD since its an internal function of PHP. However if your running VB3 integration you cant use the header include to pull the VB header over top of Photopost.
Its a give and take situation.
October 27th, 2004, 12:40 PM
My host just upgraded my server to PHP 4.3.8 and I am now having this same problem. My http.conf file has no reference to safe_mode in it at all! I can't figure out what is wrong. Help!
Processing may take a while... please be patient and wait the for FINISHED message...
Checking photo #12: image /home/virtual/site1/fst/var/www/html/gallery/data/500/7760mycarfinished2.jpg not found, removing from database... done.
Checking photo #13: rebuilding /home/virtual/site1/fst/var/www/html/gallery/data/500/7760myfinishedcar3-thumb.jpg from /home/virtual/site1/fst/var/www/html/gallery/data/500/7760myfinishedcar3.jpg ...
Error creating thumbnail! Error code: 127
"/usr/bin/mogrify" -size 100x62 -quality 70 -geometry 100x62 '/home/virtual/site1/fst/var/www/html/gallery/data/500/7760myfinishedcar3-thumb.jpg'
October 27th, 2004, 03:07 PM
If your host upgraded our server and most times they move you to a new server have you verified that mogrify exists at /user/bin/mogrify?
127 is error that it can not be found
October 27th, 2004, 03:22 PM
Yeah, that is the funny thing.... it is located in two places on my server because it is an Ensim Webpliance virtual server.... and neither seems to work.
Last night the following upgrades took place:
- perl 5.8.1
- apache 2.0.50
- bind 9.2.2
- curl 7.10.6
- gd 2.0.15
- ImageMagick to 5.5.6
- php 4.3.8
- postgres 7.3.4
- sendmail 8.12.10 (Ensim Customized)
- miva frontend 4.22
- miva expressa 4.11
- frontpage 5.0
- python 2.2.3
- proftpd 1.2.10rc1
Package that remains the same
- mysql 3.23.58
- spamassassin 2.63
- mailscanner 4.31.6
- clamav 0.72 (Clam AntiVirus)
I would love if someone could call me and we could discuss this over the phone... there are too many unknowns for me to go back and forth online and I would like to get this up ASAP.
October 27th, 2004, 04:22 PM
Does gd work? cause if that does not then you might want to check if safe mode is on. It can not be on for uploads to work right
October 27th, 2004, 04:29 PM
Ah-HAH! Safe Mode got turned on during the upgrade... now I just have to figure out how to turn it off. I will try GD also -- all I do is change the dropdown from ImageMacick to GD1 or GD2?
October 28th, 2004, 09:50 AM
Yes but you will still most likely have an issue
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.