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

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Old October 16th, 2009, 04:16 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Location: Duesseldorf, Germany
Posts: 28
Statistic shows wrong value of sold ads

Hi Chuck,

I've experienced a weird error. The statistic shows a ridiculous high value for sold ads.
What could happend? And how can the statistic set back (or can be new build)

Thanks and regards,

Knut
Attached Images
File Type: jpg stats.jpg (9.3 KB, 5 views)
wolven is offline   Reply With Quote
Old October 16th, 2009, 04:34 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,938
I will look at the code to see if I see anything but yes thats a weird error.
__________________
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 October 16th, 2009, 09:54 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Oct 2006
Posts: 426
Chuck,
Remember I had something like this occur where the dollar value was ridiculously high. Obviously I could go into the database and try to track down that table and value and change it manually, but might be nice to have that option in the admin panel as well.

Thanks!
KenDude is offline   Reply With Quote
Old October 17th, 2009, 06:40 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,938
Yes one can always manually do it. we can always look at options when in a beta.
__________________
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 October 17th, 2009, 09:15 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Location: Duesseldorf, Germany
Posts: 28
I could change it in the stats table, but it doesn't explain the occurence of the error. I'll just wait on Chuck's findings.

Regards, Knut
wolven is offline   Reply With Quote
Old October 17th, 2009, 04:02 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,938
I am not seeing anything strange in the code

I mean the code to update the stats only happens in 3 places. 2 to add and 1 to subtract

In sendnotice when winning auctions are done stats are added to

In editproduct when an ad is sold the amount is added and when you hit resell the amount id subtracted

Thats it.
__________________
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 October 17th, 2009, 06:06 PM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Location: Duesseldorf, Germany
Posts: 28
It' s even stranger. It seems that no sold ads are added to the stats anymore. The value stands still at this huge point. I must verify that...

Regards, Knut

EDIT: I set it back to a reasonable value from backup. The only thing I could verify was, it happend suddently.

Last edited by wolven; October 17th, 2009 at 06:17 PM.
wolven is offline   Reply With Quote
Old October 17th, 2009, 06:57 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,938
well the stats table has a maximum int value of 12 characters which is like

999,999,999

So unless someone entered some ridiculous price I cant see anything weird happening unless your mysql has some issue. All we do is a simple query to set the amt_sold to that amount plus that price of the ad

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 offline   Reply With Quote
Old October 19th, 2009, 06:58 AM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Location: Duesseldorf, Germany
Posts: 28
After I reset it to a reasonable value, I found it today again at 7 million something. I scanned all ads and can't find any high price in it.

I wonder if XCache could make something wrong?
Or someone is making "fun" but for that I must understand, when the price is add to the statistics. Would it even be possible for users to manipulate the price of a sold ad?

Regards, Knut
wolven is offline   Reply With Quote
Old October 19th, 2009, 08:08 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,938
If users can edit an ad sure they can redo the price sure

I cant say about XCACHE never used it personally. I guess you could try disabling it to see if the behavior continues.

Like stated I dont see any issues particularly with the code since all that happens here is if an item is sold me update the stats to be stat amount plus price etc. its a pretty cut and dry simple query.
__________________
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 October 19th, 2009, 05:28 PM   #11 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Location: Duesseldorf, Germany
Posts: 28
Now I exchanged one prob by another.

In order to check whether someone hoaxes me, I disabled Editing Ads by users.
But now noone can mark the ads as sold anymore.
I get an "You have no permission" and the backlink leads to Nirvana.
This is not really understandable (besides it's the same php to realize those features). Marking sold is not as invasive as editing.

Any hints?

Thanks!

Regards, Knut

Last edited by wolven; October 19th, 2009 at 05:35 PM.
wolven is offline   Reply With Quote
Old October 19th, 2009, 08:23 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,938
well not allowing users to edit anything with the ad the issue is that they dont have permission. I can see in the future how to separate those types of permissions.
__________________
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 October 22nd, 2009, 10:02 AM   #13 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Location: Duesseldorf, Germany
Posts: 28
Chuck, I build my own solution by change the input field in editproduct to hidden. Users are now allowed to edit, but can't change the price (that easy).

Regards, Knut
wolven is offline   Reply With Quote
Old October 22nd, 2009, 11:21 AM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,938
Not a problem so your solution is users are playing with you it seems
__________________
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 October 22nd, 2009, 11:34 AM   #15 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Location: Duesseldorf, Germany
Posts: 28
Thats what I suppose, I have no other explaination.
Thank you for your instant help here.

I'm not sure whether I found a bug or not.
The option "Allow users to move/delete their own images" in Admin Options show in editproduct a checkbox for delete as last line. When I check this the whole ad is gone. Is that the supposed behaviour?
A change in Admin Options to "no" makes this line disappear and the ad is not deleteable by users anymore (what I really prefer!)
The question is: Do we have a misleading phrase (maybe from photopost gallery) or did I misinterpret that? Or do we have a litte bug in there?

Regards, Knut
wolven is offline   Reply With Quote
Old October 22nd, 2009, 11:44 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,938
Of course it is the intended behavior it is the delete box as it says. what yours does not say delete?

This is right in the template

Code:
Content visible to verified customers only.
Now if I look up the phrase it says the same thing it says on my site

Code:
Content visible to verified customers only.
Quote:
If you want to <b>delete</b> this ad completely, check this box
__________________
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 October 22nd, 2009, 11:52 AM   #17 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Location: Duesseldorf, Germany
Posts: 28
Ok, understood

But am I right, that this checkbox is direct related to "Allow Users to delete their own images in Admin options? If so, than it's at least misleading.
But no problem, when known what it stands for.

Thanks again Chuck.

Last edited by wolven; October 22nd, 2009 at 12:42 PM.
wolven is offline   Reply With Quote
Old October 22nd, 2009, 12:46 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,938
Yes allow users to move delete images is the option

I dont in any way see how thats misleading its pretty straight forward. If you allow users to move or delete there stuff they can do just that.
__________________
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 October 23rd, 2009, 12:40 AM   #19 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: Osaka
Posts: 158
It should read "Allow users to delete their own Adverts"
benFF is offline   Reply With Quote
Old October 23rd, 2009, 06:43 AM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,938
Is that really english?

Ben your talking about the admin option and if I changed that word it would be ads not adverts. I do not know anyone who used that word. It is should for advertisments I know.

My comment is based on the actual wording the user sees. Wolven thought it was misleading in someway that his ads would actually be deleted if he hit that checkbox yet the wording is quite clear there.

Quote:
If you want to delete this ad completely, check this box
__________________
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
Sold Ads Disappearing joeyhavlock Classifieds Bug Reports 6 September 13th, 2009 03:23 PM
Sold Ads joeyhavlock Classifieds How do I...? 1 July 23rd, 2007 08:04 PM
Sold Ads Not Deleteing, Ads not expiring CajunForSale Classifieds How do I...? 4 July 12th, 2007 09:36 AM
Sold Ads Feature michaelsilvia Classifieds Suggestions 2 March 17th, 2007 01:41 PM
reset the amount sold statistic to zero drew Classifieds How do I...? 0 February 5th, 2006 02:40 PM


All times are GMT -5. The time now is 03:52 PM.

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