LimIndustries \ Life \ NotFoundException (404)
Controller method 'indexAction' does not exist. LimIndustries\Life\NotFoundException thrown with message "Controller method 'indexAction' does not exist." Stacktrace: #9 LimIndustries\Life\NotFoundException in /home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/application/Response.php:117 #8 LimIndustries\Life\Response:validate in /home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/application/Response.php:85 #7 LimIndustries\Life\Response:preDispatch in /home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/application/Response.php:66 #6 LimIndustries\Life\Response:dispatch in /home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/event/events/RequestRecordedSubscriber.php:30 #5 LimIndustries\Life\Event\Events\RequestRecordedSubscriber:dispatchResponse in /home/milim/milim_apps_prod/interface_app/vendor/symfony/event-dispatcher/EventDispatcher.php:230 #4 Symfony\Component\EventDispatcher\EventDispatcher:callListeners in /home/milim/milim_apps_prod/interface_app/vendor/symfony/event-dispatcher/EventDispatcher.php:59 #3 Symfony\Component\EventDispatcher\EventDispatcher:dispatch in /home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/event/Events.php:58 #2 LimIndustries\Life\Event\Events:dispatch in /home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/application/Request.php:86 #1 LimIndustries\Life\Request:record in /home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/application/Application.php:158 #0 LimIndustries\Life\Application:handleRequest in /home/milim/public_html/interface/index.php:22
Stack frames (10)
9
LimIndustries\Life\NotFoundException
/vendor/limindustries/life/src/application/Response.php117
8
LimIndustries\Life\Response validate
/vendor/limindustries/life/src/application/Response.php85
7
LimIndustries\Life\Response preDispatch
/vendor/limindustries/life/src/application/Response.php66
6
LimIndustries\Life\Response dispatch
/vendor/limindustries/life/src/event/events/RequestRecordedSubscriber.php30
5
LimIndustries\Life\Event\Events\RequestRecordedSubscriber dispatchResponse
/vendor/symfony/event-dispatcher/EventDispatcher.php230
4
Symfony\Component\EventDispatcher\EventDispatcher callListeners
/vendor/symfony/event-dispatcher/EventDispatcher.php59
3
Symfony\Component\EventDispatcher\EventDispatcher dispatch
/vendor/limindustries/life/src/event/Events.php58
2
LimIndustries\Life\Event\Events dispatch
/vendor/limindustries/life/src/application/Request.php86
1
LimIndustries\Life\Request record
/vendor/limindustries/life/src/application/Application.php158
0
LimIndustries\Life\Application handleRequest
/home/milim/public_html/interface/index.php22
/home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/application/Response.php
        // }
    }
 
    /**
     * Checks if the Action method exists in the controller.
     * If no match can be found the Apllication is re-routed
     * to the Error page.
     *
     * @throws NotFoundException
     */
    private function validate()
    {
        // Set controller and action vars.
        $className = $this->request['namespace'] . ucfirst($this->request['controller']) . "Controller";
        $actionName = $this->request['action'] . "Action";
        $controller = New $className();
        
        // Check if action exists.
        if (!method_exists($controller, $actionName)) {
            throw new NotFoundException("Controller method '$actionName' does not exist.", 404);
        }
        
        // Unset old vars.
        unset($controller);
    }
 
    public function getView() {
        return $this->view;
    }
 
    public function render()
    {
        return $this->getView()->render();
    }
 
    public function messages()
    {
        return $this->getView()->messages();
    }
}
Arguments
  1. "Controller method 'indexAction' does not exist."
    
