Author Topic: Slim Application Error  (Read 220 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Slim Application Error
« on: July 10, 2024, 04:12:58 AM »
Hi team,

I'm encountering an issue while attempting to communicate with the API for add domain.

When using the endpoint https://hostname:2304/v1/admindomains, I receive the following error:

Slim Application Error

The application could not run because of the following error:

Details

Type: ErrorException
Code: 8
Message: Trying to access array offset on value of type null
File: /usr/local/cwpsrv/htdocs/resources/admin/include/functions/func_user.php
Trace:

#0 /usr/local/cwpsrv/htdocs/resources/admin/include/functions/func_user.php(0): Slim\Slim::handleErrors()
#1 /usr/local/cwpsrv/var/services/api/v1/app/routes/modules/domains.php(0): Main_AddNewDomain()
#2 /usr/local/cwpsrv/var/services/api/v1/Slim/Route.php(0): {closure}()
#3 /usr/local/cwpsrv/var/services/api/v1/Slim/Slim.php(0): Slim\Route->dispatch()
#4 /usr/local/cwpsrv/var/services/api/v1/Slim/Middleware/Flash.php(0): Slim\Slim->call()
#5 /usr/local/cwpsrv/var/services/api/v1/Slim/Middleware/MethodOverride.php(0): Slim\Middleware\Flash->call()
#6 /usr/local/cwpsrv/var/services/api/v1/Slim/Middleware/PrettyExceptions.php(0): Slim\Middleware\MethodOverride->call()
#7 /usr/local/cwpsrv/var/services/api/v1/Slim/Slim.php(0): Slim\Middleware\PrettyExceptions->call()
#8 /usr/local/cwpsrv/var/services/api/v1/index.php(0): Slim\Slim->run()
#9 {main}


I am using AlmaLinux 9.4 with CWP version 0.9.8.1181

Any suggestions on how to resolve this?

Thank you!

Offline
*****
Re: Slim Application Error
« Reply #1 on: July 10, 2024, 04:46:13 AM »
CWP's EL9 support is still in beta, so expect some errors (and report them to the dev team).