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 Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old December 20th, 2006, 06:47 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
5.62 Copies and deleting

Several glitches with copied images (copy image to another category):

1. Upload a new image to your gallery (cat 500)
2. while processing the upload, copy it to another category. Example: "MyCategory"
3. delete the images from your album

result: No thumbnail for the copy available in "MyCategory".
expected result: thumbnail must still be available -> don't delete thumbnail if a copy exists

1. create a new album "MyAlbum"
2. upload image to your usergallery (cat 500)
3. while processing the upload copy it to your new album "MyAlbum"
4. delete image from your usergallery

result: thumbnail of the copy is still visible, but showgallery.php shows 2 photos for the new album (it contains only one!)

expected result: album does contain only 1 image, so display that on showgallery.php


1. upload image to your usergallery (cat 500)
2. while processing the upload copy it to "MyAlbum" (still containing the 1 image from the instructions above).

result: showgallery.php is still showing 2 images for that album, but that's the correct value now.

3. delete image from your usergallery (cat 500)

result: thumbnail is gone, showgallery.php now shows 3 images for that album

expected result: show thumbnail, show correct image count (2).
Astaran is offline   Reply With Quote
Old December 20th, 2006, 09:29 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,790
Quote:
1. Upload a new image to your gallery (cat 500)
2. while processing the upload, copy it to another category. Example: "MyCategory"
3. delete the images from your album

result: No thumbnail for the copy available in "MyCategory".
expected result: thumbnail must still be available -> don't delete thumbnail if a copy exists
I suppose you mean delete one image like in the members gallery did that and the one in my corals category thumbnail appeared fine no issue. If there is some twist you are not telling me let me know here but using the steps defined it works fine. I see this block of code in editphoto and adm-photo which moves the image to the next cat if you delete the original

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 20th, 2006, 09:32 AM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,790
Quote:
1. create a new album "MyAlbum"
2. upload image to your usergallery (cat 500)
3. while processing the upload copy it to your new album "MyAlbum"
4. delete image from your usergallery

result: thumbnail of the copy is still visible, but showgallery.php shows 2 photos for the new album (it contains only one!)

expected result: album does contain only 1 image, so display that on showgallery.php

Given the result of this test I did not upload another image since my category count is correct there was no need to do the 3rd test
http://www.reeftalk.com/gallery/show...y.php/cat/3085

Same function is issued and we call upgradecategories in the delete function of both files and my album shows 1 photo

Given this test shows the correct count there is no need to do the 3rd test
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 20th, 2006, 09:40 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Quote:
Originally Posted by Chuck S View Post
http://www.reeftalk.com/gallery/show...y.php/cat/3085

Same function is issued and we call upgradecategories in the delete function of both files and my album shows 1 photo

Given this test shows the correct count there is no need to do the 3rd test
Have a look at: http://www.reeftalk.com/gallery/show...user/1/cat/500
It's showing 2 photos there, but it's only one in there.

EDIT: Thumbnail is also missing

Last edited by Astaran; December 20th, 2006 at 10:01 AM.
Astaran is offline   Reply With Quote
Old December 20th, 2006, 10:19 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Quote:
Originally Posted by Chuck S View Post
I suppose you mean delete one image like in the members gallery did that and the one in my corals category thumbnail appeared fine no issue. If there is some twist you are not telling me let me know here but using the steps defined it works fine. I see this block of code in editphoto and adm-photo which moves the image to the next cat if you delete the original

<snip>
I'll try it again and post more detailed instructions if it's reproducible.
Astaran is offline   Reply With Quote
Old December 20th, 2006, 12:45 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,790
Not a problem buddy
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 20th, 2006, 01:10 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
I hope to get feedback until tomorrow evening. But at least the use cases 2 and 3 should be reproducible on your installation, aren't they?
Astaran is offline   Reply With Quote
Old December 20th, 2006, 01:29 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,790
Nope none of these are reproduceable and I clearly showed you a link showing the count is correct.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 20th, 2006, 01:31 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Please have a look at 5.62 Copies and deleting
Astaran is offline   Reply With Quote
Old December 20th, 2006, 01:38 PM   #10 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,858
For the first one, I need to know how you are deleting the photo. In adm-photo.php at lines 305 we do look for copies and move an image to a copy if the original is deleted; but maybe this isnt the code being executed depending on how you are deleting the original.

