Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clients not being billed monthly
#1
THT Version: 1.3.5 Reworked
Your THT installation URL: http://entomy.com/signup/
Browser (including version): Not relevant
Your Operating System: Not relevant
Server's Operating System: CentOS 5.9
Apache Version: 2.2.23
Control Panel Type: Kloxo
Control Panel Version: 6.1.12
Error: None
Problem: Clients are not being billed monthly.

Clients with paid subscriptions are not being billed monthly and are not being suspended for non-payment. I'm running the /includes/cron.php every 5 minutes, which returns no error. I've tried running it with both the -q and the -e parameters, and both run with no errors while never invoicing clients.

Clients are signed up for packages that specify a monthly charge. They're billed for the first month successfully when they signup, but are never billed again.

What am I missing?
Reply
#2
Since it's been more than 10 days without a reply, I'm cross-posting this to the THT General Support forum.
Reply
#3
I'm gearing up for releasing a new Reworked edition which will be fixing all noted bugs and will add the functionality that people asked for in the mods wish list. (Including domain registrations!) I'd like to know if this is still an ongoing issue or if you resolved it and can tell me what you did so I can be sure it's fixed.

I'll have my testing rig up sometime tomorrow and I'll be able to work with you on this in the next couple days at some point.

EDIT: I figured out what was going on and released a patch. Download it at: https://thehostingtool.com/forum/thread-2515.html
---
See my GitHub at https://github.com/cozylife
Reply
#4
OK, I've applied those changes. Thanks.

We'll see what happens now.
Reply
#5
Sounds great. I'm anxious to see what happens on your end as I had to fudge the time() to make it think it was the date I needed for testing when I was checking it.
---
See my GitHub at https://github.com/cozylife
Reply
#6
(08-26-2013, 04:02 PM)LightworkerNaven Wrote: Sounds great. I'm anxious to see what happens on your end as I had to fudge the time() to make it think it was the date I needed for testing when I was checking it.

Something's wrong with the patch. When I apply the patch changes the admin panel won't come up. I can change back to the original code and the admin panel works again.

The new code for class_invoice.php appears to be missing 2 right curly braces, but adding them doesn't bring the admin panel back, so there's still something wrong.
Reply
#7
Weird. I'll look into this later.
---
See my GitHub at https://github.com/cozylife
Reply
#8
(08-27-2013, 11:31 AM)ajonate Wrote: The new code for class_invoice.php appears to be missing 2 right curly braces, but adding them doesn't bring the admin panel back, so there's still something wrong.

If this is in reference to the XML file, those right curly braces are missing on both the replace code and what's being replaced. That means those right curly braces are in the file still.

As for the issue at hand, I don't see any reason why the admin area would go down. I uninstalled and reinstalled the module without any errors. Try reinstalling it and see if AutoMod has any errors. If so, let me know what they are.

Also, what are the permissions for the files being replaced? (class_server.php and class_invoice.php)
---
See my GitHub at https://github.com/cozylife
Reply
#9
(08-27-2013, 08:22 PM)LightworkerNaven Wrote: If this is in reference to the XML file, those right curly braces are missing on both the replace code and what's being replaced. That means those right curly braces are in the file still.

OK. I pasted the corrected code manually. Perhaps I need to apply the xml file instead. Can you direct me to a howto on that?

But even when I have the proper curly braces, it still breaks THT.

(08-27-2013, 08:22 PM)LightworkerNaven Wrote: If this is in reference to the XML file, those right curly braces are missing on both the replace code and what's being replaced. That means those right curly braces are in the file still.

I don't think so. The curly braces add-up in the find code, but are two short in the replace code. The trailing two curly braces are present in the find code. See for yourself.

https://dl.dropboxusercontent.com/u/22059150/curly.jpg
Reply
#10
Do you have other modules installed? Also, did you test this on a fresh installation? When you installed this, you uploaded it with AutoMod and followed the installation instructions it gave you, correct?

I checked the braces and they are correct. See below.


Attached Files Thumbnail(s)
   
---
See my GitHub at https://github.com/cozylife
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)