Client portal customer info remains blank

Has anyone had issues witht he client portal on self-hosted working fine but not displaying or retaining client user profile information (name, addy, etc…). Every single field is visible but I cant figure out how to have it display the clients info that I have set up. If i try to add it on the portal itself (pretending I’m the customer), nothing gets saved and I get an error. The invoices display just fine.

This is the error I get when trying to SAVE from the client portal (pretending Im the client)

Oops! An Error Occurred

The server returned a “405 Method Not Allowed”.

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Hi,

Are there any errors in storage/logs?

cc @david

@ajaj

We see this if the APP_URL is different to what you are using, typically this means either adding or removing the trailing /public from the URL

No error in storage/logs that I can see. I did see the other post where there was an extra / in the url. This is not the case in my instance (FYI- it was installed via Softaculous due to my limited and dangerous knowledge, lol)).

The client portal URL when trying to view or save profile is:
https://clients.mysite.com/ninja/public/client/profile/VolejRejNm/edit

The URL set in the .env is:
APP_URL=“https://clients.mysite.com/ninja/public

I assume the extra "/’ that was causing issues in the past for people would have been in the .env URL setting correct? In my case, the URL is correct.

All the invoices to the client show up correctly on the portal. It just the client profile info that loads up blank and will not allow you save info without the error. I think this will give the client issues trying to save CC numbers and ACH details for payments correct? That is a huge problem for me. Help!

Sorry I updated the url. Apparently hiding my true site name for this posting with x’s wasn’t the best idea, lol. Updated with “mysite” instead.

@david @hillel

Guys, any other ideas or areas to check? see my reply above.

When I inspected the profile page, I had these errors:

Failed to load resource: the server responded with a status of 404 ()
edit:1947

   Livewire: The published Livewire assets are out of date

See: https://laravel-livewire.com/docs/installation/
(anonymous) @ edit:1947
livewire.js:1

   Failed to load resource: the server responded with a status of 404 ()

edit:1947

   Uncaught ReferenceError: Livewire is not defined
at edit:1947:365

@ajaj

Do you see the URL that livewire is attempting to reach? I think this may be the issue.

in the .env you’ll want to update ASSET_URL to whatever livewire is attempting to reach. typically this could be with or without the trailing /public

So it is trying to connect to “https://clients.mysite.com/vendor/livewire/livewire.js?id=f092ba91a90e56843ffc
I checked the .env and can not find any label for ASSET_URL. I figured maybe this was an install error so I checked the env.example and there was no ASSET_URL either. ???

As just mentioned, its trying to reach “https://clients.mysite.com/vendor/livewire/livewire.js?id=f092ba91a90e56843ffc”.
I believe it should be vendor/livewire/livewire/livewire.js

I used Softaculous for the install so I didn’t set it up myself. I have no idea why there is a double folder structure. Would the easiest fix be to just copy the files (especially the js file) from the second folder into the first? This way it will not affect anything using the double folder URL.

Im going to have to contact Softaculous I think. I discovered its worse than that.

I realized the link it was looking for was:
mysite.com/vendor/livewire/livewire.js. It lacks the ninja install directory as well. It should be: mysite.com/ninja/vendor/livewire/livewire/livewire.js

Not sure how this happened or what other errors I will find

Hi,

It may help to add /ninja to the APP_URL in the .env file.

It already is:
APP_URL=“https://clients.mysite.com/ninja/public

I did copy and move the directories over, but still getting the same errors. Help!

You shouldn’t have to move any directories, you may want to try a fresh install.

I contacted Softaculous with the discoveries. Unfortunately I am at their mercy. I can try a fresh install but am limited to using Softaculous because I do not know what I’m doing otherwise. We will see what they say first. Thanks guys. I’ll eventually buy you a coffee somehow lol.

@ajaj

You’ll find the assets that are trying to be reached are in the folder public/vendor/livewire.

It still sounds like a path issue you are seeing. I would suggest trying to add public/ to the ASSET_URL .env variable. this is different to the APP_URL ie

ASSET_URL=https://clients.mysite.com/ninja/public

Yea, again there is no ASSET_URL in the .env file. It was never added by Softaculous when it was loaded.

I can manually add it myself but then would have to run php artisan optimize right? I have no clue how to do that. I use Plesk so would use the task scheduler they offer. I can run a command and a script, but I have no idea how to write the full command or what path to put for the argument (and the argument would be php artisan optimize I assume).

@ajaj

Correct after updating the .env you need to refresh the cache, if you do not have cli access, you can do this by hitting this route:

https://yourdomain.com/update?secret=secret

secret=secret ???