PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Bug Reports (http://www.photopost.com/forum/photopost-pro-bug-reports/)
-   -   Files Deleting On Small Thumbnail Rebuild (http://www.photopost.com/forum/photopost-pro-bug-reports/140736-files-deleting-small-thumbnail-rebuild.html)

AstroDude August 31st, 2009 04:38 PM

Files Deleting On Small Thumbnail Rebuild
 
Here is what this script does when the path to ImageMagick doesn't work. It starts DELETING files!

I moved servers and ran all the other database scans individually and they all seemed to work but as soon as I tried to rebuild All thumbs it decides to start deleting files.

Processing may take a while... please be patient and wait the for FINISHED message...

Checking photo #4: image /home/extremea/public_html/gallery/data/500/28-Orion-Final.jpg not found, removing from database... done.
Checking photo #5: rebuilding /home/extremea/public_html/gallery/data/500/thumbs/28-Orion-Final-Annotated.jpg from /home/extremea/public_html/gallery/data/500/28-Orion-Final-Annotated.jpg ...

Error creating thumbnail! Error code: 126

Command:

"/usr/bin/convert/mogrify" +profile "*" -size 100x67 -quality 100 -geometry 100x67 -unsharp 10 '/home/extremea/public_html/gallery/data/500/thumbs/28-Orion-Final-Annotated.jpg'

Chuck S August 31st, 2009 09:08 PM

Yes that is a possibility it will delete that one file and stop with the DIEWELL command that is displaying the message.

If you move servers part of the move process involves making sure the proper image processors are selected etc.

http://www.photopost.com/forum/photo...rectories.html

Its always very important to check everything after a server move.

AstroDude August 31st, 2009 09:19 PM

Quote:

Originally Posted by Chuck S (Post 1252069)
Yes that is a possibility it will delete that one file and stop with the DIEWELL command that is displaying the message.

If you move servers part of the move process involves making sure the proper image processors are selected etc.

http://www.photopost.com/forum/photo...rectories.html

Its always very important to check everything after a server move.

If for some reason ImageMagick isn't setup right or you enter the wrong path and try the Rebuild All Thumbs it will delete a file every time you try that selection. I would imagine it would do it until there's nothing left.

This should not be happening and it needs fixing regardless of a server move given the way it occurs. I mean just because a path statement is wrong or ImageMagick isn't installed correctly makes it acceptable that the script starts deleting files from the server and database.

Chuck S August 31st, 2009 09:29 PM

One of the requirements to run the program is a functioning image processor. The whole code is dependent on this so its really not a bug. One of the things that move document states is check uploads. Therefore if the program was moved correctly and everything updates this issue would not be happening.

You could maybe try line 408 changing it to this

Code:

Content visible to verified customers only.
would instead be

Code:

Content visible to verified customers only.
But really if the program was properly installed this issue would not be here.

AstroDude August 31st, 2009 09:44 PM

Quote:


But really if the program was properly installed this issue would not be here.
I agree the issue wouldn't be here if it was setup perfectly the first time. Switching over to GD works just fine. It just doesn't seem reasonable that because of a simple path statement not being right, things start getting hacked out of the database and deleted off the server. I would have expected a better response from any script.

I'll try your code out.

Thanks

Chuck S August 31st, 2009 09:56 PM

okay well the change simply prevents it being deleted if the path is wrong to mogrify

&& is_file( $Globals['mogrify_command'] )

Therefore what this says if your only going to get a file deleted if the checkfile can not be created and mogrify does exist. So if it doesnt exist that if clause does not run.


All times are GMT -5. The time now is 10:26 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97