Everything went well, except I can’t save drafts of invoices or send them out. I get the error message “There was an error saving your invoice The client field is required.”
When I enable debugging in the settings, there is one exception:
The given data failed to pass validation.
/var/www/virtual/USERNAME/SUBDOMAIN.DOMAIN/vendor/laravel/framework/src/Illuminate/Foundation/Http/FormRequest.php#125
Illuminate\Validation\ValidationException
I confirmed that the MySQL users database has is_admin = 1
The error remains both with and without the ‘attach PDF to email’ setting.
storage/logs/laravel-error log shows no new errors
I tried it by adding a client and choosing that one, and by creating one right in the form. Same result. Is there any field that absolutely needs to be there? I entered standard stuff like name, contact.
Do you think that could cause a problem? I don’t see why PHP 7.0 would try to load a PHP 5 lib. But then I also don’t really know much about how PHP works
I found out that Apache’s error_log contains some info:
[Wed Apr 17 15:46:24 2019] [warn] [client XXXXXXXX] mod_fcgid: stderr: PHP Warning: Unknown: Unable to create temporary file, Check permissions in temporary files directory. in Unknown on line 0, referer: https://SUBDOMAIN.DOMAIN/invoices/create
[Wed Apr 17 15:46:24 2019] [warn] [client XXXXXXXX] mod_fcgid: stderr: PHP Warning: Unknown: POST data can't be buffered; all data discarded in Unknown on line 0, referer: https://SUBDOMAIN.DOMAIN/invoices/create