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 Installation & Upgrades

Classifieds Installation & Upgrades If you're having install or upgrade problems, post here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old August 16th, 2005, 11:34 AM   #1 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 2
Questions about sendnotice.php and stats

I have a new 2.41 install of classifieds that is up and working now. I want to get the sendnotice.php working to do the email notifications. As soon as I enabled, it people were getting send the same email sent over and over every 10 minutes. I fixed that by adding an initial record to pp_stats with an id of 1. Previously it did not exist. The code should have checked for a record and if it wasnt there, done an insert.

The problem now is that none of the stats such as items sold and dollar amounts got updated since the editproduct.php tries to update a record in pp_stats with an id of 1 that did not exist. Is there a way for it to go recaculate those stats? The Scan DB / recalculate numbers did not work.

Thanks
Chris
cdouglas is offline   Reply With Quote
Old August 17th, 2005, 04:19 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Hello

Well dont know how to tell you to recalculate things other than to set the status of the expired ads back to approved date and clear the stats table and rerun sendnotice

However I will answer your hypothesis that you think we dont insert a record

On an install we do indeed insert a record for the stats table so I show the files coded properly. If your install did not have a record of 1 then its unique to you. This is right in our install file.

$query[] = "CREATE TABLE {$pp_db_prefix}stats (id int(2) NOT NULL auto_increment, amt_sold float(12,2) NOT NULL default '0', ads_sold int(12) NOT NULL default '0', lastupdate INT(12) NOT NULL default '0', PRIMARY KEY (id) ) TYPE=MyISAM";
$query[] = "INSERT INTO {$pp_db_prefix}stats VALUES (1, 0, 0, 0)";
__________________
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 18th, 2005, 12:56 PM   #3 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 2
Thank you for your response. I checked my installer and that line is in there as you said it was. Why it didn't work on mine I dont know, but as soon as I created that record, the sold stats started working, as well as the notifications.
cdouglas 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
Cron Job: sendnotice.php Michael P Classifieds Installation & Upgrades 82 March 15th, 2010 11:43 AM
Does sendnotice.php remove the ads from the database? Andy R Classifieds Installation & Upgrades 7 November 22nd, 2005 09:06 PM
showmember.php user stats not shown(NOT A BUG) Arnie ReviewPost Bug Reports 1 August 28th, 2005 07:46 PM
Sendnotice.php Bryan Ex Classifieds Suggestions 2 June 22nd, 2004 03:58 PM


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

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