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 How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old March 15th, 2010, 10:43 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2010
Posts: 45
sendnotice.pho seems to have deleted all adverts/marked as sold?

Cron Job: sendnotice.php

Following on from that.

I have enabled it in the footer and it's run and now to my horror all adverts apart from 2 have been deleted and i think it's classed them as sold even though they're not and they do not have an expiry date on the advert?!

Luckily there was only about 30 adverts but still is this an option I've set incorrectly?!

Main Index - My Spain Classifieds

EDIT: Also it's sent no owners of adverts any emails/pm that it's expired something or anything like that
darr3n is offline   Reply With Quote
Old March 15th, 2010, 11:42 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
No the cron task did what it was suppose to do. It does not get rid of sold ads. They get rid of themselves if users mark them sold.

The cron script gets rid of expired ads meaning if someone posted an ad for 30 days and you run the script and the ad is 32 days old then its not expired.

If you have never ran your cron then I can see you being a little freaked but its just doing its job.
__________________
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 March 15th, 2010, 11:53 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2010
Posts: 45
Quote:
Originally Posted by Chuck S View Post
No the cron task did what it was suppose to do. It does not get rid of sold ads. They get rid of themselves if users mark them sold.

The cron script gets rid of expired ads meaning if someone posted an ad for 30 days and you run the script and the ad is 32 days old then its not expired.

If you have never ran your cron then I can see you being a little freaked but its just doing its job.
Hi Chuck,

I repeat it's not done what it has meant to do as 90% of those adverts I placed (uploaded via the option to set user name) as those were the active adverts from vbclassifieds I converted over to your product.

So I can 110% confirm all those adverts were set to NOT expire and yet, all of them bar 2 have been removed, they do not show up anywhere as sold or anything of the sort.

I have done a couple of test adverts just now and set the sendnotice cron to run every 2 mins and it has not deleted those yet.

Though it seems to be working as it should right now why would it have deleted adverts that did 110% have a no expiry date set?

EDIT: Reruning phrases.php would not have caused this right?
darr3n is offline   Reply With Quote
Old March 15th, 2010, 11:54 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
It would have had to do its job. I mean it only expired ads what are over the timeframe the ad is set for.

we are dealing with absolute queries here
__________________
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 March 15th, 2010, 11:57 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Here is the query in cron.php

Code:
Content visible to verified customers only.
It only expires ads where enddate is less than the time in unixtimestamp of today this very minute when you run 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 March 15th, 2010, 12:09 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jan 2010
Posts: 45
Chuck,

I'm not disputing it has done what it was meant to do but what I'm disputing is I know for a fact that the vast majority of those adverts had NO expiry when place.

Now the only thing I can think of is perhaps your product did not record the expiry selection properly? I can understand it if I miss-selected a couple of adverts but not 33 out of 35!

Another example to back this up is an advert I placed myself under my account of a couple of weeks ago was marked as SOLD after running sendnotice and I have NEVER marked any advert as sold.

I started out with v3 (whatever the latest version was before v4) if that's any help.

I'm just very concerned that this will happen again once I convince my users to replace adverts!

Last edited by darr3n; March 15th, 2010 at 12:15 PM.
darr3n is offline   Reply With Quote
Old March 15th, 2010, 01:42 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
I posted the query for you above. Nothing has really changed in the sendnotice script and the cron.php file is a duplicate of sendnotice.php except the print statements. For your ads to be expired then the enddate on those ads had to be less than the unixtimestamp of today.

Feel free to post the unixtimestamp of one of those ads but like I said this is an absolute here.

For expire those ads lets take the query I posted and construct what the query looks like in reality.

Say you ran the cron task right this minute

Quote:
UPDATE cp_products SET approved=2,status='1268682020' WHERE enddate < 1268682020 AND isauction=0
That would only expire ads where the enddate is less than that timestamp right there.
__________________
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 March 16th, 2010, 04:09 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jan 2010
Posts: 45
Chuck something even more concerning to me has happened to my user data with your product.

The peoples ads which were removed now have a post count of "4294967294" each having previously had a 0 post count.

This simply further backs up me in saying it was not me who accidental set wrong expiry dates or the unixtimestamp but a bug or error in your product which makes me very nervous considering it's handling and changing sensitive data (ie the user data)

Please let me know what is going on as it's clearly doing something to it that it shouldn't.

Not happy at all tbh.

PS: My set up seems to be fine as you've previously checked it concerning the advanced editor bug.

Last edited by darr3n; March 16th, 2010 at 04:21 AM.
darr3n is offline   Reply With Quote
Old March 16th, 2010, 05:26 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
well what integration is this? what site is this?

First off expiring ads has nothing to do with post counts so not sure you can correlate the two. There is no connection there. You can look at cron.php or sendnotice.php we don't query or change anything to user counts. Just my 2 cents there. That cant be related.

I stand beside what I have said twice here. I will look at your site but as stated thats an absolute query there and this script runs on everyone's sites for years now. the script for expiration of ads is virtually untouched since the programs creation. It simply expires an ad that has an enddate less than today's date.

I would be interested in having site data and uploading an ad or two and checking the database to see how date formats are being stored. Or even so if some ads have not been dropped from the database that you say are expired seeing what those dates say as that would say alot.
__________________
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 March 16th, 2010, 06:04 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Jan 2010
Posts: 45
What sort of access would you require to do the checking as my host is somewhat restrictive of what can be done (there is no cpanel)

So just to confirm nothing what so ever in your product is meant to change post counts?

Quote:
Originally Posted by Chuck S View Post
well what integration is this? what site is this?

First off expiring ads has nothing to do with post counts so not sure you can correlate the two. There is no connection there. You can look at cron.php or sendnotice.php we don't query or change anything to user counts. Just my 2 cents there. That cant be related.

I stand beside what I have said twice here. I will look at your site but as stated thats an absolute query there and this script runs on everyone's sites for years now. the script for expiration of ads is virtually untouched since the programs creation. It simply expires an ad that has an enddate less than today's date.

I would be interested in having site data and uploading an ad or two and checking the database to see how date formats are being stored. Or even so if some ads have not been dropped from the database that you say are expired seeing what those dates say as that would say alot.
darr3n is offline   Reply With Quote
Old March 16th, 2010, 08:32 AM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
You have no web hosting panel?

I would need this usually

1. url and admin login to your application.

2. ftp info

3. url and login to phpmyadmin. If you dont have that its an application you can download and install just like ours.
__________________
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 March 17th, 2010, 05:06 AM   #12 (permalink)
Member
Verified Customer
 
Join Date: Jan 2010
Posts: 45
Quote:
Originally Posted by Chuck S View Post
3. url and login to phpmyadmin. If you dont have that its an application you can download and install just like ours.
I will get you this as I was never supplied with it but I know it's available.

There is definitely something going on as I've just noticed something else.

I did a test advert for 3 days and ofc it sends you a email to say it's going to expire soon etc and also when you're in the classifieds you have 1 message.

BUT the person photopost classifieds says the msg is from is some random user on the site see as follows:

From: spanishlawyer [ March 16 03:03PM ] [ Reply ]

Darren, your ad on My Spain for Test test please ignore is going to expire in 2 days. If you have not sold your product and wish to renew your ad for an additional 3 days, please click on the link below: Login - My Spain Classifieds If you have sold your item, please let us know by clicking on this link: Login - My Spain Classifieds Thank you!

From is some random user who has never used the classifieds at all!
darr3n is offline   Reply With Quote
Old March 17th, 2010, 05:13 AM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
well like I said I would need that info to really comment further.

whats your email say about the ad expiration?
__________________
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 March 17th, 2010, 05:28 AM   #14 (permalink)
Member
Verified Customer
 
Join Date: Jan 2010
Posts: 45
Quote:
Originally Posted by Chuck S View Post
well like I said I would need that info to really comment further.

whats your email say about the ad expiration?
I've emailed my host about myphpadmin access so will email or PM you that information which would you prefer (we've had a previous email convo concerning the advanced editor issue so I can reply to that if you want?)

Here's the email it mentions no specific dates:

Admin, your ad on My Spain for Test test please ignore is going to expire in 2 days. If you have not sold your product and wish to renew your ad for an additional 3 days, please click on the link below: Login - My Spain Classifieds If you have sold your item, please let us know by clicking on this link: Login - My Spain Classifieds Thank you!


---------

Also I've noticed that ones post count on vB does go up when you place at advert so if one expires and the user previously had 0 posts perhaps there is a bug where it can't set it back to 0 so instead sets it to some huge number?
darr3n is offline   Reply With Quote
Old March 17th, 2010, 07:26 AM   #15 (permalink)
Member
Verified Customer
 
Join Date: Jan 2010
Posts: 45
Got the information you need Chuck how do you want it?

PM, Reply to the previous email conversation or contact us?
darr3n is offline   Reply With Quote
Old March 17th, 2010, 08:24 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
contact us in the header
__________________
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
Old adverts not being deleted jammy_basturd Classifieds How do I...? 7 May 14th, 2009 07:28 AM
Expired Ads Marked Sold creativepart Classifieds How do I...? 3 November 25th, 2008 11:53 AM
Marked SOLD, but still can't post more ads. monkeybars Classifieds How do I...? 5 October 21st, 2007 10:51 AM
Items marked as SOLD wacnstac Classifieds How do I...? 10 September 12th, 2006 09:34 PM
When an item is marked as SOLD... snowbird Classifieds How do I...? 1 September 7th, 2006 08:29 AM


All times are GMT -5. The time now is 04:52 AM.

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