RRowley

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 301 total)
  • Author
    Posts
  • in reply to: Date format issue #2048
    RRowley
    Participant

    This is likely due to the changes to use globalization for date, number, etc. formats. You need to make your own version of the template is you aren’t already. See the “Invoice Templates & Styles” topic on the left. Once you have your own template version, edit the template.tpl file to use the international date with the format of long. Here is an example of what this would look like:

    field={$invoice.date_original|utilIntlDate:$invoice.locale:"long"}

    in reply to: 0Auth Support for gmail #2046
    RRowley
    Participant

    I need to know just what it is that you are wanting to be implemented.

    in reply to: Recurring invoices don’t show tax #2043
    RRowley
    Participant

    Is there a reason you can’t update to php 8.1 or greater thereby being able to load the current version of SI?

    in reply to: Custom pdf design #2037
    RRowley
    Participant

    Refer to the Invoice Templates & Styles topic on the left.

    in reply to: Update SI from an old version #2034
    RRowley
    Participant

    The issue is that the si_invoice_item_tax file has a foreign key set on the ID field of the si_invoice_items table. You need to make note of the foreign key settings and then delete the foreign key. Next add the auto increment to si_invoice_items ID field. Finally, add the foreign key back on the si_invoice_item_tax table.

    in reply to: Update SI from an old version #2032
    RRowley
    Participant

    The error appears to complain that there is an attempt to add and si_invoice_items record with a duplicate value of 0 for its primary key. The primary key is (should be) the ID field. This field could only be assigned 0 if it does not have the auto increment setting on. User phpMyAdmin to verify this. There are two issues to correct. One is that there is now a record in that table with a 0 value for its ID field. That is a problem. I suggest you find which invoice this is for and delete it. If you don’t find a record with a 0 ID value, it was probably created for the invoice you are adding, say for the first invoice item and then it got an error on the second. Once you’ve cleared up the 0 ID issue, you can set the auto increment setting on the table. This can be done in phpMyAdmin. If you had to delete and invoice, add it back now. Make note of the original invoice number to reference it to the new number assigned to it for your records. Once you’ve taken care of any deleted invoice, you can add the invoice you were trying to add when this error occurred. All should be OK at this point.

    in reply to: Update SI from an old version #2028
    RRowley
    Participant

    Great news. Thank you for letting me know.

    in reply to: Tutorial needed to upgrade from simpleinvoices 2011 to 2023 #2007
    RRowley
    Participant

    Concerning unable to apply foreign key changes error, the exception message tells you what the issue is. From your error log:

    The records in the FOREIGN KEY TABLE are most likely invalid and should be deleted.
    
    FOREIGN KEY      TABLE COLUMN    REFERENCE TABLE COLUMN INVALID VALUE
    ————————         ——————          ———————–        ———    ————-
    invoice_item_tax invoice_item_id invoice_items   id     10
    invoice_item_tax invoice_item_id invoice_items   id     11
    invoice_item_tax invoice_item_id invoice_items   id     12
    invoice_item_tax invoice_item_id invoice_items   id     13
    

    This is saying that there are si_invoice_item_tax table records with an id of 10, 11, 12 and 13, containing invoice_item_id values that do not exist in the si_invoice_items table.

    There are two ways to resolve this. One is to create si_invoice_itens records that contain these values. The other is to delete these records from the si_invoice_item_tax table. Since the orphaned records are likely left over from the deletion of si_invoice_items records that failed to delete associated tax records, the solution to delete the si_invoice_item_tax records with id values of 10, 11, 12 and 13 is likely the best solution.

    RRowley
    Participant

    Thank you for pointing this out. I have uploaded a fix to the gitignore file that was causing this, along with the css files that it had erroneously been excluding.

    in reply to: Unable to parse ini file: config/custom.config.ini #1986
    RRowley
    Participant

    Just following up to see if your issues have been addressed.

    in reply to: Unable to parse ini file: config/custom.config.ini #1985
    RRowley
    Participant

    I notice that the sql file inserts into the si_invoices table before the load of the si_invoice_type table.

    Make sure you turn off the check foreign keys option being importing the sql file.

    in reply to: Unable to parse ini file: config/custom.config.ini #1981
    RRowley
    Participant

    You need to determine which product numbers in the inventory table do not have a match to an id field value in the product table. If the product_id of an inventory record is wrong, change it to a correct value. If the inventory product_id should be for a product that is missing, you can add the missing product, get its id and then change the inventory record to the new product. Or you could delete the orphaned inventory record.

    Sorry you have to go through this, but once fixed, the database will enforce foreign key settings to prevent future issues.

    in reply to: Unable to parse ini file: config/custom.config.ini #1979
    RRowley
    Participant

    The utf8mb4 should be OK for the database. That is actually what I have but I changed to utf8… to verify it would work with the schema I provided.

    I would like to know what the errors were you encountered when you imported the data. If it had to do with foreign key issues, you can turn off the foreign key check in import. If this allows your data to be loaded, you are no worse off than you are now but I expect you have number of orphaned records that should be resolved.

    in reply to: Unable to parse ini file: config/custom.config.ini #1971
    RRowley
    Participant

    I’ve put instructions in the attached zip file. For some reason, it get an error if I try and save them outright in this comment box.

    Attachments:
    in reply to: SI 2019.2.32 to 2023.0.4 FatalError after Upgrade #1968
    RRowley
    Participant

    Glad you figured this out. Thanks for letting the forum know what your issue was and how you corrected it.

Viewing 15 posts - 1 through 15 (of 301 total)