Jump to content

invoices not automatically generating


FearlessG1

Recommended Posts

Hello all, firstly, thank you for any and all help. I have a bit of a problem with my invoicing. Invoices are not automatically being created 14 days before due date as i have setup in whmcs. I have to manually click the generate invoices button at the admin home page to generate the invoices that should have automatically generated. when i go to my cpanel i am showing the cronjob:

0 9 * * * php -q /home/sales/public_html/order/admin/cron.php

 

i am using cent os and the current whm build. I also have the latest whmcs installed. any suggestions?

Link to comment
Share on other sites

I saw this before...i do recommend contact your DC to take a look at it, something is wrong with cron in your server, the last time i saw this problem was because the cron was allowed only for root and not for users. But the cause could be many other things also, so just open a ticket at your DC.

Link to comment
Share on other sites

It's a "command not found" because bad line terminators cause breaks in the code. I had a backup script that was playing up (on a server that ran PHP just fine), and finally narrowed it down to the text editor I was using. Started with a fresh copy, edited exactly the same as before, but with a better program and it was fine. The only other time was when I'd inadvertently uploaded a PHP as BINARY and there were odd line endings.

The SH warning is because cron is failing, not the script. Or I could be wrong. ;)

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