redrat Posted October 9, 2009 Share Posted October 9, 2009 Lar. I like you man. You are a head! Old school! Kind regards, Chris 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted October 10, 2009 Author Share Posted October 10, 2009 Lar. I like you man. You are a head! Old school! Kind regards, Chris Not sure what you mean, but thanks! 0 Quote Link to comment Share on other sites More sharing options...
Jpoke5 Posted October 11, 2009 Share Posted October 11, 2009 I did get this fixed, I had the files in the wrong place. Just goes to show you should not stay up late at night to install edit files. 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted October 12, 2009 Author Share Posted October 12, 2009 I did get this fixed, I had the files in the wrong place. Just goes to show you should not stay up late at night to install edit files. I will eventually get around to making a version that requires no crons (hooking into the daily WHMCS cron) and is a bit more flexible. No ETA on this, as I am tied down with fixing up my own site at the moment and projects. 0 Quote Link to comment Share on other sites More sharing options...
factor Posted October 14, 2009 Share Posted October 14, 2009 I get this error when updating cart after selecting the free product we have setup for your module: Warning: Division by zero in /home/****public_html/gestion/includes/orderfunctions.php on line 0 You can see it there: https://factoriadigital.com/gestion/cart.php?a=add&pid=45 0 Quote Link to comment Share on other sites More sharing options...
factor Posted October 14, 2009 Share Posted October 14, 2009 Ok, i fixed it, it's because product was free but prorata billing was enabled. Disabled it, and it's working now. 0 Quote Link to comment Share on other sites More sharing options...
Anders Posted October 17, 2009 Share Posted October 17, 2009 my cron job does not work i get this error back in mail; No input file specified. any ideas what it can be? 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted October 18, 2009 Author Share Posted October 18, 2009 my cron job does not work i get this error back in mail; No input file specified. any ideas what it can be? Yup, the cron call is wrong. No input file specified is the PHP error message when you call PHP with no file (in this case, my php files) specified. 0 Quote Link to comment Share on other sites More sharing options...
Anders Posted October 19, 2009 Share Posted October 19, 2009 (edited) do u have an ide why? as all the files are up on the server. Edited October 19, 2009 by andersbirkenstam 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted October 20, 2009 Author Share Posted October 20, 2009 do u have an ide why? as all the files are up on the server. Reply with the cron call that you are trying to use Example: php /home/crap/public_html/whmcs/admin/crap.php 0 Quote Link to comment Share on other sites More sharing options...
Anders Posted October 20, 2009 Share Posted October 20, 2009 Hi larwilliams, i had like this but i removed /admin/ php -q /home/xxxxxxx/public_html/webbhotell/xxxx/modules/admin/freetrial/remindtrial.php php -q /home/xxxxxxx/public_html/webbhotell/xxxx/modules/admin/freetrial/removetrial.php to this and it seem to work now. php -q /home/xxxxxxx/public_html/webbhotell/xxxx/modules/freetrial/remindtrial.php php -q /home/xxxxxxx/public_html/webbhotell/xxxx/modules/freetrial/removetrial.php my stupidity. warm regards K 0 Quote Link to comment Share on other sites More sharing options...
Anders Posted October 20, 2009 Share Posted October 20, 2009 hello, is possibel to try this script if it works i have set up an free account , and in admin settings are: Trial Duration (Days): 2 Trial Reminder Notice (Days) 1 and if i got to cron i get this. 0 trial reminders sent! and 0 trial accounts removal inserted! how can test so it works? 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted October 24, 2009 Author Share Posted October 24, 2009 hello, is possibel to try this script if it works i have set up an free account , and in admin settings are: Trial Duration (Days): 2 Trial Reminder Notice (Days) 1 and if i got to cron i get this. 0 trial reminders sent! and 0 trial accounts removal inserted! how can test so it works? You can try waiting a day, which should help confirm if you set your account up properly or not. Don't forget to include the package the "Free Account" is using in the list of ones that are used for Trials 0 Quote Link to comment Share on other sites More sharing options...
Jpoke5 Posted October 24, 2009 Share Posted October 24, 2009 You can try waiting a day, which should help confirm if you set your account up properly or not. Don't forget to include the package the "Free Account" is using in the list of ones that are used for Trials I have had this setup for quite a while now and i do get the cron notice emails but its not sending out the reminder emails. I have this set to 30 doy trial with a 5 day notice and the proper package but no mails get sent out???? Jeff 0 Quote Link to comment Share on other sites More sharing options...
MaRiOsGR Posted October 24, 2009 Share Posted October 24, 2009 Hello, first of all, thanx for this great mod. I have 2 question 1)what is the max duration of a free package? (can it accept for e.g. 6 months?) 2)Is is possible to have it automatically added to domain registration orders? for e.g. when a client orders a domain, he will get a free demo hosting package to test it with ? 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted October 24, 2009 Author Share Posted October 24, 2009 I have had this setup for quite a while now and i do get the cron notice emails but its not sending out the reminder emails. I have this set to 30 doy trial with a 5 day notice and the proper package but no mails get sent out???? Jeff There are two cron jobs to set up (at the moment, next version will be tied directly into WHMCS) removetrial.php remindtrial.php I can only assume remindtrial.php is not setup. 0 Quote Link to comment Share on other sites More sharing options...
denbagus Posted November 24, 2009 Share Posted November 24, 2009 what folder must install in whmcs? 0 Quote Link to comment Share on other sites More sharing options...
elfsoup Posted November 25, 2009 Share Posted November 25, 2009 Read the readme.txt file that comes with this mod. 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted December 9, 2009 Author Share Posted December 9, 2009 Here are the hooks for the reminder and removal functions (to replace the cron jobs in the current version). Simply disable the cron jobs you set up, and upload the 3 files to the includes/hooks folder in your WHMCS installation. Easy as pie now I will repackage the addon later this weekend, and update the Plan Comparison one as well. 0 Quote Link to comment Share on other sites More sharing options...
HostXNow Posted December 9, 2009 Share Posted December 9, 2009 Hi Lar Does this mod not work with WHMCS now? I have the crons setup and the Free Trial emails are being sent out but they are not being terminated automaticallly now... I am using WHMCS Version: 4.1.2 *Checks hostbill to see if it is bulit in to the core Edit: Does your post above contain fix? 0 Quote Link to comment Share on other sites More sharing options...
HostXNow Posted December 9, 2009 Share Posted December 9, 2009 I have the crons set like 0 8 * * * php -q /home7/***/public_html/help-center/modules/admin/freetrial/remindtrial.php 0 7 * * * php -q /home7/***/public_html/help-center/modules/admin/freetrial/removetrial.php 0 0 * * * php -q /home7/***/public_html/help-center/admin/cron.php *5/ 3 * * * php -q /home7/***/public_html/help-center/pipe/pipe.php 0 3 2 * * php -q /home7/***/public_html/help-center/modules/registrars/enom/enomsync.php 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted December 10, 2009 Author Share Posted December 10, 2009 I have the crons set like 0 8 * * * php -q /home7/***/public_html/help-center/modules/admin/freetrial/remindtrial.php 0 7 * * * php -q /home7/***/public_html/help-center/modules/admin/freetrial/removetrial.php 0 0 * * * php -q /home7/***/public_html/help-center/admin/cron.php *5/ 3 * * * php -q /home7/***/public_html/help-center/pipe/pipe.php 0 3 2 * * php -q /home7/***/public_html/help-center/modules/registrars/enom/enomsync.php If you use the files in the ZIP in my last post, you can disable the first 2 cron entries. The 3 .php files in the ZIP in the post above are to be uploaded to the includes/hooks folder. In your case, the folder would be: /home7/***/public_html/help-center/includes/hooks 0 Quote Link to comment Share on other sites More sharing options...
HostXNow Posted December 10, 2009 Share Posted December 10, 2009 I will try that. Cheers 0 Quote Link to comment Share on other sites More sharing options...
mcpacific Posted December 11, 2009 Share Posted December 11, 2009 Lar, I was going to use your mod but then I realized it only allows one global configuration. Have you decided whether or not you are going to expand it to enable different trial periods and reminder emails for each trial product? 0 Quote Link to comment Share on other sites More sharing options...
factor Posted December 11, 2009 Share Posted December 11, 2009 so, uploading the action hooks and disabling cron jobs everything will work without updating the main script installation? please confirm Also i profit to thank you for your script, it's really good. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.