Uncaught Exception: Error: no controller registered in SilverStripe\Dev\DevelopmentAdmin for: bulid IN GET dev/bulid
Closed this issue · 1 comments
rzelnik commented
Hi, I am trying to install SilverStripe on a local Linux desktop with PHP Version 8.0.8 and I am receiving an error message similar to silverstripe/silverstripe-crontask#42:
$ composer create-project silverstripe/installer silverstripe
# well done
$ cd silverstripe
# create .env, set the database connection
$ vendor/bin/sake dev/bulid
ERROR [Emergency]: Uncaught Exception: Error: no controller registered in SilverStripe\Dev\DevelopmentAdmin for: bulid
IN GET dev/bulid
Line 162 in /var/www/sandbox/silverstripe/vendor/silverstripe/framework/src/Dev/DevelopmentAdmin.php
Source
======
153: }
154:
155: if ($controllerClass && class_exists($controllerClass)) {
156: return $controllerClass::create();
157: }
158:
159: $msg = 'Error: no controller registered in ' . static::class . ' for: ' .
$request->param('Action');
160: if (Director::is_cli()) {
161: // in CLI we cant use httpError because of a bug with stuff being in the output already,
see DevAdminControllerTest
* 162: throw new Exception($msg);
163: } else {
164: $this->httpError(404, $msg);
165: }
166: }
167:
168:
Trace
=====
SilverStripe\Dev\DevelopmentAdmin->runRegisteredController
RequestHandler.php:323
SilverStripe\Control\RequestHandler->handleAction
Controller.php:286
SilverStripe\Control\Controller->handleAction
RequestHandler.php:202
SilverStripe\Control\RequestHandler->handleRequest
Controller.php:212
SilverStripe\Control\Controller->handleRequest
Director.php:360
SilverStripe\Control\Director->SilverStripe\Control\{closure}
VersionedHTTPMiddleware.php:41
SilverStripe\Versioned\VersionedHTTPMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
LoginSessionMiddleware.php:29
SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
ConfirmationMiddleware.php:254
SilverStripe\Control\Middleware\ConfirmationMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
ConfirmationMiddleware.php:254
SilverStripe\Control\Middleware\ConfirmationMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
PasswordExpirationMiddleware.php:84
SilverStripe\Security\PasswordExpirationMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
BasicAuthMiddleware.php:68
SilverStripe\Security\BasicAuthMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
AuthenticationMiddleware.php:61
SilverStripe\Security\AuthenticationMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
ExecMetricMiddleware.php:20
SilverStripe\Control\Middleware\ExecMetricMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
CanonicalURLMiddleware.php:190
SilverStripe\Control\Middleware\CanonicalURLMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
HTTPCacheControlMiddleware.php:42
SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
ChangeDetectionMiddleware.php:28
SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
FlushMiddleware.php:27
SilverStripe\Control\Middleware\FlushMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
RequestProcessor.php:66
SilverStripe\Control\RequestProcessor->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
SessionMiddleware.php:20
SilverStripe\Control\Middleware\SessionMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
AllowedHostsMiddleware.php:60
SilverStripe\Control\Middleware\AllowedHostsMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
TrustedProxyMiddleware.php:176
SilverStripe\Control\Middleware\TrustedProxyMiddleware->process
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}
HTTPMiddlewareAware.php:65
SilverStripe\Control\Director->callMiddleware
Director.php:369
SilverStripe\Control\Director->handleRequest
HTTPApplication.php:117
SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}
call_user_func
HTTPApplication.php:136
SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}
HTTPMiddlewareAware.php:65
SilverStripe\Control\HTTPApplication->callMiddleware
HTTPApplication.php:137
SilverStripe\Control\HTTPApplication->execute
HTTPApplication.php:116
SilverStripe\Control\HTTPApplication->handle
cli-script.php:22
[2022-03-12 11:42:29] error-log.ERROR: Uncaught Exception Exception: "Error: no controller registered in SilverStripe\Dev\DevelopmentAdmin for: bulid" at /var/www/sandbox/silverstripe/vendor/silverstripe/framework/src/Dev/DevelopmentAdmin.php line 162 {"exception":"[object] (Exception(code: 0): Error: no controller registered in SilverStripe\\Dev\\DevelopmentAdmin for: bulid at /var/www/sandbox/silverstripe/vendor/silverstripe/framework/src/Dev/DevelopmentAdmin.php:162)"} []
rzelnik commented
My issue was caused by broken mod_rewrite.