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 August 4th, 2005, 01:30 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 49
All new adds being deleted over night.

Similar to the problem before. I now have sendnotice.php running nightly. All the old ads are working properly. However, users are reporting that new ads are deleted overnight. I'm sure when the sendnotice.php runs.

You can view my board right now, 10 ads posted today in Ferrari V-6 & V-8, but none before that since July 30th, which is when you fixed the software. All the ads posted those days since have been removed. Look tomorrow and I bet those 10 ads are gone.

Thanks,
rob
robferrari is offline   Reply With Quote
Old August 4th, 2005, 03:01 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
Hello

All we did last time was upgrade you to 2.41 and set your ads which had expired like to sometime this week is all I remember which I had stated.

The code is absolute in this respect that if the enddate is less than now then they get expired as I showed previously.

I would bet your 10 ads will still be there tomorow as there enddate is not passed. This is the exact query and there is no way they can be deleted if what is in the enddate is not less than the unixtimestamp of now.

$query = "UPDATE {$Globals['pp_db_prefix']}products SET approved=2,status='$today' WHERE enddate < $today AND isauction=0";
$result = ppmysql_query($query,$link);
__________________
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 August 5th, 2005, 08:18 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 49
Quote:
Originally Posted by omegatron
I would bet your 10 ads will still be there tomorow as there enddate is not passed. This is the exact query and there is no way they can be deleted if what is in the enddate is not less than the unixtimestamp of now.

$query = "UPDATE {$Globals['pp_db_prefix']}products SET approved=2,status='$today' WHERE enddate < $today AND isauction=0";
$result = ppmysql_query($query,$link);
The 10 ads plus all others posted yesterday are now gone. This was the exact same problem that was happening before you made sure I had all the correct files. I would run sendnotice.php and it would remove all ads.

Maybe it is the cron job? That wouldn't explain how it removes ads by just running from address url though.

curl http://www.ferrarichat.com/pp-classi...sendnotice.php

I've PM'd you the login info, it is same as last time.
robferrari is offline   Reply With Quote
Old August 5th, 2005, 09:10 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
Well I have looked at the coding and see no errors at all with our coding.

On your install the enddate is not being set although the code is correct. I can not replicate this anywhere else so at the moment nothing I can suggest

will do more testing to see if I can replicate
__________________
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 August 5th, 2005, 09:56 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
okay well your issue can not be replicated as to what on your site is blocking the enddate from being set however I did make a tweak to your image-inc.php file to set the enddate and it seems to work
__________________
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 August 5th, 2005, 03:20 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 49
Quote:
Originally Posted by omegatron
okay well your issue can not be replicated as to what on your site is blocking the enddate from being set however I did make a tweak to your image-inc.php file to set the enddate and it seems to work
Hmm, so you have never seen this problem before? That's what I've figured the entire time as others haven't had the problem. I knew something on my Db and server was not setting right, I guess enddate.

Would you suggest I look into this more or just go with your tweak?

Thanks,
rob
robferrari is offline   Reply With Quote
Old August 5th, 2005, 05:18 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
well nope have not seen this before. My tweak should work. You can try a test install and see if it happens to a new install
__________________
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
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
upgrade to 2.41 then new adds impossible(NOT A BUG) francisr6 Classifieds Bug Reports 4 August 19th, 2005 02:27 PM
No username when posting adds testpig Classifieds Bug Reports 1 July 31st, 2005 10:47 AM
Text problem with adds(FIXED) testpig Classifieds Bug Reports 11 July 14th, 2005 07:13 PM
Classified Adds appearing on black background(NOT A BUG) testpig Classifieds Bug Reports 6 July 10th, 2005 11:00 AM
Latest Adds on non Classified page? redtailboa Classifieds Installation & Upgrades 1 October 5th, 2004 01:03 PM


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

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