I’m on a shared host server. Not familiar with this “php artisan optimize”. Is it accessible through URL in browser?
I’m playing with app/Http/Controllers/InvoiceController.php in an attempt to track down this error message still.
Entered Log::info('update info');
and got this in debug Class 'App\Http\Controllers\Log' not found/home/hepburn/public_html/billing/app/Http/Controllers/InvoiceController.php#383
I tried with Log::error('error…'); and it logged an error in Laravel-error.log…with a mile of extra garble.
I’m not understanding why info error logging is not working. It may be beside the point. I just want to put more meaningful info logging injected into the code to help track what causes this Error message to appear.
I will look at the other files you’ve pointed to.
Could it be from some cached data locally? I’ve noticed that I do not have to log in after machine reboot which should not be the case. How/where does the app check that I’m logged in and have permissions? is this info stored in a cookie? Maybe this is the issue?
I’ve also checked behavior in MS Edge and get the same thing.
There are At least TWO places to send emails from:
From the Invoice Edit view where there are 4 buttons: Download PDF, Save Invoice, Email Invoice, More Actions^
In this view, clicking on Email Invoice returns A) A prompt that says “Are You Sure?” [client name] [email address]; click yes and I get another prompt that says “There was an error saving your invoice Forbidden” with OK
From the Invoice LIST VIEW you can select one (multiple?) invoices, then using the DD-Listbox (defaulted to show “Archive”), you can select “Email Invoice” which briefly shows “successfully emailed invoice” at the top of the webpage then disappears. No other prompt appears.
Method 2 sends the email with an attached invoice!
This I’d call a work-around. In the edit window I’m able to save the changes to an invoice. I can also download, save, and attach the pdf as an “attached document” which gets sent.
I have also noted that message is triggered when you add attachments to a quote. Remove attachments and msg goes away. This happens when “include attachments” in settings is unchecked. Have not dug further…yet (error log etc etc.)
Which PHP version were you using and which did you downgrade to?
It looks like you’ve already tried a clean install
Can you confirm you’re seeing the exact same error: “There was an error saving your invoice Forbidden”. The word ‘Forbidden’ implies it’s an application permission issue, you can try adding return true; here:
I will get a chance to work on this in a couple of days. I will send you a screen shot of PHP modules I have active on host. Unfortunately I only have access to the one remote server right now.