Jump to content

Fatal Error Class 'TCPDF' not found when Downloading PDFs?


CodyLoco

Recommended Posts

Hi all!

 

I've been battling some some issues recently with my WHMCS install, and at the moment I have a weird one with invoice/quote PDF downloads. Any time I try to download a PDF, be it via admin side or client-side, I get the following error:

 

 

Fatal error: Uncaught Error: Class 'TCPDF' not found in /home/xxxxxxxx/public_html/clients/vendor/whmcs/whmcs-foundation/lib/PDF.php:0 Stack trace: #0 /home/xxxxxxxx/public_html/clients/vendor/composer/ClassLoader.php(412): include() #1 /home/xxxxxxxx/public_html/clients/vendor/composer/ClassLoader.php(301): Composer\Autoload\includeFile('/home/xxxxxxxx/...') #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('WHMCS\\PDF') #3 /home/xxxxxxxx/public_html/clients/vendor/whmcs/whmcs-foundation/lib/Invoice.php(0): spl_autoload_call('WHMCS\\PDF') #4 /home/xxxxxxxx/public_html/clients/includes/invoicefunctions.php(0): WHMCS\Invoice->pdfCreate() #5 /home/xxxxxxxx/public_html/clients/dl.php(0): pdfInvoice(363) #6 {main} Next Error: Class 'TCPDF' not found in /home/xxxxxxxx/public_html/clients/vendor/whmcs/whmcs-foundation/lib/Terminus.php:0 Stack trace: #0 [internal function]: WHMCS\Terminus::whmcsExceptionHandler(Object(Error)) #1 {main} thrown in /home/xxxxxxxx/public_html/clients/vendor/whmcs/whmcs-foundation/lib/Terminus.php on line 0

 

I've tried replacing all files in /vendor/whmcs/whmcs-foundation/lib/* with fresh ones from an install package; no go.

 

I'm also seeing an issue where System Health Status reports that system cron hasn't run in the last 24h, despite the logs seemingly saying it is running. Not sure if that's related?

 

Any leads on what the problem could be? My WHMCS is up to date w/ 7.1.1.

 

Thanks!

Edited by CodyLoco
Link to comment
Share on other sites

I've tried replacing all files in /vendor/whmcs/whmcs-foundation/lib/* with fresh ones from an install package; no go.

you might as well upload the entire 'vendor' folder again - the pdf stuff is mainly in the technikcom folder, but it would be better to just upload the entire vendor folder. :idea:

 

I'm also seeing an issue where System Health Status reports that system cron hasn't run in the last 24h, despite the logs seemingly saying it is running. Not sure if that's related?

I don't think they're related - if you do a search, you'll find a few threads about that cron issue.

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