Whoops, looks like something went wrong when clicking on invoice number

Please advice how to fix this error.
When I click on an invoice, I got this error message with black page.
Whoops, looks like something went wrong.

and here is laravel error logs.

[2023-05-13 01:21:23] production.ERROR: ***ErrorException*** [0] : /home/alatprom/public_html/billing/app/Models/Traits/Inviteable.php [Line 77] => implode(): Passing glue string after array is deprecated. Swap the parameters  {"context":"PHP","user_id":1,"account_id":2,"user_name":"Billing Alat Promosi","method":"GET","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","locale":"id","ip":"182.253.251.189","count":5,"is_console":"no","is_api":"no","db_server":"mysql","url":"invoices/1430/edit"} []
[2023-05-13 01:22:02] production.ERROR: ***ErrorException*** [0] : /home/alatprom/public_html/billing/app/Models/Traits/Inviteable.php [Line 77] => implode(): Passing glue string after array is deprecated. Swap the parameters  {"context":"PHP","user_id":1,"account_id":2,"user_name":"Billing Alat Promosi","method":"GET","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","locale":"id","ip":"182.253.251.189","count":1,"is_console":"no","is_api":"no","db_server":"mysql","url":"invoices/1433/edit"} []
[2023-05-13 08:48:06] production.ERROR: ***Symfony\Component\Debug\Exception\FatalThrowableError*** [0] : /home/alatprom/public_html/billing/vendor/symfony/translation/Translator.php [Line 91] => Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE)  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"GET","user_agent":"","locale":"id","ip":"127.0.0.1","count":1,"is_console":"yes","is_api":"no","db_server":"mysql","url":"/"} []
[2023-05-13 22:56:46] production.ERROR: ***ErrorException*** [0] : /home/alatprom/public_html/billing/app/Models/Traits/Inviteable.php [Line 77] => implode(): Passing glue string after array is deprecated. Swap the parameters  {"context":"PHP","user_id":1,"account_id":2,"user_name":"Billing Alat Promosi","method":"GET","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","locale":"id","ip":"182.253.251.189","count":1,"is_console":"no","is_api":"no","db_server":"mysql","url":"invoices/1433/edit"} []
[2023-05-13 22:56:59] production.ERROR: ***Illuminate\Contracts\Encryption\DecryptException*** [0] : /home/alatprom/public_html/billing/vendor/turbo124/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid.  {"context":"PHP","user_id":1,"account_id":2,"user_name":"Billing Alat Promosi","method":"GET","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36","locale":"id","ip":"182.253.251.189","count":1,"is_console":"no","is_api":"no","db_server":"mysql","url":"api/gateways"} []

and stacktrace error log

#72 /home/alatprom/public_html/billing/vendor/turbo124/framework/src/Illuminate/Pipeline/Pipeline.php(149): Barryvdh\Cors\HandlePreflight->handle(Object(Illuminate\Http\Request), Object(Closure))
#73 /home/alatprom/public_html/billing/vendor/turbo124/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#74 /home/alatprom/public_html/billing/vendor/turbo124/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#75 /home/alatprom/public_html/billing/vendor/turbo124/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#76 /home/alatprom/public_html/billing/vendor/turbo124/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#77 /home/alatprom/public_html/billing/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#78 {main}

Thank you.

Hi,

The error logs look like different issues, which version of PHP are you using?

It looks like you may be using PHP 8 but v4 only supports PHP 7.

It is PHP 7.4 (ea-php74)

Which version of the app are you using?

It is version 4.5.34 sir

It may help to change to PHP 7.3 or update to the latest version of v4.

Did anything change to start the problem?

1 Like

I have tried to change among
PHP 7.4 (ea-php74) / PHP 7.4 (alt-php74)
PHP 8.0 (ea-php80) / PHP 8.0 (alt-php80)
PHP 8.1 (ea-php81) / PHP 8.1 (alt-php81)

Now I will try 7.3 and will update here

From the errors you’ll also need to replace APP_KEY in the .env file with the original value.

Wow… switching to PHP 7.3 (ea-php73) is just fixing the issue.

Do I still have to to replace APP_KEY in the .env file with the original value, if so, what is the original value, I do not remember what it was and I do not remember if I have changed it.

Thank you so much.

If it’s working then you can leave it.

Thank you, I will not change that APP_KEY in the .env

…and I noticed that database name and user is different between in .env and installation details in softaculous, so I am guessing I have been making backups in with wrong db, is it save if I have the one in softaculous?

Sorry, I’m not sure.

it is ok sir, the main problem solved and you make my day.
Have a good one