Upgrade from v4.5.19 to v4.5.20 breaks site (self-hosted)

Sorry, if you also see the error there then it won’t work

Another option may be using the command line, run:

php artisan tinker
bcrypt('new_password'); 

When I run php artisan tinker in command line I get the following response:

In Configuration.php line 614:

Unable to create PsySH runtime directory. Make sure PHP is able to write to
/run/user/796 in order to continue.

Maybe try running using sudo

Thanks again @hillel I certainly got lost trying to figure out how to use sudo.

I managed to restore the database from last week and successfully logged in via the Android app but on both browser and Windows app not successful, both return:

TimeoutException after 0:00:30.000000: Future not completed

I reset my password via the Android app and it works just cant get in via a browser.

I haven’t been using One Time Password (Optional) or Secret (Optional) at login because I dont know what those are.

Also while in the Android app I created a new user with admin permissions, its says “An email has been sent to confirm the email address” but still no email getting delivered.

Here’s my mail settings in .env file:

MAIL_MAILER=log
MAIL_HOST=mail.mydomain.com
MAIL_PORT=465
MAIL_USERNAME="user@mydomain.com"
MAIL_PASSWORD=“password”
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="user@mydomain.com"
MAIL_FROM_NAME=“Business Name”

Do you think the above settings are correct?

Thanks

UPDATE:
I’ve finally got email working as follows:
MAIL_MAILER=smtp
MAIL_HOST=mail.mydomain.com
MAIL_PORT=465
MAIL_USERNAME="user@mydomain.com"
MAIL_PASSWORD=“password”
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS="user@mydomain.com"
MAIL_FROM_NAME=“Business Name”

Also force sent an invoice and I received it and the notice of it been sent.

Now just to figure out why I cant login via browser or the Windows app option, still showing:

TimeoutException after 0:00:30.000000: Future not completed

Are there any errors in the web server error logs or in storage/logs/

Also, what do you mean by the Windows app? We haven’t released it yet.

Hi @hillel I’ll check the error logs in the morning and report back.

The Windows app (not an app really) I meant is a Google Chrome app on Windows 10, they’re simply shortcuts to web urls but are independent of the browser and chromeless in appearance.

Install or opened via browser:

Thanks for your patience and assistance.

Hi @hillel and @david I’ve finally got up and running :slight_smile:

I upgraded to version v5.2.15-C56 via Softaculous and accessed the app on Android, ran the health check, cleared cache from there and also ran php artisan optimize via shell and went back to browser login and boom I got in. No errors and emails are working. Happy days!

I’ll report back if I find any issues.

Thanks for all your patience guys.

1 Like

Glad to hear it, thanks for the update!

1 Like

A new issue I reported on another thread but got no reply:

There is an issue when trying to add a Payment Method via the Client dashboard, running Invoice Ninja v5.2.17-C56 returns:

{"message":"You are not authorized to view or perform this action"}

Thanks for letting us know!

cc @david @ben

@kieranmccarthy Is mod_security enabled on the platform you are using?

Hi @david I will have to ask my host, if it is enabled is there a solution/workaround that will help?

Thanks

i think some exceptions in modsecurity rulelist may need to be included to solve the issue.

Here’s what my host said in response:

“Mod Security is enabled on our shared hosting servers, including yours.”

@kieranmccarthy

I would ask them to disable for this site so that when can exclude whether mod_security is the issue.

Host response to turning off mod_security:

I’m afraid we will not disable Mod Security on any shared hosting account for any reason. If someone is experiencing a problem and they believe it’s related to Mod Security have them go to http://whatsmyip.ie and tell us the IP address they see there. We’ll check the Mod Security logs for any errors triggered from that IP and whitelist any Mod Security Rules that are being triggered.

When I submitted my own IP address they checked and confirmed:

Your IP address hasn’t triggered any Mod Security rules on the server today. It’s not related to this issue anyway as Mod Security wouldn’t generate a 401 error:

ok, i think this may be a path issue

Does your APP_URL in your .env file contain the full path

/invoice/public ?

If it does not, you may need to set an additional .env var

ASSETS_URL=https://your.url.com/invoice/public/

Hi @david

I followed your instruction and added: ASSETS_URL=https://www.mydomain.com/invoice/public/ to the .env file then cleared cache via Health Check from dashboard, then logged in to a client dashboard but I still get the same error when trying to add a payment method:

{“message”:“You are not authorized to view or perform this action”}

These are the two entries in my .env file currently:

APP_URL=https://www.mydomain.com/invoice/public
ASSETS_URL=https://www.mydomain.com/invoice/public

When logged into dashboard my default url is: https://www.mydomain.com/invoice/public/#/

Open to suggestions, thanks.

I’m not sure, i can’t recreate this locally.