Fatal Error on fresh installation

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1823
    Jurgen Rekkers
    Participant

    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

    #1824
    fearless359
    Keymaster

    Modified 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.

    #1833
    Jurgen Rekkers
    Participant

    in 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

    #1834
    fearless359
    Keymaster

    In 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.

    #1837
    Jurgen Rekkers
    Participant

    OK started from scratch with the 2020.4.5, now it seems to run good
    THX !!!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.