Page 1 of 1

mPDF Error

Posted: 2024-08-29 06:41
by uchhavi
Dear Friends,

I am getting this below error while processing one of the programs.

Fatal error: Uncaught Error: Class "mPDF" not found in ...\crm\hooks\orders\order_receipt.php:108 Stack trace: #0 {main} thrown in ...\crm\hooks\orders\order_receipt.php on line 108

I am runninng version 5.94 for Appgini.

Has anyone faced this error? How do i sove this. Please help

Thanks in advance.

Re: mPDF Error

Posted: 2024-08-29 06:44
by jsetzer
Sorry, stupid question:
Did you include(...) or require(...)the required php file in your code and does the file exist at the given include path?

Re: mPDF Error

Posted: 2024-08-29 08:29
by uchhavi
it was working fine till I last used it.
about 3 months back.

it is only i needed some ammends in my software and once i did the changes and rerun the code, this error is coming.

<?php
$app_dir = dirname(__FILE__) . '/../..';
define('PREPEND_PATH', '../../');

include("$app_dir/lib.php");

$id = max(0, intval($_REQUEST['id']));
if(!$id){
header('Location: ' . PREPEND_PATH . 'order_receipt.php');
exit;
}
u can download the complete file from the below link

https://www.dropbox.com/scl/fi/3f0y2sws ... 2cor5&dl=0

Re: mPDF Error

Posted: 2024-08-29 11:02
by jsetzer
Check path and file existence given in line 96.

Re: mPDF Error

Posted: 2024-08-29 16:28
by uchhavi
Yes it is correct. I have a file in that address.

Re: mPDF Error

Posted: 2024-08-29 16:46
by uchhavi
any other suggestion..