SimpleSamlphp InvalidArgumentError

206 views
Skip to first unread message

Andrew Asche

unread,
Sep 28, 2023, 9:49:06 AM9/28/23
to SimpleSAMLphp
Hi all,

I'm getting an error when trying to access the simplesaml Front Page. I haven't been able to access this page since I have started installing the simplesamlphp 2.0. I have a installation of simplesaml 1.19.6, but I haven't been able to get this simplesamlphp 2.0.6 working yet.

Error:
[critical] Uncaught PHP Exception InvalidArgumentException: "The controller for URI "/core/welcome" is not callable: Controller "SimpleSAML\Module\core\Controller\Login" has required constructor arguments and does not exist in the container. Did you forget to define the controller as a service?" at /<webserver directory>/simplesamlphp-2.0.6/vendor/symfony/http-kernel/Controller/ControllerResolver.php line 88

Any help or suggestions would be appreciated.

Thanks

Daniel Bülau - EBS

unread,
Jan 22, 2024, 10:00:59 AM1/22/24
to SimpleSAMLphp
Hello Andrew,

have you been able to find a solution yet? I am currently having problems with a similar issue and would be very grateful for a tip.


SimpleSAML\Error\Error: UNHANDLEDEXCEPTION
Backtrace: 2 public/_include.php:28 (SimpleSAML_exception_handler) 1 /var/www/xxx/vendor/symfony/error-handler/ErrorHandler.php:607 (Symfony\Component\ErrorHandler\ErrorHandler::handleException) 0 [builtin] (N/A) Caused by: InvalidArgumentException: The controller for URI "/saml/sp/metadata/xxx-sp" is not callable: Controller "SimpleSAML\Module\saml\Controller\ServiceProvider" has required constructor arguments and does not exist in the container. Did you forget to define the controller as a service? Backtrace: 5 /var/www/xxx/vendor/symfony/http-kernel/Controller/ControllerResolver.php:88 (Symfony\Component\HttpKernel\Controller\ControllerResolver::getController) 4 /var/www/xxx/vendor/symfony/http-kernel/HttpKernel.php:146 (Symfony\Component\HttpKernel\HttpKernel::handleRaw) 3 /var/www/xxx/vendor/symfony/http-kernel/HttpKernel.php:75 (Symfony\Component\HttpKernel\HttpKernel::handle) 2 /var/www/xxx/vendor/symfony/http-kernel/Kernel.php:202 (Symfony\Component\HttpKernel\Kernel::handle) 1 src/SimpleSAML/Module.php:234 (SimpleSAML\Module::process) 0 public/module.php:17 (N/A)



Thank you very much and best regards

Andrew Asche

unread,
Jan 22, 2024, 10:07:05 AM1/22/24
to SimpleSAMLphp
I had to put the simplesamlphp folder in /var and not have it in the webserver folder.

Wilhelm Faber

unread,
Jun 8, 2025, 6:29:36 PMJun 8
to SimpleSAMLphp
I'm having the same problem as @Andrew, and I have no idea what's going on. This is my tenth installation using a CI script from Gitlab. The previous installations worked, and I was able to access both the welcome page and the admin page.

Backtrace: 2 src/SimpleSAML/Error/ExceptionHandler.php:36 (SimpleSAML\Error\ExceptionHandler::customExceptionHandler) 1 vendor/symfony/error-handler/ErrorHandler.php:538 (Symfony\Component\ErrorHandler\ErrorHandler::handleException) 0 [builtin] (N/A) Caused by: InvalidArgumentException: The controller for URI "/core/welcome" is not callable: Controller "SimpleSAML\Module\core\Controller\Login" has required constructor arguments and does not exist in the container. Did you forget to define the controller as a service? Backtrace: 5 vendor/symfony/http-kernel/Controller/ControllerResolver.php:98 (Symfony\Component\HttpKernel\Controller\ControllerResolver::getController) 4 vendor/symfony/http-kernel/HttpKernel.php:164 (Symfony\Component\HttpKernel\HttpKernel::handleRaw) 3 vendor/symfony/http-kernel/HttpKernel.php:76 (Symfony\Component\HttpKernel\HttpKernel::handle) 2 vendor/symfony/http-kernel/Kernel.php:197 (Symfony\Component\HttpKernel\Kernel::handle) 1 src/SimpleSAML/Module.php:234 (SimpleSAML\Module::process) 0 public/module.php:17 (N/A)
My installation path is /var/www/simplesaml

My apache config is:

<Directory "/var/www/simplesaml/public">

    Options Indexes FollowSymLinks

    AllowOverride All

    Require all granted

    SetEnv SIMPLESAMLPHP_CONFIG_DIR /var/www/simplesaml/config

</Directory>

<IfModule alias_module>

Alias /simplesaml/ "/var/www/simplesaml/public/"
.....

Can someone please help?

Andrew Asche

unread,
Jun 8, 2025, 10:03:46 PMJun 8
to simple...@googlegroups.com
What directory is your simplesamlphp in ? I think the documentation says where it should be. That is the fix I used 


----------
Andrew Asche
University Services

--
This is a mailing list for users of SimpleSAMLphp, not a support service. If you are willing to buy commercial support, please take a look here:
 
https://simplesamlphp.org/support
 
Before sending your question, make sure it is related to SimpleSAMLphp, and not your web server's configuration or any other third-party software. This mailing list cannot help with software that uses SimpleSAMLphp, only regarding SimpleSAMLphp itself.
 
Make sure to read the documentation:
 
https://simplesamlphp.org/docs/stable/
 
If you have an issue with SimpleSAMLphp that you cannot resolve and reading the documentation doesn't help, you are more than welcome to ask here for help. Subscribe to the list and send an email with your question. However, you will be expected to comply with some minimum, common sense standards in your questions. Please read this carefully:
 
http://catb.org/~esr/faqs/smart-questions.html
---
You received this message because you are subscribed to a topic in the Google Groups "SimpleSAMLphp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simplesamlphp/vt7pRWPaYSM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simplesamlph...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/simplesamlphp/c11ea79d-fd21-456b-a317-f64bb8c65af7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages