Jump to content

Issues with the admin script.


BodgeIT

Recommended Posts

I just started to get the automation script running and since I did I've had nightmares.

First of all it started sending out loads of overdue emails, this was expected as the accounts had or were about to go overdue. This was not a problem in fact I expected it.

 

What was a problem was when the script started terminating accounts, one of which hadn't even gone passed it's overdue date yet.

 

I have the appropriate settings to not allow auto terminate but this seems to be ignored by the script.

 

I have since created Client Groups with Exempt from Auto suspend/terminate but I want clients to be auto suspended, just not terminated!

 

Any suggestions? I am running WHMCS 5.1.2 on a linux system.

Link to comment
Share on other sites

  • 1 month later...

After not getting a reply on this the last time I hurriedly turned of the cron job for this script but as you can understand, I need to get my system more automated.

So I went through all my accounts and made sure they were all OK for dates and expiry.

I also double checked the settings in Automation...see pic: WHMCS-auto.png

 

I then ran the script and found that again, it had terminated accounts:

 

0 Services Suspended

 

3 Fixed Term Services Terminated

- Terminated Service: Ruxxx Xxxxer - Wood - mylxxxxxxer.com (Service ID: 14 - User ID: 4)

- Terminated Service: Micxxx Xxxxlay - Silver - ms-ccsvi-uk.org (Service ID: 8 - User ID: 2)

- Manual Terminate Required: Ravx Xxxxxurthy - Silver - channxxxxxxxet.co.uk (Service ID: 9 - User ID: 3 - Error: An unknown error occured)

- Terminated Service: Gaxx Xxxxxy - Silver - macxxxxx.com (Service ID: 13 - User ID: 7)

 

Email Marketer Processing

 

Disk & Bandwidth Usage Statistics Updated

 

Can someone help me to sort this out. I don't understand why the script is terminating anything?

Link to comment
Share on other sites

I have the appropriate settings to not allow auto terminate but this seems to be ignored by the script.

 

Might be a good start to post the details of what the appropriate settings are :) It may a simple matter of getting another set of eyes to look over all your settings.

Link to comment
Share on other sites

Unless they are hidden, there are only a couple of places.

 

1. for in the Group which exempts them from auto termination and suspension. Not turned on.

2. There's the Automation Settings to enable auto termination. Not Turned on.

3. There's the Due date which is relevant to each account...all in the future!

4. There's an option to override Auto suspension... set for a couple but ignored by the script.

 

As an update. I thought maybe it was because I hadn't been running the script regularly and had just activated after some time.

But after restoring all the accounts and making sure on all the settings and dates and invoices etc.. I come back this morning to find it has terminated the accounts again!

 

Just what is going on?

Link to comment
Share on other sites

  • WHMCS Support Manager
3 Fixed Term Services Terminated

This is the clue here, you've configured your products to be fixed-term products, so they'll be terminated after the fixed term regardless. Sounds like you've unintentionally enabled the Setup > Products/Services > Products/Services > Edit > Pricing tab > Auto Terminate/Fixed Term option, as that would cause accounts to be terminated.

Link to comment
Share on other sites

Looks like you were right.

Although I can't find a "Fixed Term" option, all my services are recurring(if that's what it related to?), I did have two products set to terminate 5 days after signup. I would argue blind that I didn't set those options but I'm the only one who set it all up, so I guess I have to take it on the chin....

 

I have now disabled this option in all services. Thanks for your help.

 

IMHO: The much more visible option to disable auto terminate, in the Automation Settings should override the product setting or at least make a point of highlighting the potential of an overriding product setting...it would certainly be helpful.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated