Jump to content
hostintegra

WHMCS Cron job error

Recommended Posts

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

Share this post


Link to post
Share on other sites
You have an error in your code.

no - it's usually a corrupt file... uploading the entire 'vendor' folder again usually fixes it.

Share this post


Link to post
Share on other sites

problem wasn't solved.

 

- - - Updated - - -

 

no - it's usually a corrupt file... uploading the entire 'vendor' folder again usually fixes it.

 

problem wasn't solved.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Yes, I tried. But it didn't work

 

Please open a support ticket so we can assist you

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines