Tag Archives: dompdf
Magic Quotes feature has been DEPRECATED as of PHP 5.3.0+ and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.
Magic Quotes is a process that automatically escapes incoming data to the PHP script. It’s preferred to code with magic quotes off and to instead escape the data at runtime, as needed. The Earlier versions of Codeigniter has used magic quotes functions of PHP… so, be aware of that.
If you haven’t update your CodeIgniter version to 1.7.3 (Or to CodeIgniter 2+) . Your site may crash and display errors any time if your server has upgraded to PHP 5.3. You may see the following errors when trying to access your website:
Message: Function set_magic_quotes_runtime() is deprecated
Severity: 8192 Message: Assigning the return value of new by reference is deprecated Filename: libraries/Loader.php Line Number: 255
If you are using DomPDF 5.x then you might get similar issues when trying to generate PDF documents. As far as I know the team is focussing on DomPDF version 6 and dont have a update yet. You can download the updated class here.
If you are using Joomla or WordPress and you are getting errors similar like the above just upgrade to the latest version.
Your issue with magic quotes should now be resolved!!