500 Server Error on Client Portal

Hi All, Noticed this

Currently running v5.3.6-C58 on Docker/Linux and the problem also existed in 5.3.1. Once the portal is opened or authenticated by any user, this error:

Nothing else has changed. No other issues in IN that I see. Looking at things, the laravel.log appears to have a great deal of info after a 500 error. I’ve done my best to isolate the key lines:

[2021-09-05 14:45:00] production.ERROR: Undefined property: stdClass::$is_enabled (View: /var/www/app/resources/views/portal/ninja2020/invoices/index.blade.php) {“userId”:29


[previous exception] [object] (ErrorException(code: 0): Undefined property: stdClass::$is_enabled at /var/www/app/app/Services/Client/PaymentMethod.php:147)

The full log on 500 error here: CWLbin - m2w3sp9w.txt

Thanks for reporting this!

@david @ben any thoughts?

1 Like

Have you added or removed a payment gateway recently?

If you have a payment gateway configured, the easiest way to get past this is to edit the gateway change a setting - then save and then change it back again.

Hi @david, no changes in the payment gateway.

I went to a payment gateway, changed credit card support (added Mastercard), saved it, and the portal was accessible. Seems to have sorted that out.