Forum


Replies: 8   Views: 3523
Fatal error: cannot redeclare class fpdf joomla 3
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by dev-info  · 22-06-2020 - 15:13

hi, 

With prenium version on joomla , we tried to install phpdocx,

But we use fpdf, fpdi and tcpdf in other place to our website, 

so when we declared :require_once '/libraries/phpdocx/classes/CreateDocx.php'; 

we have this error:Fatal error: Cannot redeclare class FPDF 

And if we comment :

jimport('fpdf.fpdf');

include('src/fpdi.php');

jimport('tcpdf.tcpdf');

others functions needed to this, that not working

Do yo ha solution for undeclrare un librarye, or check if library already loaded?

Thank you :)