After many many many tests, I KNOW for a fact the issue here is the asset_url. The problem is that after following many different fixes that I’ve found here and all over the Internet, I fix something but something else brakes.
Here are my fixes and the issues:
-
Fix #1: adding the asset_url on the env file, doesn’t fix anything. The livewire.js continues going to the main dir to look for the file.
-
Fix #2: adding env(‘ASSET_URL’), to the livewire config file, solves that issue, but brings another issue Internal Server Error with a strict-origin-when-cross-origin. The same result when adding only env(‘APP_URL’), or adding both. I saw another adding env(‘ASSET_URL’, null), which brakes completely the admin and the preview.
-
Fix #3: adding the full domain to the vendor file as explained here:
Client Portal page changes or sorting - #6 by extremeskillz
…that also failed.
FYI: I did 2 new installations, one on the root of another account, and another one on a sub-dir. The one on root worked beautifully when previewing the invoice, the one on sub-dir did the same thing, same error. The one of the error was put on root and changed the env lines accordingly… It worked fine.
Resume: The issue or bug is when IN is in a sub-dir. Can someone now please help me? I’m a donor through white labeling but I can donate something extra if it is required. @hillel @david