mPDF Error

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
uchhavi
Veteran Member
Posts: 84
Joined: 2018-05-15 14:07

mPDF Error

Post by uchhavi » 2024-08-29 06:41

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.
Best regards,

Chhavi Jain

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1891
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: mPDF Error

Post by jsetzer » 2024-08-29 06:44

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?
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.14 Revision 1665 + all AppGini Helper tools

uchhavi
Veteran Member
Posts: 84
Joined: 2018-05-15 14:07

Re: mPDF Error

Post by uchhavi » 2024-08-29 08:29

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
Best regards,

Chhavi Jain

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1891
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: mPDF Error

Post by jsetzer » 2024-08-29 11:02

Check path and file existence given in line 96.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.14 Revision 1665 + all AppGini Helper tools

uchhavi
Veteran Member
Posts: 84
Joined: 2018-05-15 14:07

Re: mPDF Error

Post by uchhavi » 2024-08-29 16:28

Yes it is correct. I have a file in that address.
Best regards,

Chhavi Jain

uchhavi
Veteran Member
Posts: 84
Joined: 2018-05-15 14:07

Re: mPDF Error

Post by uchhavi » 2024-08-29 16:46

any other suggestion..
Best regards,

Chhavi Jain

Post Reply