As for counts, it may just be an issue of updating a cache; but I need to know where you are deleting from so we can trace the code properly.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old December 20th, 2006, 01:55 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
I'm also waiting for feedback regarding the first one (this has been reported by our support staff).

2,3 are using editphoto.php. That's also my guess for the first one, but I'm not sure.
Astaran is offline   Reply With Quote
Old December 20th, 2006, 02:19 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,790
The copy code is the same throughout editphoto or adm-photo on copying images.

Now in reference to what Michael states good point since I dont use the cache. I show this in both adm-photo and editphoto

Code:
Content visible to verified customers only.
Now it seems to be the correct function would be to REVERSE these two things so upgradecategories is performed BEFORE we refresh the cache and this should eleviate your issue.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 20th, 2006, 02:22 PM   #13 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,858
I made that change above and am testing here on photopost.com (with that change) and #1 works as expected by coping the image to the copy location.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old December 20th, 2006, 03:47 PM   #14 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Thanks, I'll test this.
Regarding #2 and #3:
I checked the "photos" field in the categories table. After the upload it's value is "1" (correct). After deleting the original image the other category (containing only the copy) is showing "2".

So upgradecategories() must somehow count incorrectly.
Astaran is offline   Reply With Quote
Old December 20th, 2006, 03:51 PM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,790
The only issue here is your using the category cache. I posted that the lines above in my post need to be switched around so upgradecategories is called first

I think you will find if you turn off the category cache the count is correct and in this case the change I noted will correct the issue
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 20th, 2006, 04:10 PM   #16 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Chuck, I made that changes.

First test:
category cache enabled, above changes applied, using editphoto to delete image

result: as described above. "photos" field in categories table has a value of "2".

Second test:
category cache disabled, changes added, using editphoto to delete image

result: as described above. "photos" field in categories table has a value of "2".

If you want to have a look:
http://fotogalerie.herr-der-ringe-fi...lery.php/cat/2

I'm speaking of the subcategory called "test".
Astaran is offline   Reply With Quote
Old December 20th, 2006, 04:27 PM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,790
We have to try and replicate that both Michael and I thus far have correct category counts. I will test further
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 20th, 2006, 04:31 PM   #18 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Your "reef pics" album is showing the same effect. Although your fix wasn't in place when you did that test:
http://www.reeftalk.com/gallery/show...user/1/cat/500

Let me know if you need more detailed instructions or a test account.
Astaran is offline   Reply With Quote
Old December 21st, 2006, 04:20 AM   #19 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Ok, here are more detailed instructions. It turns out that report #1 and report #2 are basically the same issue. Both testers used albums and no categories.

1. upload image, choose user's gallery
2. select a private album as optional category
3. check your usergallery. image is there.
4. check your album, image is there and showing as the thumbnail of your album
5. use editphoto to delete the image from your user's gallery
6. open your user's gallery -> album thumbnail is gone. Photo count has been increment by one.

If that will be fixed, report #3 is probably also fixed as this is using the same functions.
Astaran is offline   Reply With Quote
Old December 21st, 2006, 10:44 AM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,790
Try this test out in editphoto.php code changes in bold

// removed
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Michael P; December 21st, 2006 at 07:43 PM.
Chuck S is online now   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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting gallery imported_Kamran How Do I? - vBulletin 3.5.X 10 March 3rd, 2007 01:28 PM
Deleting pics? rareclownfish Photopost Pro How Do I...? 1 April 5th, 2006 04:34 PM
License Clarification (Development copies) Axe General Discussion 2 November 22nd, 2005 02:35 PM
Deleting Photos rstan Photopost Pro Installation & Upgrades 1 April 12th, 2005 09:16 AM


All times are GMT -5. The time now is 08:59 AM.

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