Reply To: PDF generation urlsafe/htmlsafe

#1257
ExpertGeeks
Participant

New install didn’t complete, the database was broken. While I could create products and customers, I couldn’t select either when generating an invoice.

I did as the ‘installation’ doc suggests when you have ‘Problems with the Simple Invoices installer?’ and imported the supplied database. This imported database IS able to generate PDF’s. However, when I went to try to check whether I could change the currency etc in ‘SI Defaults’ I get the following error;

Fatal error: Uncaught TypeError: Return value of Inc\Claz\SystemDefaults::getDelete() must be of the type int, string returned in /var/www/html/sinv2020.1/simpleinvoices-master_2020/Inc/Claz/SystemDefaults.php:216 Stack trace: #0 /var/www/html/sinv2020.1/simpleinvoices-master_2020/modules/system_defaults/manage.php(28): Inc\Claz\SystemDefaults::getDelete() #1 /var/www/html/sinv2020.1/simpleinvoices-master_2020/index.php(440): include(‘/var/www/html/s…’) #2 {main} thrown in /var/www/html/sinv2020.1/simpleinvoices-master_2020/Inc/Claz/SystemDefaults.php on line 216

Error in tmp/log/php.log
[03-Dec-2020 04:56:31 America/Los_Angeles] PHP Fatal error: Uncaught TypeError: Return value of Inc\Claz\SystemDefaults::getDelete() must be of the type int, string returned in /var/www/html/sinv2020.1/simpleinvoices-master_2020/Inc/Claz/SystemDefaults.php:216
Stack trace:
#0 /var/www/html/sinv2020.1/simpleinvoices-master_2020/modules/system_defaults/manage.php(28): Inc\Claz\SystemDefaults::getDelete()
#1 /var/www/html/sinv2020.1/simpleinvoices-master_2020/index.php(440): include(‘/var/www/html/s…’)
#2 {main}
thrown in /var/www/html/sinv2020.1/simpleinvoices-master_2020/Inc/Claz/SystemDefaults.php on line 216

FYI Linux installation,
PHP Version 7.4.9
Server version: Apache/2.4.46 (Ubuntu)
Server built: 2020-08-10T12:32:00