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 Rate Thread Display Modes
Old January 6th, 2011, 04:17 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jun 2010
Posts: 142
Post count

Hi.

When I delete an ad from Expired queue in admin panel, then the users post count is set to: 4.294.967.295 in vbulletin.

I have to manually change users post count to 0 everytime.

How do I fix that?
Simka is offline   Reply With Quote
Old January 6th, 2011, 05:42 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
I have tested this in my vb and do not see any issues. The file calls this

Code:
Content visible to verified customers only.
That just passes a function line the word minus and a userid which does this code in your forum integration

Code:
Content visible to verified customers only.
It is a very simplistic function

If your minus out one post your simply issuing a query in vbulletin like this

Code:
Content visible to verified customers only.
Thats an example of say a query that would be issued for a particular user. I see no how a users post count could get messed up with that query as all that says is essentially user posts is going to be set to user posts minus 1.

I think there would have to be more to the story here.

Like for instance try doing a query like right above with say your userid with your specific site info and see if your vb posts count works right. If it doesnt then I think you have a mysql bug with your specfic mysql. I dont think there is anything unsound query wise.
__________________
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 January 7th, 2011, 03:58 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jun 2010
Posts: 142
And if the user have 0 posts, then what happens?
Simka is offline   Reply With Quote
Old January 7th, 2011, 05:13 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
The user would never happen a user have 0 posts I think as there post count would have to been increased when they posted the ad if your using post increment. If your not using the post increment feature then nothing would be altered.

so what happens on your server if you issue such a query. Nothing happens on mine. What we are trying to get here is there some type of mysql bug in your mysql version. The query is valid in the software.
__________________
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 January 9th, 2011, 09:00 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jun 2010
Posts: 142
If I run this query on a user with 0 posts, then he get post count: 4.294.967.295

UPDATE user SET posts=posts-1 WHERE userid=1234
Simka is offline   Reply With Quote
Old January 9th, 2011, 09:00 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jun 2010
Posts: 142
I dont increase users post count when the create an ad, so I have lots of users with 0 posts.
Simka is offline   Reply With Quote
Old January 9th, 2011, 09:12 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Hmm maybe try line 620 of adm-misc.php which is this

Code:
Content visible to verified customers only.
change to this

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 January 9th, 2011, 09:18 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jun 2010
Posts: 142
That was already there:

Code:
Content visible to verified customers only.
Simka is offline   Reply With Quote
Old January 9th, 2011, 09:31 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
your looking at line 69 not 620 search for inc_user again
__________________
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 January 9th, 2011, 09:31 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Jun 2010
Posts: 142
Sorry, it wasnt line 620 :-)

I have changed it now, and testing
Simka is offline   Reply With Quote
Old January 9th, 2011, 09:34 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jun 2010
Posts: 142
Quote:
Originally Posted by Chuck S View Post
your looking at line 69 not 620 search for inc_user again
Thx, it is working now
Simka is offline   Reply With Quote
Old January 9th, 2011, 10:07 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
enjoy your weekend.
__________________
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 August 14th, 2011, 12:24 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: May 2003
Location: Spring Branch, Texas
Posts: 391
Wow, I've had this problem for YEARS -- in fact I was looking to hire a coder to create a cron job to reset all these posts counts to zero. But I've had to manually reset these post counts counts for 4 or more years. I complained about it here a long time ago.

This has been a plague that I ALWAYS thought was caused by PP Classifieds but only just recently proved it on my website.

I didn't have the exact same original coding as Chuck S. detailed in his fix. I had the following at line 620 of adm-misc.php:

Code:
Content visible to verified customers only.
I changed my coding as shown above. I'm hoping and praying that his has fixed the issue.

I'm tired of having to fix all these posts counts every week. Earlier this year I forgot to deal with this issue for a couple of months and I had over 150 members with post counts of 4,294,967,295 and I had to manually go through and fix each of them.
creativepart is offline   Reply With Quote
Old August 14th, 2011, 03:11 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
I do not ever see in this thread that there was ever an issue we found in our product the line is correct all it does is minus a post
__________________
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 September 4th, 2011, 09:17 AM   #15 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Location: Southern Germany
Posts: 213
Have the same issue, now I just disabled increment of post count, hope this helps.
Ramses is offline   Reply With Quote
Old September 4th, 2011, 10:36 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
That is what that option is for to disable that feature
__________________
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 September 5th, 2011, 05:32 PM   #17 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Location: Southern Germany
Posts: 213
Quote:
Originally Posted by Chuck S View Post
That is what that option is for to disable that feature
Yep, and if all of the fixes above not work the only solution to surround this bug.
Ramses is offline   Reply With Quote
Old September 5th, 2011, 07:24 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
well the only bug would be not having the if clause around the line and this was a fixed issue some time back.
__________________
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 September 16th, 2011, 02:32 PM   #19 (permalink)
Member
Verified Customer
 
Join Date: May 2003
Location: Spring Branch, Texas
Posts: 391
Just reporting back that I had this issue for years. I had the post count increment turned off the entire time but still had this issue. I changed the coding as I posted above in post #13 (referencing the original fix in line #7) and it has fixed my problem long term now.

It's been a whole month and I've had no members with 4 billion posts.
creativepart is offline   Reply With Quote
Old September 16th, 2011, 08:49 PM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
enjoy your weekend.
__________________
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
Post count cgdev1 How Do I? - vBulletin 3.7x / 3.8x 0 June 22nd, 2010 01:40 AM
Post count not working? SIINSI Classifieds How do I...? 6 March 29th, 2006 06:49 PM
Admin Post Count ghinton Photopost Pro How Do I...? 3 December 31st, 2005 04:35 PM
Remove Post Count. Kirk Voclain Photopost Pro How Do I...? 1 June 29th, 2005 08:38 AM


All times are GMT -5. The time now is 05:09 PM.

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