Error:
Hifiprofile.netController could not be found.
/var/www/vhosts/mbsale.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/ControllerFactory.php
toggle arguments
|
strpos($controller, '/') !== false || |
|
strpos($controller, '.') !== false || |
|
$firstChar === strtolower($firstChar) |
|
) { |
|
$this->missingController($request); |
|
} |
|
|
|
return App::className($pluginPath . $controller, $namespace, 'Controller') ?: null; |
|
} |
/var/www/vhosts/mbsale.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/ControllerFactory.php
toggle arguments
|
* @return \Cake\Controller\Controller |
|
*/ |
|
public function create(ServerRequest $request, Response $response) |
|
{ |
|
$className = $this->getControllerClass($request); |
|
if (!$className) { |
|
$this->missingController($request); |
|
} |
|
$reflection = new ReflectionClass($className); |
/var/www/vhosts/mbsale.co.uk/httpdocs/vendor/cakephp/cakephp/src/Routing/Filter/ControllerFactoryFilter.php
toggle arguments
|
protected function _getController($request, $response) |
|
{ |
|
$factory = new ControllerFactory(); |
|
|
|
return $factory->create($request, $response); |
|
} |
|
} |
|
|
/var/www/vhosts/mbsale.co.uk/httpdocs/vendor/cakephp/cakephp/src/Routing/Filter/ControllerFactoryFilter.php
toggle arguments
|
public function beforeDispatch(Event $event) |
|
{ |
|
$request = $event->getData('request'); |
|
$response = $event->getData('response'); |
|
$event->setData('controller', $this->_getController($request, $response)); |
|
} |
|
|
|
/** |
|
* Gets controller to use, either plugin or application controller. |
/var/www/vhosts/mbsale.co.uk/httpdocs/vendor/cakephp/cakephp/src/Routing/DispatcherFilter.php
toggle arguments
|
{ |
|
$name = $event->getName(); |
|
list(, $method) = explode('.', $name); |
|
if (empty($this->_config['for']) && empty($this->_config['when'])) { |
|
return $this->{$method}($event); |
|
} |
|
if ($this->matches($event)) { |
|
return $this->{$method}($event); |
|
} |
/var/www/vhosts/mbsale.co.uk/httpdocs/vendor/cakephp/cakephp/src/Event/EventManager.php
toggle arguments
|
protected function _callListener(callable $listener, Event $event) |
|
{ |
|
$data = $event->getData(); |
|
|
|
return $listener($event, ...array_values($data)); |
|
} |
|
|
|
/** |
|
* Returns a list of all listeners for an eventKey in the order they should be called |
/var/www/vhosts/mbsale.co.uk/httpdocs/vendor/cakephp/cakephp/src/Event/EventManager.php
toggle arguments
|
foreach ($listeners as $listener) { |
|
if ($event->isStopped()) { |
|
break; |
|
} |
|
$result = $this->_callListener($listener['callable'], $event); |
|
if ($result === false) { |
|
$event->stopPropagation(); |
|
} |
|
if ($result !== null) { |
/var/www/vhosts/mbsale.co.uk/httpdocs/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php
toggle arguments
|
$subject = $this; |
|
} |
|
|
|
$event = new $this->_eventClass($name, $subject, $data); |
|
$this->getEventManager()->dispatch($event); |
|
|
|
return $event; |
|
} |
|
} |
/var/www/vhosts/mbsale.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php
toggle arguments
|
{ |
|
if (Router::getRequest(true) !== $request) { |
|
Router::pushRequest($request); |
|
} |
|
$beforeEvent = $this->dispatchEvent('Dispatcher.beforeDispatch', compact('request', 'response')); |
|
|
|
$request = $beforeEvent->getData('request'); |
|
if ($beforeEvent->getResult() instanceof Response) { |
|
return $beforeEvent->getResult(); |
/var/www/vhosts/mbsale.co.uk/httpdocs/vendor/cakephp/cakephp/src/Routing/Dispatcher.php
toggle arguments
|
*/ |
|
public function dispatch(ServerRequest $request, Response $response) |
|
{ |
|
$actionDispatcher = new ActionDispatcher(null, $this->getEventManager(), $this->_filters); |
|
$response = $actionDispatcher->dispatch($request, $response); |
|
if (isset($request->params['return'])) { |
|
return $response->body(); |
|
} |
|
|
/var/www/vhosts/mbsale.co.uk/httpdocs/webroot/index.php
toggle arguments
|
|
|
$dispatcher = DispatcherFactory::create(); |
|
$dispatcher->dispatch( |
|
Request::createFromGlobals(), |
|
new Response() |
|
); |
|
|
In the case you tried to access a plugin controller make sure you added it to your composer file or you use the autoload option for the plugin.
Error:
Create the class Hifiprofile.netController below in file: src/Controller/Hifiprofile.netController.php
<?php
namespace App\Controller;
use App\Controller\AppController;
class Hifiprofile.netController extends AppController
{
}
If you want to customize this error message, create
src/Template/Error/missing_controller.ctp