Home Forums Support There was an error saving your invoice error

This topic contains 20 replies, has 3 voices, and was last updated by  Hillel Coren 2 months, 3 weeks ago.

Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #18548

    benncass
    Participant

    I am getting this message whenever I try and save an invoice. Any ideas? I’m self hosting.

    “There was an error saving your invoice”
    “error”

    #18552

    DavidBomba
    Keymaster

    What errors are being reported in the error logs?

    storage/logs….

    #18553

    benncass
    Participant

    Where can I find the logs?

    #18554

    DavidBomba
    Keymaster

    storage/logs….

    #18578

    Hillel Coren
    Keymaster

    I’d also suggest checking the browser console and the web server error logs.

    #18579

    benncass
    Participant

    In the console i get:

    POST https://myurl.co.uk/invoices 403 jquery.js:9664
    send @ jquery.js:9664
    ajax @ jquery.js:9215
    ot.(anonymous function) @ jquery.js:9361
    onFormSubmit @ create:3896
    onsubmit @ create:1090
    trigger @ jquery.js:4614
    (anonymous) @ jquery.js:5289
    each @ jquery.js:384
    each @ jquery.js:136
    trigger @ jquery.js:5288
    ot.fn.(anonymous function) @ jquery.js:8481
    submitAction @ create:3861
    onSaveClick @ create:3823
    onSaveDraftClick @ create:3780
    onclick @ create:1408

    #18603

    Hillel Coren
    Keymaster

    Are there any details about the 403 error in the web server error log

    #18604

    benncass
    Participant

    I can’t actually see an error log on the server in the ninja root folder. where else can i look?

    #18605

    Hillel Coren
    Keymaster

    The location can depend on your configuration, you may want to ask your web host.

    #18606

    benncass
    Participant

    my host has said: The error log file only populates if your script writes verbose errors, if there’s nothing to error it won’t print to a file

    This only happened after I updated to the latest version last week.

    #18607

    benncass
    Participant

    OK there is nothing in any error log on the server,.

    #18623

    Hillel Coren
    Keymaster

    Which version did you upgrade from?

    I assume you’re using an admin user.

    #18668

    Hillel Coren
    Keymaster

    What do you see if you load /update (or /public/update) in the browser?

    #18669

    benncass
    Participant

    4.5.7

    and i get this on /update
    The Process class relies on proc_open, which is not available on your PHP installation.

    #18670

    Hillel Coren
    Keymaster

    A common error with shared hosting is “open_basedir restriction in effect”, if you see this you’ll need to either temporarily modify your open_basedir settings or run the update from the command line.

    https://invoice-ninja.readthedocs.io/en/latest/update.html

    #18671

    benncass
    Participant

    I’ve done that and now when i go to /update I get nothing.

    However, I still get the same error when saving an invoice

    #18672

    Hillel Coren
    Keymaster

    By ‘nothing’ do you mean you see a white screen?

    In that case I’d suggest checking the logs for errors.

    #18673

    benncass
    Participant

    No it just redirects to login page and says successfully updated.

    I can’t see anything in any error logs on my hosting.

    #18674

    Hillel Coren
    Keymaster

    Can you try temporarily disabling mod security

    #18675

    benncass
    Participant

    OK that’s worked! Is it safe to have mod security disabled?

    #18676

    Hillel Coren
    Keymaster

    I’d suggest following up with your host to determine which mod security rule was getting tripped.

Viewing 21 posts - 1 through 21 (of 21 total)

You must be logged in to reply to this topic.

Posted in: