Having no end of trouble here. I’ve thankfully got it all backup up, but its driving me crazy.
Quite simply, overwrote the files from 4.5.16 to 4.5.46 to upgrade them running php 7.3. I just get a forbidden with anything but my original files actually in place and I am struggling to understand why. The .env has not been touched and moving the old files back into place sees everything load again. I cannot see any permission issues etc, so I just cannot figure out why a full FTP upload / overwrite that took hours just refuses to play.
Ta, was the rewrite for /public in the new .htaccess causing the issue. Sigh!
Now will try the v5 import.
Just wondering. when testing v5 before I was getting a 500 error trying to preview the invoice. At least can keep billing clients until I figure this out but is there a fix for this issue?
Thanks so much Hillel,
Actually it was pretty easy to figure out. Simply the .htaccess needs to point to /public and the overwriting of that with new version blocked that and was not in the instructions.
To save me pain I installed a trial of Scriptaculous and got 5 running in minutes, amen!
But one issue related to the above, I create the PDFs fine, but I seem to be only able to save the invoice once. Trying to save any changes gets me a 500 error which kinda sucks.
Is it worth changing handler to fix this or would the problem be elsewhere?
Glad otherwise to be in 5. It has some quirks that take a bit of getting used to, modding invoices is causing me pain and I wish Zapier hadn’t dumped the create task handler that was in v4, but otherwise awesome work and very much appreciated!
Thanks Hillel,
Bit late replying but it will generate a PDF to start with and then after save I cannot then update the PDF without the error and then cannot save any further invoice updates as it errors out from there.
The logs have:
[2022-01-28 11:21:43] production.ERROR: There was an error generating the PDF with Phantom JS {“exception”:"[object] (App\Exceptions\PhantomPDFFailure(code: 0): There was an error generating the PDF with Phantom JS at /home/spacedotnet/public_html/nja/app/Utils/PhantomJS/Phantom.php:150)
[stacktrace] #0 /home/spacedotnet/public_html/nja/app/Utils/PhantomJS/Phantom.php(100): App\Utils\PhantomJS\Phantom->checkMime(’{“name”:"HttpSt…’, Object(App\Models\InvoiceInvitation), ‘invoice’) #1 /home/spacedotnet/public_html/nja/app/Jobs/Entity/CreateEntityPdf.php(122): App\Utils\PhantomJS\Phantom->generate(Object(App\Models\InvoiceInvitation)) #2 /home/spacedotnet/public_html/nja/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Jobs\Entity\CreateEntityPdf->handle() #3 /home/spacedotnet/public_html/nja/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() #4
Thanks
I thought I did all this when I installed.
Is there any tut link on setting the cron up properly?
And is upgrading likely to fix that PDF issue?