After upgrading your Magento store to 2.4.6, you may encounter the following message: Class “Zend_Json” not found in . The problem is that using certain Zend classes is no longer supported in Magento 2.4.6. Replace Zend_Json with the following code:…
Solving the “Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct()” error (Magento 1)
Sometimes, when saving an invoice for an order, the following error might come up: Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct() in /var/www/vhosts/website/httpdocs/includes/src/Zend_Pdf_FileParserDataSource_File.php on line 41 To solve that problem, open the lib/Zend/Pdf/FileParserDataSource.php class and change the…
Fixing the Zend_Pdf_FileParserDataSource_File::__construct() declaration error (Magento 1)
The following error may appear when you attempt to print an invoice: Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct() in /var/www/vhosts/website/httpdocs/includes/src/Zend_Pdf_FileParserDataSource_File.php on line 41 To resolve it, open the class lib/Zend/Pdf/FileParserDataSource.php and change the declaration of the…