upcomtech Posted February 16, 2009 Share Posted February 16, 2009 When customer clicks RTM button at Paypal (loaded with http://localhost/upperroomcomm.com/checkou...u1uqkrteb4mro6) the store displays this message: Warning: mktime() expects parameter 6 to be long, string given in C:\wamp\www\upperroomcomm.com\includes\modules\downloads.php on line 49 and the Paypal status does not get set as verified. I am testing a live IPN setup which has been working for 3 years on a different store type. Paypal continues to work with old store. I expect the store to set the status to allow immediate downloads. I have set the 2 parameters in Paypal Payment module to Preparing [Paypal IPN] and 'processing'. The same message is displayed when customer attempts to view his orders. The download link is not active. Once any update is done (Admin side) to the order, the download link appears. I have set all order_status.download_flag to '1' in the database still no go. It appears the script in downloads.php chokes on the date format Paypal is sending (parameter 6) <input type="hidden" name="payment_date" value="20:08:17 Feb 15, 2009 PST"> downloads.php line 49 reads list($dt_year, $dt_month, $dt_day) = explode('-', $downloads['date_purchased_day']); $download_timestamp = mktime(23, 59, 59, $dt_month, $dt_day + $downloads['download_maxdays'], $dt_year); $download_expiry = date('Y-m-d H:i:s', $download_timestamp); I am not very experienced with PHP and can't figure how mktime() is supposed to work. Any suggestions? Don Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.