/home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/application/Response.php
        $this->preDispatch();
 
        // Set controller and action vars
        $className = $this->request['namespace'] . ucfirst($this->request['controller']) . "Controller";
        $actionName = $this->request['action'] . "Action";
 
        $controller = New $className();
        $this->view = $controller->$actionName();
 
        $this->postDispatch();
    }
    
    /**
     * Enter description here ...
     * 
     * @since 1.2
     */
    function preDispatch() {
        $this->request = Request::getInstance()->getRequest();
        $this->validate();
    }
    
    /**
     * Enter description here ...
     * 
     * @since 1.2
     */
    function postDispatch() {
        Events::getInstance()->dispatch(new ResponseCompletedEvent(), ResponseCompletedEvent::NAME);
 
        // if (getenv('APP_DEBUG')) {
        //     // $debugBar = new DebugBar($this);
        // }
    }
 
    /**
     * Checks if the Action method exists in the controller.
     * If no match can be found the Apllication is re-routed
     * to the Error page.
     *
/home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/application/Response.php
    {
        return static::$instance = $instance;
    }
 
    /**
     * Get the globally available instance of the container.
     *
     * @return static
     */
    public static function getInstance()
    {
        if (is_null(static::$instance)) {
            static::$instance = new static;
        }
 
        return static::$instance;
    }
 
    public function dispatch() {
        $this->preDispatch();
 
        // Set controller and action vars
        $className = $this->request['namespace'] . ucfirst($this->request['controller']) . "Controller";
        $actionName = $this->request['action'] . "Action";
 
        $controller = New $className();
        $this->view = $controller->$actionName();
 
        $this->postDispatch();
    }
    
    /**
     * Enter description here ...
     * 
     * @since 1.2
     */
    function preDispatch() {
        $this->request = Request::getInstance()->getRequest();
        $this->validate();
    }
/home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/event/events/RequestRecordedSubscriber.php
{
  public static function getSubscribedEvents()
  {
    return [
      RequestRecordedEvent::NAME => [
        ['processRequest'],
        ['dispatchResponse'],
        ['appStatus'],
      ],
    ];
  }
 
  public function processRequest(RequestRecordedEvent $event)
  {
    ProcessManager::getInstance()->preProcess();
  }
 
  public function dispatchResponse(RequestRecordedEvent $event)
  {
    Response::getInstance()->dispatch();
  }
 
  public function appStatus() {
      Application::getInstance()->setStatus('ok');
  }
}
/home/milim/milim_apps_prod/interface_app/vendor/symfony/event-dispatcher/EventDispatcher.php
 
    /**
     * Triggers the listeners of an event.
     *
     * This method can be overridden to add functionality that is executed
     * for each listener.
     *
     * @param callable[] $listeners The event listeners
     * @param string     $eventName The name of the event to dispatch
     * @param object     $event     The event object to pass to the event handlers/listeners
     */
    protected function callListeners(iterable $listeners, string $eventName, object $event)
    {
        $stoppable = $event instanceof StoppableEventInterface;
 
        foreach ($listeners as $listener) {
            if ($stoppable && $event->isPropagationStopped()) {
                break;
            }
            $listener($event, $eventName, $this);
        }
    }
 
    /**
     * Sorts the internal list of listeners for the given event by priority.
     */
    private function sortListeners(string $eventName)
    {
        krsort($this->listeners[$eventName]);
        $this->sorted[$eventName] = [];
 
        foreach ($this->listeners[$eventName] as &$listeners) {
            foreach ($listeners as $k => &$listener) {
                if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && 2 >= \count($listener)) {
                    $listener[0] = $listener[0]();
                    $listener[1] = $listener[1] ?? '__invoke';
                }
                $this->sorted[$eventName][] = $listener;
            }
        }
