fearless359 / simpleinvoices

Fearless359 SimpleInvoices beyond great beginnings
https://simpleinvoices.group
GNU General Public License v3.0
28 stars 7 forks source link

Export to pdf failure #23

Closed johnanastasio17 closed 7 years ago

johnanastasio17 commented 7 years ago

Export of any report or invoice to pdf throws the following: Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in C:\xampp\htdocs\SI359\library\pdf\config.parse.php:153 Stack trace: #0 C:\xampp\htdocs\SI359\include\sql_queries.php(727): parse_config_file('./library/pdf/h...') #1 C:\xampp\htdocs\SI359\include\class\export.php(60): pdfThis('\n\n ...', 'Invoice_2421', true) #2 C:\xampp\htdocs\SI359\include\class\export.php(254): export->showData('\n\n ...') #3 C:\xampp\htdocs\SI359\modules\export\invoice.php(19): export->execute() #4 C:\xampp\htdocs\SI359\index.php(266): include('C:\xampp\htdocs...') #5 {main} thrown in C:\xampp\htdocs\SI359\library\pdf\config.parse.php on line 153

fearless359 commented 7 years ago

This was fixed a bit ago so try loading a current copy of fearless359/simpleinvoices. Basically this function has long been deprecated (marked to removal from php) and in PHP 7, it was removed. So the fix I added tests that the function exists before executing it. Bottom line, it has been fixed.