I just upgraded to v3.1.1. I added a test client and created an invoice so that I could test the emails that it sends out and to verify that I could process a payment with my Stripe account.
The link that was sent in the email was broken. I was able to fix the link by commenting out some code in the getLink() method in app/Models/Invitation.php file as follows:
I checked the .env file and APP_URL is set appropriately. The modification that I made to app/Models/Invitation.php got the email to include the appropriate url. Any ideas on why that URL is giving me the “Something went wrong…The requested invoice is not available”? Any help on figuring that out without me having to trace through the code and database is greatly appreciated!
I get the error when I try view the actual invoice as the client. Can you at least tell me what the hash in the invoice url relates to in the DB so I can verify that it does actually exist in the DB? Also, you’ll notice that I’ve blurred some text out where it says “If you’d like help please email us at”. It is adding my Amazon SES Username name there instead of the contact email address. I imagine there is a bug somewhere that is printing MAIL_USERNAME instead of MAIL_FROM_ADDRESS.
I have not manually deleted any data from the database.
The query brought back a single result with the correct id and email address. Is this possibly an issue where the system was supposed to send an invitation email to the client to verify their contact email address, and that didn’t happen, or do “invitations” refer only to an individual invoice?
Also, adding CONTACT_EMAIL to the .env file did not fix the email address issue. Not extremely concerned with this issue right now.
Thanks so much for your help! Changing the subdomain setting to website and adding my base url got it working. Apologies for not checking that earlier. I misunderstood your original response, and thought that there wasn’t a setting to turn subdomain off. It is under Settings -> Advanced Settings -> Client Portal for anyone else that has this issue.