Arguments
  1. LimIndustries\Life\Event\Events\RequestRecordedEvent {#25}
    
  2. "request.recorded"
    
  3. LimIndustries\Life\Event\EventDispatcher {#8
      -listeners: array:2 [
        "request.recorded" => array:1 [
          0 => array:3 [
            0 => array:2 [
              0 => LimIndustries\Life\Event\Events\RequestRecordedSubscriber {#9}
              1 => "processRequest"
            ]
            1 => array:2 [
              0 => LimIndustries\Life\Event\Events\RequestRecordedSubscriber {#9}
              1 => "dispatchResponse"
            ]
            2 => array:2 [
              0 => LimIndustries\Life\Event\Events\RequestRecordedSubscriber {#9}
              1 => "appStatus"
            ]
          ]
        ]
        "response.completed.event" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => LimIndustries\Life\Event\Events\ResponseCompletedSubscriber {#10}
              1 => "processResponse"
            ]
          ]
        ]
      ]
      -sorted: array:1 [
        "request.recorded" => array:3 [
          0 => array:2 [
            0 => LimIndustries\Life\Event\Events\RequestRecordedSubscriber {#9}
            1 => "processRequest"
          ]
          1 => array:2 [
            0 => LimIndustries\Life\Event\Events\RequestRecordedSubscriber {#9}
            1 => "dispatchResponse"
          ]
          2 => array:2 [
            0 => LimIndustries\Life\Event\Events\RequestRecordedSubscriber {#9}
            1 => "appStatus"
          ]
        ]
      ]
      -optimized: null
    }
    
/home/milim/milim_apps_prod/interface_app/vendor/symfony/event-dispatcher/EventDispatcher.php
        if (__CLASS__ === static::class) {
            $this->optimized = [];
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function dispatch(object $event, string $eventName = null): object
    {
        $eventName = $eventName ?? \get_class($event);
 
        if (null !== $this->optimized) {
            $listeners = $this->optimized[$eventName] ?? (empty($this->listeners[$eventName]) ? [] : $this->optimizeListeners($eventName));
        } else {
            $listeners = $this->getListeners($eventName);
        }
 
        if ($listeners) {
            $this->callListeners($listeners, $eventName, $event);
        }
 
        return $event;
    }
 
    /**
     * {@inheritdoc}
     */
    public function getListeners(string $eventName = null)
    {
        if (null !== $eventName) {
            if (empty($this->listeners[$eventName])) {
                return [];
            }
 
            if (!isset($this->sorted[$eventName])) {
                $this->sortListeners($eventName);
            }
 
            return $this->sorted[$eventName];
Arguments
  1. array:3 [
      0 => array:2 [
        0 => LimIndustries\Life\Event\Events\RequestRecordedSubscriber {#9}
        1 => "processRequest"
      ]
      1 => array:2 [
        0 => LimIndustries\Life\Event\Events\RequestRecordedSubscriber {#9}
        1 => "dispatchResponse"
      ]
      2 => array:2 [
        0 => LimIndustries\Life\Event\Events\RequestRecordedSubscriber {#9}
        1 => "appStatus"
      ]
    ]
    
  2. "request.recorded"
    
  3. LimIndustries\Life\Event\Events\RequestRecordedEvent {#25}
    
/home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/event/Events.php
    {
        return static::$instance = $instance;
    }
 
    /**
     * Get the globally available instance of the container.
     *
     * @return static
     */
    public static function getInstance()
    {
        if (is_null(static::$instance)) {
            static::$instance = new static;
        }
 
        return static::$instance;
    }
 
    public function dispatch($event, $name) {
        $this->_dispatcher->dispatch($event, $name);
    }
}
 
Arguments
  1. LimIndustries\Life\Event\Events\RequestRecordedEvent {#25}
    
  2. "request.recorded"
    
/home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/application/Request.php
        if (is_null(static::$instance)) {
            static::$instance = new static;
        }
 
        return static::$instance;
    }
 
    /**
     * Reads the request.
     *
     * @return array
     */
    public function record(): array
    {
        $this->request = $this->route->matchRoute();
 
        $this->addRequest("public_path", public_path(''));
        $this->addRequest("resource_path", resource_path(''));
 
        Events::getInstance()->dispatch(new RequestRecordedEvent($this->request), RequestRecordedEvent::NAME);
 
        return $this->request;
    }
 
    /**
     * Get the request.
     * @return array
     */
    public function getRequest(): array
    {
        return $this->request;
    }
 
    /**
     * Insert a key value pair into the request.
     * @param string $newKey
     * @param $newValue
     * @return void
     */
    public function addRequest(string $newKey, $newValue)
Arguments
  1. LimIndustries\Life\Event\Events\RequestRecordedEvent {#25}
    
  2. "request.recorded"
    
/home/milim/milim_apps_prod/interface_app/vendor/limindustries/life/src/application/Application.php
    }
 
    /**
     * Set error reporting.
     *
     * @return void
     */
    public function handleErrors() {
        $this->errorHandler = new HandleErrors();
    }
    
    /**
     * Sets up and runs the application.
     * And Checks for errors along the way.
     *
     * @return void
     */
    public function handleRequest()
    {
        Request::getInstance()->record();
    }
 
    /**
     * Render the response.
     */
    public function renderResponse()
    {
        Response::getInstance()->render();
    }
 
    /**
     * Render the response.
     */
    public function responseMessages()
    {
        return Response::getInstance()->messages();
    }
 
    /**
     * Returns the app status.
/home/milim/public_html/interface/index.php
ini_set("display_errors", "1");
// Report all PHP errors (see changelog)
error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);
 
// 
define('LIFE_START', microtime(true));
 
require_once dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'milim_apps_prod' . DIRECTORY_SEPARATOR . 'interface_app' . DIRECTORY_SEPARATOR . 'vendor' . 
DIRECTORY_SEPARATOR . 'autoload.php';;
 
$public_path = dirname(__FILE__);
define('MILIM_CACHE', dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'milim_apps_prod' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR);
 
$app = require dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'milim_apps_prod' . DIRECTORY_SEPARATOR . 'interface_app' . DIRECTORY_SEPARATOR . 'bootstrap' . 
DIRECTORY_SEPARATOR . 'app.php';
 
$app->handleErrors();
 
$app->handleRequest();
 
$app->renderResponse();
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER
"milim"
HOME
"/home/milim"
SCRIPT_NAME
"/interface/index.php"
REQUEST_URI
"/interface/index/function.require-once"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/2.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/interface/index/function.require-once"
REMOTE_PORT
"54732"
SCRIPT_FILENAME
"/home/milim/public_html/interface/index.php"
SERVER_ADMIN
"webmaster@milim.com"
CONTEXT_DOCUMENT_ROOT
"/home/milim/public_html"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/home/milim/public_html"
REMOTE_ADDR
"3.89.200.155"
SERVER_PORT
"443"
SERVER_ADDR
"95.172.86.37"
SERVER_NAME
"www.milim.com"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
PATH
"/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin"
HTTP_X_HTTPS
"1"
HTTP_HOST
"www.milim.com"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
proxy-nokeepalive
"1"
H2_STREAM_TAG
"516747-157-3"
H2_STREAM_ID
"3"
H2_PUSHED_ON
""
H2_PUSHED
""
H2_PUSH
"off"
H2PUSH
"off"
HTTP2
"on"
SSL_TLS_SNI
"www.milim.com"
HTTPS
"on"
SCRIPT_URI
"https://www.milim.com/interface/index/function.require-once"
SCRIPT_URL
"/interface/index/function.require-once"
UNIQUE_ID
"ZgaV0RL2-4mLDMC00QKfrwABFxc"
REDIRECT_STATUS
"200"
REDIRECT_H2_STREAM_TAG
"516747-157-3"
REDIRECT_H2_STREAM_ID
"3"
REDIRECT_H2_PUSHED_ON
""
REDIRECT_H2_PUSHED
""
REDIRECT_H2_PUSH
"off"
REDIRECT_H2PUSH
"off"
REDIRECT_HTTP2
"on"
REDIRECT_SSL_TLS_SNI
"www.milim.com"
REDIRECT_HTTPS
"on"
REDIRECT_SCRIPT_URI
"https://www.milim.com/interface/index/function.require-once"
REDIRECT_SCRIPT_URL
"/interface/index/function.require-once"
REDIRECT_UNIQUE_ID
"ZgaV0RL2-4mLDMC00QKfrwABFxc"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/interface/index.php"
REQUEST_TIME_FLOAT
1711707601.8653
REQUEST_TIME
1711707601
argv
[]
argc
0
empty
0. Whoops\Handler\PrettyPageHandler