Community Forums

Discuss, share and get help from our community of friendly WHMCS users

Close
Login to Your Account
Results 1 to 11 of 11
  1. #1
    Join Date
    Mar 2017
    Posts
    4

    Default WHMCS Cron job error

    Fatal error: Class 'WHMCS\Mail\Entity\invoice' not found in /home/xxxxx/public_html/vendor/whmcs/whmcs-foundation/lib/Mail/Emailer.php on line 0
    How to fix this problem ? My WHMCS Version 7.1.0. Please help me .

    sory for bad english

  2. #2
    Join Date
    Sep 2016
    Posts
    9

    Default Re: WHMCS Cron job error

    You have an error in your code.

  3. #3
    Join Date
    Feb 2013
    Location
    UK
    Posts
    6,389

    Default Re: WHMCS Cron job error

    Quote Originally Posted by jet88 View Post
    You have an error in your code.
    no - it's usually a corrupt file... uploading the entire 'vendor' folder again usually fixes it.

  4. #4
    Join Date
    Mar 2017
    Posts
    4

    Default Re: WHMCS Cron job error

    problem wasn't solved.

    - - - Updated - - -

    Quote Originally Posted by brian! View Post
    no - it's usually a corrupt file... uploading the entire 'vendor' folder again usually fixes it.
    problem wasn't solved.

  5. #5
    Join Date
    Feb 2013
    Location
    UK
    Posts
    6,389

    Default Re: WHMCS Cron job error

    you might want to open a ticket with Support and let them take a look at the issue.

  6. #6
    Join Date
    Jun 2009
    Location
    Sheffield, UK
    Posts
    8,558

    Default Re: WHMCS Cron job error

    Hi,
    There is no invoice.php file in the /vendor/whmcs/whmcs-foundation/lib/Mail/Entity/ path to which this error refers, only Invoice.php

    Could you please ensure there are no customisations present on your installation as these can often change the way WHMCS operates.
    These are typically located in the /includes/hooks and /modules/addons directory (and maybe also /modules/admin if it's an old customisation)

    Once the issue is resolved you can add them back one-by-one until the problem begins again - at which point you have identified the troublesome customisation and can contact the vendor directly for assistance resolving the problem in their code.
    WHMCompleteSolution
    The Complete Client Management, Billing & Support System
    www.whmcs.com

  7. #7
    Join Date
    Mar 2017
    Posts
    4

    Default Re: WHMCS Cron job error

    Quote Originally Posted by WHMCS John View Post
    Hi,
    There is no invoice.php file in the /vendor/whmcs/whmcs-foundation/lib/Mail/Entity/ path to which this error refers, only Invoice.php

    Could you please ensure there are no customisations present on your installation as these can often change the way WHMCS operates.
    These are typically located in the /includes/hooks and /modules/addons directory (and maybe also /modules/admin if it's an old customisation)

    Once the issue is resolved you can add them back one-by-one until the problem begins again - at which point you have identified the troublesome customisation and can contact the vendor directly for assistance resolving the problem in their code.
    problem wasn't solved.

  8. #8
    Join Date
    Aug 2016
    Location
    Auckland, New Zealand
    Posts
    775

    Default Re: WHMCS Cron job error

    Quote Originally Posted by hostintegra View Post
    problem wasn't solved.
    Did you try removing all customisation and hooks?
    Thanks,
    Chris D.

    WHMCompleteSolution
    The Complete Client Management, Billing & Support Solution
    www.whmcs.com

  9. #9
    Join Date
    Mar 2017
    Posts
    4

    Default Re: WHMCS Cron job error

    Quote Originally Posted by WHMCS ChrisD View Post
    Did you try removing all customisation and hooks?
    Yes, I tried. But it didn't work

  10. #10
    Join Date
    Aug 2016
    Location
    Auckland, New Zealand
    Posts
    775

    Default Re: WHMCS Cron job error

    Quote Originally Posted by hostintegra View Post
    Yes, I tried. But it didn't work
    Please open a support ticket so we can assist you
    Thanks,
    Chris D.

    WHMCompleteSolution
    The Complete Client Management, Billing & Support Solution
    www.whmcs.com

  11. #11
    Join Date
    Jun 2009
    Location
    Sheffield, UK
    Posts
    8,558

    Default Re: WHMCS Cron job error

    Hi,
    This indicates a problem with the ucfirst() PHP function in your server environment, causing it to look for a file called invoice.php rather than the actual file Invoice.php.
    Here is information on the function we are using: http://php.net/manual/en/function.ucfirst.php

    Try recompiling the PHP environment used by your cron jobs, that may help here.

    We also have case CORE-10746 open internally in investigate whether we can better handle situations where this PHP function is not functioning correctly.
    WHMCompleteSolution
    The Complete Client Management, Billing & Support System
    www.whmcs.com

Similar Threads

  1. Cron job error
    By sezing in forum Using WHMCS
    Replies: 1
    Last Post: 08-05-16, 02:28 PM
  2. Cron job gives error
    By heyjoe in forum Troubleshooting Issues
    Replies: 0
    Last Post: 06-25-16, 11:34 AM
  3. Cron Job error
    By websolpro in forum Using WHMCS
    Replies: 4
    Last Post: 10-02-15, 09:47 PM
  4. Cron Job & not title ( WHMCS Cron Job Activity)
    By hezarnevis in forum Using WHMCS
    Replies: 3
    Last Post: 03-07-15, 04:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •