PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old March 15th, 2011, 04:26 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2011
Location: Neenah, WI
Posts: 66
Send a message via AIM to jamiedolan
Error code 1 after server transfer

Hello;

I moved our site to a new server a few days ago. I just realized I am getting an error code 1 upon image processing. It reports:

Error creating thumbnail! Error code: 1
Command:
"/usr/bin/mogrify" -thumbnail 100x100^ -quality 100 -gravity center -extent 100x100 -unsharp 10 '/home/pawdogs/public_html/photopost/data/1/thumbs/IMG_6567.jpg'

I switched to GD2, it uploaded the image, then came back with this error:
"Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12000 bytes) in /home/pawdogs/public_html/photopost/image-inc.php on line 152"

Logged in as the user that this site runs under, I took a test photo and ran it through mogrify on the command line to see if it was working:

pawdogs@pawdogs.com [~/www/photopost/data/1]# ls -la |grep testimage.jpg
-rw-r--r-- 1 pawdogs pawdogs 93568 Mar 15 17:08 testimage.jpg
pawdogs@pawdogs.com [~/www/photopost/data/1]# /usr/bin/mogrify -thumbnail 100x100 -quality 100 -gravity center -extent 100x100 -unsharp 10 /home/pawdogs/public_html/photopost/data/1/testimage.jpg
pawdogs@pawdogs.com [~/www/photopost/data/1]# ls -la |grep testimage.jpg
-rw-r--r-- 1 pawdogs pawdogs 8364 Mar 15 17:08 testimage.jpg
pawdogs@pawdogs.com [~/www/photopost/data/1]#

You can see it must have processed the image, as the size was reduced.

The path to mogrify in the config is:
/usr/bin/mogrify

Checked the server:
pawdogs@pawdogs.com [~/www/photopost/data/1]# which mogrify
/usr/bin/mogrify

Mogrify is set to 766.

Check permissions:
pawdogs@pawdogs.com [~/www/photopost]# ls -la |grep data
drwxrwxrwx 9 pawdogs pawdogs 4096 Feb 18 19:39 data/
pawdogs@pawdogs.com [~/www/photopost]# cd data
pawdogs@pawdogs.com [~/www/photopost/data]# ls -la
total 36
drwxrwxrwx 9 pawdogs pawdogs 4096 Feb 18 19:39 ./
drwxr-xr-x 12 pawdogs pawdogs 4096 Mar 15 16:12 ../
drwxrwxrwx 5 pawdogs pawdogs 4096 Mar 15 17:12 1/
drwxrwxrwx 5 pawdogs pawdogs 4096 Feb 18 18:43 2/
drwxrwxrwx 5 pawdogs pawdogs 4096 Mar 5 21:47 500/
drwxr-xr-x 2 pawdogs pawdogs 4096 Feb 18 18:43 avatars/
-rw-r--r-- 1 pawdogs pawdogs 0 Feb 18 18:43 index.html
drwxrwxrwx 2 pawdogs pawdogs 4096 Feb 18 19:39 medium/
drwxrwxrwx 2 pawdogs pawdogs 4096 Feb 18 19:39 mini/
drwxrwxrwx 2 pawdogs pawdogs 4096 Feb 18 19:39 thumbs/
pawdogs@pawdogs.com [~/www/photopost/data]# cd 1
pawdogs@pawdogs.com [~/www/photopost/data/1]# ls -la
total 34460
drwxrwxrwx 5 pawdogs pawdogs 4096 Mar 15 17:12 ./
drwxrwxrwx 9 pawdogs pawdogs 4096 Feb 18 19:39 ../

drwxrwxrwx 2 pawdogs pawdogs 4096 Mar 5 21:52 medium/
drwxrwxrwx 2 pawdogs pawdogs 4096 Feb 23 15:35 mini/
drwxrwxrwx 2 pawdogs pawdogs 4096 Mar 15 17:12 thumbs/

Permissions and ownership / group all look good on every folder I checked.

ImageMagick was installed via this yum package:
ImageMagick.x86_64 : An X application for displaying and manipulating images.

I'm running out of things to try; I read through old forum posts, I'm not seeing any other ideas.

Thanks.
jamiedolan is offline   Reply With Quote
Old March 15th, 2011, 06:17 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
I would visiting the sticky thread in this very support forum on how to move servers.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 15th, 2011, 07:56 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2011
Location: Neenah, WI
Posts: 66
Send a message via AIM to jamiedolan
Quote:
Originally Posted by Chuck S View Post
I would visiting the sticky thread in this very support forum on how to move servers.
I'm not finding anything in there that I missed. I've rechecked the paths, recheck all of the permissions. I've compared all of the permissions to what was working on the other server and I can't find anything that is different. I've done / re-checked all the other steps, at least twice.

I left Full path to Header Include file / Footer and Full path to HTML file containing head tags, blank. I don't think I was ever using anything in those fields. I also have the watermark field blank, but the watermarks are turned off. Do I need anything in these fields?

I've searched the entire database for the old paths and can't find a single entry.

Any idea what else I can try?

Thanks
jamiedolan is offline   Reply With Quote
Old March 15th, 2011, 08:25 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
well what happens if you set your image processor to GD2?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 15th, 2011, 08:30 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jan 2011
Location: Neenah, WI
Posts: 66
Send a message via AIM to jamiedolan
Quote:
Originally Posted by Chuck S View Post
well what happens if you set your image processor to GD2?
I just switched to GD2 again and tried it and I was able to upload a photo.

Previously when I tried GD2, when uploading an image I was given a PHP error:

"Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12000 bytes) in /home/pawdogs/public_html/photopost/image-inc.php on line 152"

Do you think I should compile a new copy of ImageMagick, even though ImageMagick works on the command line?
jamiedolan is offline   Reply With Quote
Old March 15th, 2011, 09:06 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jan 2011
Location: Neenah, WI
Posts: 66
Send a message via AIM to jamiedolan
I tried uploading and processing a slightly larger image and I got the same PHP error again, with GD2:

"Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 3000 bytes) in /home/pawdogs/public_html/photopost/image-inc.php on line 152"
jamiedolan is offline   Reply With Quote
Old March 15th, 2011, 10:01 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
You can try the suggestions on the forums here to raise php memory and limit your max image dimensions if you continue using PHP but yes if you want to use imagemagick you can try recompiling a new copy on the server.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 15th, 2011, 11:09 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jan 2011
Location: Neenah, WI
Posts: 66
Send a message via AIM to jamiedolan
Quote:
Originally Posted by Chuck S View Post
You can try the suggestions on the forums here to raise php memory and limit your max image dimensions if you continue using PHP but yes if you want to use imagemagick you can try recompiling a new copy on the server.
Well, no more YUM for me. This is the second time I've struggled for hours to solve a weird problem that magically went away when I downloaded source and compiled it myself (which took a whole 10 minutes).

At least I must have had the other settings and permissions correct, as it all started working as soon as I finished installing the new copy of ImageMagick.

So for anyone else on a Centos box with this issue, just download and compile ImageMagick yourself.

Thanks for the help.

Jamie
jamiedolan is offline   Reply With Quote
Old March 16th, 2011, 07:55 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Well that error is very detailed here on the forums. It can only be a permissions error which means wrong data server path permissions or imagemagick is broken. You went through all the steps checking path permissions verified uploads work using GD2 so you knew in the end Imagemagick was broken.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 16th, 2011, 02:27 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Jan 2011
Location: Neenah, WI
Posts: 66
Send a message via AIM to jamiedolan
Quote:
Originally Posted by Chuck S View Post
imagemagick is broken. You went through all the steps checking path permissions verified uploads work using GD2 so you knew in the end Imagemagick was broken.
I suspected early on, based on what I read here (I did read many threads on the issue) that it was a ImageMagick issue. However, ImageMagick (mogrify) worked to build a thumbnail from the command line; making me think all was well with mogrify.

So for some reason, at least in my situation, having mogrify work from the command line (same command as photopost uses) doesn't mean it will work in a php application.
jamiedolan is offline   Reply With Quote
Old March 16th, 2011, 02:31 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
well when using it from the command line also always make sure you run the same command that is used in the application as maybe you are using a setting in the program that the version of mogrify on that particular server does not support. That is why recompiling works as well. Like older mogrify installs may not support all the new options.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Error500 - Internal server error Geiri Photopost Pro Bug Reports 32 September 5th, 2009 04:39 PM
after transfer to new server: "No Image specified" after uploading tcbworld Installs and Upgrade - vBulletin 3.6x 1 July 4th, 2007 05:14 PM
Problem with server transfer! Manuel Santos Photopost Pro Bug Reports 9 May 2nd, 2007 07:29 PM
Server Transfer Upgrade needed? myuption Installs and Upgrade - vBulletin 3.6x 3 November 21st, 2006 11:02 AM
Error code: 1 - Windows 2003 Server flumpydog General Discussion 2 August 4th, 2004 07:00 PM


All times are GMT -5. The time now is 01:37 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0