Error Client Portal

App Version: v4.5.38
White Label: No - TXn9s80v2m0y4kxtDn3TUsh8i1ZiJBr2
Server OS: Linux 3.10.0-962.3.2.lve1.5.49.el7.x86_64
PHP Version: 7.3.27
MySQL Version: 10.3.29-MariaDB-log

Error when client click VIEW button at email to view thier portal and it show white screen with “Whoops, looks like something went wrong.”

vendor/turbo124/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. {“context”:“PHP”,“user_id”:1,“account_id”:“1”,“user_name”:“Sales Department”,“method”:“GET”,“user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36”,“locale”:“en”,“ip”:“42.153.47.117”,“count”:1,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“view/muz1ix6nvrkycq4jqfiavaar3pn72bxy”} []
[2021-05-10 18:11:05] production.ERROR: Illuminate\Contracts\Encryption\DecryptException [0] : /home/thekieys/public_html/plusdomain/management/vendor/turbo124/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. {“context”:“PHP”,“user_id”:1,“account_id”:“1”,“user_name”:“Sales Department”,“method”:“GET”,“user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36”,“locale”:“en”,“ip”:“42.153.47.117”,“count”:2,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“view/muz1ix6nvrkycq4jqfiavaar3pn72bxy”} []
[2021-05-10 18:11:36] production.ERROR: Illuminate\Contracts\Encryption\DecryptException [0] : /home/thekieys/public_html/plusdomain/management/vendor/turbo124/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. {“context”:“PHP”,“user_id”:0,“account_id”:0,“user_name”:"",“method”:“GET”,“user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 (PhantomJsCloud.com/2.0.2)”,“locale”:“en”,“ip”:“34.123.62.225”,“count”:1,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“view/muz1ix6nvrkycq4jqfiavaar3pn72bxy”} []
[2021-05-10 18:12:15] production.ERROR: Illuminate\Contracts\Encryption\DecryptException [0] : /home/thekieys/public_html/plusdomain/management/vendor/turbo124/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. {“context”:“PHP”,“user_id”:0,“account_id”:0,“user_name”:"",“method”:“GET”,“user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36”,“locale”:“en”,“ip”:“42.153.47.117”,“count”:1,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“view/muz1ix6nvrkycq4jqfiavaar3pn72bxy”} []

Hi,

Did the error just start happening or did something change?

Note: please only ask questions in one place, it’s the same people answering everywhere.

Is it possible the value of APP_KEY in the .env file has changed?

It just start happening…before this its work fine.

Im install it using softcolus in cpanel…then one day i moved it to new domain…then i restore it back to original domain…after that error happened.

When moving the app you need to copy over the .env file.

Do you still have the original .env file?

If i dont have the origin .env, how to fix it? Because when i view the current .env file, all the detail database working fine. Can u help/assist me to fix it?

You can workaround it by manually marking the records in the account_gateways table as deleted.

Note: this will invalidate any stored tokens.

So i need to enter my phpmyadmin database, then check the token?

You can use phpmyadmin, you want to mark the rows as deleted. I believe you can use this SQL query.

update account_gateways set deleted_at = now();.

Note: I suggest backing up your database first.

THANKS ALOT! All my problem are fix now! :+1: :+1: