SimpleInvoices Group Forum › Forums › Fearless359 SimpleInvoices Discussion Group › Fatal Error on fresh installation
Tagged: invoice_display_days, must be type int
- This topic has 4 replies, 2 voices, and was last updated 2 years ago by Jurgen Rekkers.
-
AuthorPosts
-
November 19, 2022 at 5:22 am #1823Jurgen RekkersParticipant
freshly installed v2020.4.4 with preinstalled data
Fatal error: Uncaught TypeError: Return value of Inc\Claz\SystemDefaults::getInvoiceDisplayDays() must be of the type int, string returned in C:\xampp\htdocs\simpleinvoices\Inc\Claz\SystemDefaults.php:262 Stack trace: #0 C:\xampp\htdocs\simpleinvoices\modules\invoices\manage.php(33): Inc\Claz\SystemDefaults::getInvoiceDisplayDays() #1 C:\xampp\htdocs\simpleinvoices\index.php(432): include(‘C:\\xampp\\htdocs…’) #2 {main} thrown in C:\xampp\htdocs\simpleinvoices\Inc\Claz\SystemDefaults.php on line 262
November 19, 2022 at 9:48 am #1824fearless359KeymasterModified si_system_defaults access functions to force an integer value returned by functions that require int type return values. This is now available in v2020.4.5.
Verify that the invoice_display_days value is numeric in the si_system_defaults table. If it is and you continue to get this failure, download the new version and see if that helps.
November 29, 2022 at 1:32 pm #1833Jurgen RekkersParticipantin that table there is no such thing as invoice_display_days
i checked the sql from the master_2020.zip file and the si_system_default table doesn´t have that field created
November 30, 2022 at 6:23 am #1834fearless359KeymasterIn the si_sql_patchmanager table, what is the greatest value of the sql_patch_ref field? It should be 335 and the sql_statement should contain,
INSERT INTO
si_system_defaults
(name ,value ,domain_id ,extension_id ) VALUES ('invoice_display_days', 0, 1, 1);If so, then the invoice_display_days row should be the last item in the si_system_defaults table. Make sure you are looking at all the records in the file. Default is to display 25 record but this one is the 44th row. You can sort the table by the name field to make the entries in alpha order.
Also, did you download the most current si version? The version # should be 2020.4.5. Click on the About option in the top menu line to see the version or get it from the config/config.ini file.
- This reply was modified 2 years ago by fearless359.
- This reply was modified 2 years ago by fearless359.
November 30, 2022 at 2:03 pm #1837Jurgen RekkersParticipantOK started from scratch with the 2020.4.5, now it seems to run good
THX !!! -
AuthorPosts
- You must be logged in to reply to this topic.
Recent Comments