View Full Version : New Server, getting this error
February 17th, 2008, 08:21 PM
I was recently move to a new server by my webhost and I am now getting this error when trying to upload. It says the images are processing and then BAM this...
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/scrapsn/public_html/photopost/image-inc.php on line 102
February 17th, 2008, 08:54 PM
You apparently do not have GD2 installed on this new server or jpg support for GD2 installed, Try contacting your host to see if Imagemagick is installed on the server as you need one of the two image processors to run Photopost.
February 18th, 2008, 07:16 AM
OK according to my webhost this server has Imagemagick which isn't what I had originally set my photopost to. I used GD2. How easy is it to switch it to Imagemagick? This is the message she sent me.
ImageMagick is already installed in your VPS.
-bash-3.1# which mogrify
-bash-3.1# which convert
February 18th, 2008, 07:56 AM
Ok just a note. I went into my Photopost Global Options and changed it to Imagemagick from the drop down menu. I get a different error now.
Error creating thumbnail! Error code: 127
"/usr/bin/X11/mogrify" +profile "*" -size 113x150 -quality 100 -geometry 113x150 -unsharp 10 '/home/scrapsn/public_html/photopost/data/500/thumbs/BethysB.jpg'
February 18th, 2008, 08:09 AM
In Admin => Edit Config make sure you set the correct path to mogrify in the settings.
You should be able to use it then. 127 error means we cant find mogrify and if you look at the path you will see why.
February 18th, 2008, 08:17 AM
Ok I've tried to change that and I click Save changes but it stays as /usr/bin/X11/mogrify no matter how many times I try. After I click save changes it says
Warning: fopen(/home/scrapsn/public_html/photopost/config-inc.php) [function.fopen]: failed to open stream: Permission denied in /home/scrapsn/public_html/photopost/adm-misc.php on line 2490
Warning: fwrite(): supplied argument is not a valid stream resource in /home/scrapsn/public_html/photopost/adm-misc.php on line 2491
Warning: fclose(): supplied argument is not a valid stream resource in /home/scrapsn/public_html/photopost/adm-misc.php on line 2492
Click here if you do not want to wait any longer
(or if your browser does not automatically forward you)
February 18th, 2008, 08:34 AM
You have not per our installation instructions set your config files to writable which is 666 permissions. FTP to the server and in your photopost directory correct the permissions and then you should be okay to save your path.
February 18th, 2008, 08:53 AM
AHA THAT'S IT. It works. Thank you. Phew! hugs
February 18th, 2008, 08:55 AM
Enjoy and let us know if we can be of further assistance.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.