Proposal sent? "Could not save invoice" error thrown

Hey,

I faced a new error. I was creating a new proposal with only two items and a pdf with a size of 964kb. If I click to send an initial email, nothing happens but the background becomes as twice as dark. If I am aborting this action the “initial mail closes” and the error message (could not save invoice. error.) is shown… How can I verify that the email is sent without asking my customer? Why can’t the software store my proposal/the invoice?
Image 1
Image 2

I’d suggest checking your web server error logs.

Maybe it’s related to the file size limits?

Hey Hillel,

thanks for your answer. Hmmm. I double checked everything. There is nothing in the logs. Even if I try to send an invoice without additional documents the error occurs. Weird. =( What else can I do?
I will activate the laravel console and check if I can get any additional infos.

Maybe try to find more details about the error in the browser console.

There should be a message in either the webserver or application error logs.

Ok. I got two errors. Here is my browsers console output:

jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/glyphicons-halflings-regular.woff
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/glyphicons-halflings-regular.ttf
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/fontawesome-webfont.woff2?v=4.7.0
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/fontawesome-webfont.woff?v=4.7.0
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/fontawesome-webfont.ttf?v=4.7.0
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-100/Roboto-100.woff2
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-100/Roboto-100.woff
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-100/Roboto-100.ttf
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-regular/Roboto-regular.woff2
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-regular/Roboto-regular.woff
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-regular/Roboto-regular.ttf
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-700/Roboto-700.woff2
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-700/Roboto-700.woff
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-700/Roboto-700.ttf
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-900/Roboto-900.woff2
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-900/Roboto-900.woff
jquery.js:10141 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-900/Roboto-900.ttf

edit:1 Failed to start loading

edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/glyphicons-halflings-regular.ttf
edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/fontawesome-webfont.woff?v=4.7.0
edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/fontawesome-webfont.ttf?v=4.7.0
edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-100/Roboto-100.woff2
edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-100/Roboto-100.woff
edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-100/Roboto-100.ttf
edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-regular/Roboto-regular.woff
edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-regular/Roboto-regular.ttf
edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-700/Roboto-700.woff
edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-700/Roboto-700.ttf
edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-900/Roboto-900.woff2
edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-900/Roboto-900.woff
edit:1 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-900/Roboto-900.ttf
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/glyphicons-halflings-regular.ttf
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/fontawesome-webfont.woff?v=4.7.0
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/fontawesome-webfont.ttf?v=4.7.0
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-100/Roboto-100.woff2
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-100/Roboto-100.woff
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-100/Roboto-100.ttf
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-regular/Roboto-regular.woff
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-regular/Roboto-regular.ttf
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-700/Roboto-700.woff
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-700/Roboto-700.ttf
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-900/Roboto-900.woff2
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-900/Roboto-900.woff
quill.min.js:8 Slow network is detected. Fallback font will be used while loading: https://mydomain/fonts/Roboto-900/Roboto-900.ttf

/invoices/29 Failed to load resource: the server responded with a status of 500 ()

Following is the Laravel console spitting:

JIdQ5xY0wFwBw7liA6B9zmDdvJbH2afu/eb7f9d78db9af9ba587e18fa95d68fd744214b75.pdf
/www/htdocs/myfolder/invoice/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemAdapter.php#61
Illuminate\Contracts\Filesystem\FileNotFoundException
try {
return $this->driver->read($path);
} catch (FileNotFoundException $e) {
throw new ContractFileNotFoundException($path, $e->getCode(), $e);
}
}

File not found at path: JIdQ5xY0wFwBw7liA6B9zmDdvJbH2afu/eb7f9d78db9af9ba587e18fa95d68fd744214b75.pdf
/www/htdocs/myfolder/invoice/vendor/league/flysystem/src/Filesystem.php#386
League\Flysystem\FileNotFoundException
public function assertPresent($path)
{
if ($this->config->get(‘disable_asserts’, false) === false && ! $this->has($path)) {
throw new FileNotFoundException($path);
}
}

Sorry for multiposting… I found out why this error occured:

I’ve updated the software. In my settings I included some documents. After the update the documents weren’t in the installation.

How can I prevent deleting my uploaded standard files to be deleted when updating invoice ninja?

How did you update the app? If you overwrite the new code it shouldn’t erase your documents.

I am updating via ftp. Backup first (with db too) and adding the files and folders from fresh downloaded self-host zip. I cannot update via ssh or so. FTP is the only chance or via php script.
Do you plan to integrate an auto-update?

You can auto update with the shell script: https://pastebin.com/j657uv9A

I’d suggest adding the new code to your app, rather than your files to the new code.

I have no access to the shell. Its a shared host. =(