I had to write our own payment plugin for aMember and so far it seems to be working great. Our cron runs to charge people monthly. However one problem I am getting is the error log is filling up with. [Notice] cc_core_rebill(my_payment_plugin, 2010-08-09) skipped because previous rebilling process still working (-7205 seconds ago) Of course the date and number of seconds changes Does anyone know what could cause this? Or what I should look at it fix it? Thanks a lot!
Hmmm it seems there is a problem in server configuration. I believe php time is not the same as MySQL time. This value: -7205 seconds ago can't be negative. This means that current time in mysql less then current time in php
WOW... Thanks alexander. I think you might have nailed it because I have noticed some weirdness with date/time on cron runs and payments. I have no idea how you figured that our from that one line!!! Thanks a ton, I will look into it.
I had a small problem with inserting gmdate instead of date, so that got rid of those errors. However aMember appears to be charging people at very weird times like 5pm. For a subscription that isn't supposed to end till the end of that day. We have multiple aMember sites and this is the only one doing this. Do you know what could be causing the cron to run at such weird times? As far as php/mysql times I tried this MYSQL = NOW() MYSQL2 = CURRENT_TIMESTAMP PHP = date("Y-m-d G:i:s") all date/times appear to be equal.
Sorry but I'm not sure I understood what's wrong? aMember always charge user on expiration date. and time when user will be charged will depends on when cron will run. (depends on cron job setting)
Our cron runs every hour. For example at 7pm CST (Where our server is) if we log into our admin on the aMember CP the "Access log records today" is 0. This is the same time all our rebills are going through. But if you click "Access Log" all the times seem to be correct it will have users that logged in at 6:50 CST. So they data is being recorded correctly. And like i said if I just grab the date/time from Mysql or PHP the time is correct with the server. So I am not sure why the "Access log records today" or the "Error/Debug log messages today" changes to zero at 7pm. Also the Payments for the last 7 days it switched to the next day... it is very odd. Also looks like I was wrong all our sites are doing it... not just this one. Thanks again for your help