Whoops \ Exception \ ErrorException (E_WARNING)
mb_ereg_replace(): mbregex search failure in php_mbereg_replace_exec(): retry-limit-in-match over Whoops\Exception\ErrorException thrown with message "mb_ereg_replace(): mbregex search failure in php_mbereg_replace_exec(): retry-limit-in-match over" Stacktrace: #40 Whoops\Exception\ErrorException in /home/qpnq7028/dirtymarmotte.net/user/plugins/autoseo/autoseo.php:225 #39 mb_ereg_replace in /home/qpnq7028/dirtymarmotte.net/user/plugins/autoseo/autoseo.php:225 #38 Grav\Plugin\AutoSeoPlugin:cleanText in /home/qpnq7028/dirtymarmotte.net/user/plugins/autoseo/autoseo.php:60 #37 Grav\Plugin\AutoSeoPlugin:onPageInitialized in /home/qpnq7028/dirtymarmotte.net/vendor/symfony/event-dispatcher/EventDispatcher.php:264 #36 Symfony\Component\EventDispatcher\EventDispatcher:doDispatch in /home/qpnq7028/dirtymarmotte.net/vendor/symfony/event-dispatcher/EventDispatcher.php:239 #35 Symfony\Component\EventDispatcher\EventDispatcher:callListeners in /home/qpnq7028/dirtymarmotte.net/vendor/symfony/event-dispatcher/EventDispatcher.php:73 #34 Symfony\Component\EventDispatcher\EventDispatcher:dispatch in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Grav.php:568 #33 Grav\Common\Grav:fireEvent in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/PagesProcessor.php:59 #32 Grav\Common\Processors\PagesProcessor:process in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #31 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #30 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/TwigProcessor.php:38 #29 Grav\Common\Processors\TwigProcessor:process in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #28 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #27 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/AssetsProcessor.php:39 #26 Grav\Common\Processors\AssetsProcessor:process in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #25 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #24 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/SchedulerProcessor.php:40 #23 Grav\Common\Processors\SchedulerProcessor:process in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #22 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #21 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/BackupsProcessor.php:39 #20 Grav\Common\Processors\BackupsProcessor:process in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #19 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #18 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/TasksProcessor.php:69 #17 Grav\Common\Processors\TasksProcessor:process in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #16 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #15 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/RequestProcessor.php:63 #14 Grav\Common\Processors\RequestProcessor:process in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #13 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #12 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/ThemesProcessor.php:38 #11 Grav\Common\Processors\ThemesProcessor:process in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #10 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #9 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/PluginsProcessor.php:39 #8 Grav\Common\Processors\PluginsProcessor:process in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #7 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #6 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/InitializeProcessor.php:130 #5 Grav\Common\Processors\InitializeProcessor:Grav\Common\Processors\{closure} in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Debugger.php:546 #4 Grav\Common\Debugger:profile in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/InitializeProcessor.php:131 #3 Grav\Common\Processors\InitializeProcessor:process in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #2 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #1 Grav\Framework\RequestHandler\RequestHandler:handle in /home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Grav.php:303 #0 Grav\Common\Grav:process in /home/qpnq7028/dirtymarmotte.net/index.php:58
Stack frames (41)
40
Whoops\Exception\ErrorException
/user/plugins/autoseo/autoseo.php225
39
mb_ereg_replace
/user/plugins/autoseo/autoseo.php225
38
Grav\Plugin\AutoSeoPlugin cleanText
/user/plugins/autoseo/autoseo.php60
37
Grav\Plugin\AutoSeoPlugin onPageInitialized
/vendor/symfony/event-dispatcher/EventDispatcher.php264
36
Symfony\Component\EventDispatcher\EventDispatcher doDispatch
/vendor/symfony/event-dispatcher/EventDispatcher.php239
35
Symfony\Component\EventDispatcher\EventDispatcher callListeners
/vendor/symfony/event-dispatcher/EventDispatcher.php73
34
Symfony\Component\EventDispatcher\EventDispatcher dispatch
/system/src/Grav/Common/Grav.php568
33
Grav\Common\Grav fireEvent
/system/src/Grav/Common/Processors/PagesProcessor.php59
32
Grav\Common\Processors\PagesProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
31
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
30
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/TwigProcessor.php38
29
Grav\Common\Processors\TwigProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
28
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
27
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/AssetsProcessor.php39
26
Grav\Common\Processors\AssetsProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
25
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
24
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/SchedulerProcessor.php40
23
Grav\Common\Processors\SchedulerProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
22
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
21
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/BackupsProcessor.php39
20
Grav\Common\Processors\BackupsProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
19
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
18
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/TasksProcessor.php69
17
Grav\Common\Processors\TasksProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
16
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
15
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/RequestProcessor.php63
14
Grav\Common\Processors\RequestProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
13
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
12
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/ThemesProcessor.php38
11
Grav\Common\Processors\ThemesProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
10
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
9
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/PluginsProcessor.php39
8
Grav\Common\Processors\PluginsProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
7
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
6
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/InitializeProcessor.php130
5
Grav\Common\Processors\InitializeProcessor Grav\Common\Processors\{closure}
/system/src/Grav/Common/Debugger.php546
4
Grav\Common\Debugger profile
/system/src/Grav/Common/Processors/InitializeProcessor.php131
3
Grav\Common\Processors\InitializeProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
2
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
1
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Grav.php303
0
Grav\Common\Grav process
/index.php58
/home/qpnq7028/dirtymarmotte.net/user/plugins/autoseo/autoseo.php
            if (is_callable ( $replacement)) {
                $text = preg_replace_callback ($regex, $replacement, $text);
            } else {
                $text = preg_replace ($regex, $replacement, $text);
            }
        }
        $text=str_replace(".\n", '.', $text);
        $text=str_replace("\n", '.', $text);
        $text=str_replace('"', '', $text);
 
        return htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
    }
 
    private function cleanText ($content, $config) {
        $length = $config['description.length'];       
        if ($length <=1 ) $length=20; 
 
        $content = $this->cleanMarkdown($content);
        // truncate the content to the number of words set in config
        $contentSmall = mb_ereg_replace('((\w+\W*){'.$length.'}(\w+))(.*)', '${1}', $content); // beware if content is less than length words, it will be nulled    
        if ($contentSmall == '' ) $contentSmall = $content;
 
        return $contentSmall;
    }
 
    private function cleanString ($content) {
        // remove some annoying characters
        $content = str_replace("&nbsp;",' ',$content);
        $content = str_replace('"',"'",$content);
        $content = trim($content);
        // Removes special chars.
        // $content = \Grav\Plugin\Admin\Utils::slug($content);
        return $content;
    }
}
 
Arguments
  1. "mb_ereg_replace(): mbregex search failure in php_mbereg_replace_exec(): retry-limit-in-match over"
    
/home/qpnq7028/dirtymarmotte.net/user/plugins/autoseo/autoseo.php
            if (is_callable ( $replacement)) {
                $text = preg_replace_callback ($regex, $replacement, $text);
            } else {
                $text = preg_replace ($regex, $replacement, $text);
            }
        }
        $text=str_replace(".\n", '.', $text);
        $text=str_replace("\n", '.', $text);
        $text=str_replace('"', '', $text);
 
        return htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
    }
 
    private function cleanText ($content, $config) {
        $length = $config['description.length'];       
        if ($length <=1 ) $length=20; 
 
        $content = $this->cleanMarkdown($content);
        // truncate the content to the number of words set in config
        $contentSmall = mb_ereg_replace('((\w+\W*){'.$length.'}(\w+))(.*)', '${1}', $content); // beware if content is less than length words, it will be nulled    
        if ($contentSmall == '' ) $contentSmall = $content;
 
        return $contentSmall;
    }
 
    private function cleanString ($content) {
        // remove some annoying characters
        $content = str_replace("&nbsp;",' ',$content);
        $content = str_replace('"',"'",$content);
        $content = trim($content);
        // Removes special chars.
        // $content = \Grav\Plugin\Admin\Utils::slug($content);
        return $content;
    }
}
 
Arguments
  1. "((\w+\W*){30}(\w+))(.*)"
    
  2. "${1}"
    
  3. "Ok, niveau finition on peut faire mieux :)."
    
/home/qpnq7028/dirtymarmotte.net/user/plugins/autoseo/autoseo.php
    public function onPageInitialized()
    {
        $page = $this->grav['page'];
        $config = $this->mergeConfig($page);
        if ( !$config['enabled']) return;
 
        $updateDescription =  $config['description.enabled'];
        $updatekeywords =  $config['keywords.enabled'];
        $updateFacebook =  $config['facebook.enabled'];
        $updateTwitter =  $config['twitter.enabled'];
        if (!$updateDescription && !$updatekeywords && !$updateFacebook && !$updateTwitter) return;
 
        $meta = $page->metadata();
 
        $metaSite = $this->config->get('site')['metadata'];
        
        // limit the content size to reduce the performance impact
        $content = mb_substr(strip_tags($page->content()),0, 1000 );
 
        $cleanContent = $this->cleanText ($content, $config); // here because we don't want to make this call several times
        $cleanTitle = $this->cleanString ($page->title()); // here because we don't want to make this call several times
 
        if ($updateDescription) $meta = $this->getMetaDescription ($meta, $metaSite, $config, $cleanContent);
        if ($updatekeywords) $meta = $this->getMetaKeywords ($meta, $metaSite, $config);
        if ($updateFacebook) $meta = $this->getMetaOpenGraph ($meta, $metaSite, $config, $cleanContent, $cleanTitle);
        if ($updateTwitter) $meta = $this->getMetaTwitter ($meta, $metaSite, $config, $cleanContent, $cleanTitle);
        $page->metadata ($meta);
    }
    
    // PROCESS for the description metadata
    private function getMetaDescription ($meta, $metaSite, $config, $cleanContent) {
 
        if (array_key_exists('description', $metaSite)) { $metaSiteContent =  htmlspecialchars($metaSite['description'], ENT_QUOTES, 'UTF-8'); } else { $metaSiteContent = ''; }
        // if the page has a meta that is different from the default one, we return its value
        if (!empty($meta['description']['content']) && $meta['description']['content'] != $metaSiteContent) return $meta;
 
        $metaPageContent = $cleanContent;
 
        if (empty($metaPageContent)) $metaPageContent = $metaSiteContent;
 
Arguments
  1. "Ok, niveau finition on peut faire mieux :)."
    
  2. Grav\Common\Data\Data {#615}
    
/home/qpnq7028/dirtymarmotte.net/vendor/symfony/event-dispatcher/EventDispatcher.php
 
        foreach ($listeners as $listener) {
            if ($stoppable && $event->isPropagationStopped()) {
                break;
            }
            // @deprecated: the ternary operator is part of a BC layer and should be removed in 5.0
            $listener($listener instanceof WrappedListener ? new LegacyEventProxy($event) : $event, $eventName, $this);
        }
    }
 
    /**
     * @deprecated since Symfony 4.3, use callListeners() instead
     */
    protected function doDispatch($listeners, $eventName, Event $event)
    {
        foreach ($listeners as $listener) {
            if ($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. RocketTheme\Toolbox\Event\Event {#590}
    
  2. "onPageInitialized"
    
  3. Symfony\Component\EventDispatcher\EventDispatcher {#116
      -listeners: array:53 [
        "onPluginsInitialized" => array:7 [
          100002 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ProblemsPlugin {#104}
              1 => "autoload"
            ]
          ]
          100001 => array:3 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#91}
              1 => "autoload"
            ]
            1 => array:2 [
              0 => Grav\Plugin\MarkdownNoticesPlugin {#102}
              1 => "autoload"
            ]
            2 => array:2 [
              0 => Grav\Plugin\ProblemsPlugin {#104}
              1 => "onPluginsInitialized"
            ]
          ]
          100000 => array:4 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#91}
              1 => "setup"
            ]
            1 => array:2 [
              0 => Grav\Plugin\FeedPlugin {#96}
              1 => "autoload"
            ]
            2 => array:2 [
              0 => Grav\Plugin\FormPlugin {#98}
              1 => "autoload"
            ]
            3 => array:2 [
              0 => Grav\Plugin\SitemapPlugin {#106}
              1 => "autoload"
            ]
          ]
          10000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "initializeSession"
            ]
          ]
          1001 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#91}
              1 => "onPluginsInitialized"
            ]
          ]
          1000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "initializeLogin"
            ]
          ]
          0 => array:10 [
            0 => array:2 [
              0 => Grav\Plugin\AutoSeoPlugin {#90}
              1 => "onPluginsInitialized"
            ]
            1 => array:2 [
              0 => Grav\Plugin\EmailPlugin {#93}
              1 => "onPluginsInitialized"
            ]
            2 => array:2 [
              0 => Grav\Plugin\FeatherlightPlugin {#95}
              1 => "onPluginsInitialized"
            ]
            3 => array:2 [
              0 => Grav\Plugin\FeedPlugin {#96}
              1 => "onPluginsInitialized"
            ]
            4 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#97}
              1 => "onPluginsInitialized"
            ]
            5 => array:2 [
              0 => Grav\Plugin\FormPlugin {#98}
              1 => "onPluginsInitialized"
            ]
            6 => array:2 [
              0 => Grav\Plugin\GanalyticsPlugin {#99}
              1 => "onPluginsInitialized"
            ]
            7 => array:2 [
              0 => Grav\Plugin\ImageCaptionsPlugin {#100}
              1 => "onPluginsInitialized"
            ]
            8 => array:2 [
              0 => Grav\Plugin\PaginationPlugin {#103}
              1 => "onPluginsInitialized"
            ]
            9 => array:2 [
              0 => Grav\Plugin\SitemapPlugin {#106}
              1 => "onPluginsInitialized"
            ]
          ]
        ]
        "onRequestHandlerInit" => array:1 [
          100000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#91}
              1 => "onRequestHandlerInit"
            ]
          ]
        ]
        "onFormRegisterTypes" => array:1 [
          0 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#91}
              1 => "onFormRegisterTypes"
            ]
            1 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#97}
              1 => "onFormRegisterTypes"
            ]
          ]
        ]
        "onPageInitialized" => array:3 [
          10000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#97}
              1 => "authorizePage"
            ]
          ]
          10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "authorizeLoginPage"
            ]
          ]
          0 => array:6 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#91}
              1 => "onPageInitialized"
            ]
            1 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "authorizePage"
            ]
            2 => array:2 [
              0 => Grav\Plugin\AutoSeoPlugin {#90}
              1 => "onPageInitialized"
            ]
            3 => array:2 [
              0 => Grav\Plugin\FeatherlightPlugin {#95}
              1 => "onPageInitialized"
            ]
            4 => array:2 [
              0 => Grav\Plugin\FormPlugin {#98}
              1 => "onPageInitialized"
            ]
            5 => array:2 [
              0 => Grav\Plugin\PaginationPlugin {#103}
              1 => "onPageInitialized"
            ]
          ]
        ]
        "onShutdown" => array:1 [
          1000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#91}
              1 => "onShutdown"
            ]
          ]
        ]
        "Grav\Events\PermissionsRegisterEvent" => array:2 [
          1000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#91}
              1 => "onRegisterPermissions"
            ]
          ]
          100 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#97}
              1 => "onRegisterPermissions"
            ]
          ]
        ]
        "onFormProcessed" => array:1 [
          0 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\EmailPlugin {#93}
              1 => "onFormProcessed"
            ]
            1 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onFormProcessed"
            ]
          ]
        ]
        "onTwigTemplatePaths" => array:2 [
          0 => array:5 [
            0 => array:2 [
              0 => Grav\Plugin\EmailPlugin {#93}
              1 => "onTwigTemplatePaths"
            ]
            1 => array:2 [
              0 => Grav\Plugin\FormPlugin {#98}
              1 => "onTwigTemplatePaths"
            ]
            2 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onTwigTemplatePaths"
            ]
            3 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#97}
              1 => "onTwigTemplatePaths"
            ]
            4 => array:2 [
              0 => Grav\Plugin\PaginationPlugin {#103}
              1 => "onTwigTemplatePaths"
            ]
          ]
          -10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ErrorPlugin {#94}
              1 => "onTwigTemplatePaths"
            ]
          ]
        ]
        "onSchedulerInitialized" => array:1 [
          0 => array:3 [
            0 => array:2 [
              0 => Grav\Plugin\EmailPlugin {#93}
              1 => "onSchedulerInitialized"
            ]
            1 => array:2 [
              0 => Grav\Common\Cache {#165}
              1 => "onSchedulerInitialized"
            ]
            2 => array:2 [
              0 => Grav\Common\Backup\Backups {#198}
              1 => "onSchedulerInitialized"
            ]
          ]
        ]
        "onAdminSave" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\EmailPlugin {#93}
              1 => "onAdminSave"
            ]
          ]
        ]
        "onCliInitialize" => array:2 [
          100000 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\ErrorPlugin {#94}
              1 => "autoload"
            ]
            1 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#97}
              1 => "autoload"
            ]
          ]
          10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#97}
              1 => "initializeFlex"
            ]
          ]
        ]
        "onPageNotFound" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ErrorPlugin {#94}
              1 => "onPageNotFound"
            ]
          ]
        ]
        "onGetPageTemplates" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ErrorPlugin {#94}
              1 => "onGetPageTemplates"
            ]
          ]
        ]
        "onDisplayErrorPage.404" => array:1 [
          -1 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ErrorPlugin {#94}
              1 => "onDisplayErrorPage404"
            ]
          ]
        ]
        "onBlueprintCreated" => array:1 [
          0 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\FeedPlugin {#96}
              1 => "onBlueprintCreated"
            ]
            1 => array:2 [
              0 => Grav\Plugin\SitemapPlugin {#106}
              1 => "onBlueprintCreated"
            ]
          ]
        ]
        "Grav\Events\PluginsLoadedEvent" => array:1 [
          10 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#97}
              1 => "initializeFlex"
            ]
            1 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onPluginsLoaded"
            ]
          ]
        ]
        "Grav\Events\FlexRegisterEvent" => array:1 [
          100 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#97}
              1 => "onRegisterFlex"
            ]
          ]
        ]
        "onTwigExtensions" => array:1 [
          0 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\FormPlugin {#98}
              1 => "onTwigExtensions"
            ]
            1 => array:2 [
              0 => Grav\Plugin\PaginationPlugin {#103}
              1 => "onTwigExtensions"
            ]
          ]
        ]
        "onAssetsInitialized" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\GanalyticsPlugin {#99}
              1 => "onAssetsInitialized"
            ]
          ]
        ]
        "Grav\Events\SessionStartEvent" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onSessionStart"
            ]
          ]
        ]
        "onTask.login.login" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onTask.login.twofa" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onTask.login.twofa_cancel" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onTask.login.forgot" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onTask.login.logout" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onTask.login.reset" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onTask.login.regenerate2FASecret" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onPageTask.login.invite" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onPagesInitialized" => array:2 [
          0 => array:3 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "storeReferrerPage"
            ]
            1 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "pageVisibility"
            ]
            2 => array:2 [
              0 => Grav\Plugin\FormPlugin {#98}
              1 => "onPagesInitialized"
            ]
          ]
          -10000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#97}
              1 => "onPagesInitialized"
            ]
          ]
        ]
        "onDisplayErrorPage.401" => array:1 [
          -1 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onDisplayErrorPage401"
            ]
          ]
        ]
        "onDisplayErrorPage.403" => array:1 [
          -1 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onDisplayErrorPage403"
            ]
          ]
        ]
        "onPageFallBackUrl" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "authorizeFallBackUrl"
            ]
          ]
        ]
        "onTwigSiteVariables" => array:2 [
          -100000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onTwigSiteVariables"
            ]
          ]
          0 => array:3 [
            0 => array:2 [
              0 => Grav\Plugin\MarkdownNoticesPlugin {#102}
              1 => "onTwigSiteVariables"
            ]
            1 => array:2 [
              0 => Grav\Plugin\FormPlugin {#98}
              1 => "onTwigVariables"
            ]
            2 => array:2 [
              0 => Grav\Plugin\ImageCaptionsPlugin {#100}
              1 => "onTwigSiteVariables"
            ]
          ]
        ]
        "onUserLoginAuthenticate" => array:5 [
          10003 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginAuthenticateRateLimit"
            ]
          ]
          10002 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginAuthenticateByRegistration"
            ]
          ]
          10001 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginAuthenticateByRememberMe"
            ]
          ]
          10000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginAuthenticateByEmail"
            ]
          ]
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginAuthenticate"
            ]
          ]
        ]
        "onUserLoginAuthorize" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginAuthorize"
            ]
          ]
        ]
        "onUserLoginFailure" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginGuest"
            ]
          ]
        ]
        "onUserLoginGuest" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginGuest"
            ]
          ]
        ]
        "onUserLogin" => array:2 [
          1000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginResetRateLimit"
            ]
          ]
          10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLogin"
            ]
          ]
        ]
        "onUserLogout" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLogout"
            ]
          ]
        ]
        "onMarkdownInitialized" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\MarkdownNoticesPlugin {#102}
              1 => "onMarkdownInitialized"
            ]
          ]
        ]
        "onAdminGenerateReports" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ProblemsPlugin {#104}
              1 => "onAdminGenerateReports"
            ]
          ]
        ]
        "onAdminCompilePresetSCSS" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ProblemsPlugin {#104}
              1 => "onAdminCompilePresetSCSS"
            ]
          ]
        ]
        "onAdminMenu" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\QuickTrayLinksPlugin {#105}
              1 => "onAdminMenu"
            ]
          ]
        ]
        "onFatalException" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ProblemsPlugin {#104}
              1 => "onFatalException"
            ]
          ]
        ]
        "onBeforeFlexFormInitialize" => array:1 [
          -10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#97}
              1 => "onBeforeFlexFormInitialize"
            ]
          ]
        ]
        "onPageTask" => array:1 [
          -10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#97}
              1 => "onPageTask"
            ]
          ]
        ]
        "onPageProcessed" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FormPlugin {#98}
              1 => "onPageProcessed"
            ]
          ]
        ]
        "onTwigInitialized" => array:1 [
          0 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\FormPlugin {#98}
              1 => "onTwigInitialized"
            ]
            1 => array:2 [
              0 => Grav\Theme\Quark {#178}
              1 => "onTwigInitialized"
            ]
          ]
        ]
        "onTwigPageVariables" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FormPlugin {#98}
              1 => "onTwigVariables"
            ]
          ]
        ]
        "onFormValidationProcessed" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FormPlugin {#98}
              1 => "onFormValidationProcessed"
            ]
          ]
        ]
        "onPageContentProcessed" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ImageCaptionsPlugin {#100}
              1 => "onPageContentProcessed"
            ]
          ]
        ]
        "onThemeInitialized" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Theme\Quark {#178}
              1 => "onThemeInitialized"
            ]
          ]
        ]
        "onTwigLoader" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Theme\Quark {#178}
              1 => "onTwigLoader"
            ]
          ]
        ]
      ]
      -sorted: []
      -optimized: array:16 [
        "Grav\Events\PluginsLoadedEvent" => array:2 [
          0 => Grav\Plugin\FlexObjectsPlugin::initializeFlex(): void {#122 …4}
          1 => Grav\Plugin\LoginPlugin::onPluginsLoaded(): void {#131 …4}
        ]
        "Grav\Events\SessionStartEvent" => array:1 [
          0 => Grav\Plugin\LoginPlugin::onSessionStart(SessionStartEvent $event): void {#139 …4}
        ]
        "onPluginsInitialized" => array:21 [
          0 => Grav\Plugin\ProblemsPlugin::autoload(): ClassLoader {#143 …4}
          1 => Grav\Plugin\AdminPlugin::autoload(): ClassLoader {#144 …4}
          2 => Grav\Plugin\MarkdownNoticesPlugin::autoload() {#145 …3}
          3 => Grav\Plugin\ProblemsPlugin::onPluginsInitialized(): void {#146 …4}
          4 => Grav\Plugin\AdminPlugin::setup() {#147 …3}
          5 => Grav\Plugin\FeedPlugin::autoload() {#148 …3}
          6 => Grav\Plugin\FormPlugin::autoload() {#149 …3}
          7 => Grav\Plugin\SitemapPlugin::autoload(): ClassLoader {#150 …4}
          8 => Grav\Plugin\LoginPlugin::initializeSession(): void {#151 …4}
          9 => Grav\Plugin\AdminPlugin::onPluginsInitialized() {#152 …3}
          10 => Grav\Plugin\LoginPlugin::initializeLogin(): void {#153 …4}
          11 => Grav\Plugin\AutoSeoPlugin::onPluginsInitialized() {#154 …3}
          12 => Grav\Plugin\EmailPlugin::onPluginsInitialized() {#155 …3}
          13 => Grav\Plugin\FeatherlightPlugin::onPluginsInitialized() {#156 …3}
          14 => Grav\Plugin\FeedPlugin::onPluginsInitialized() {#157 …3}
          15 => Grav\Plugin\FlexObjectsPlugin::onPluginsInitialized(): void {#158 …4}
          16 => Grav\Plugin\FormPlugin::onPluginsInitialized(): void {#159 …4}
          17 => Grav\Plugin\GanalyticsPlugin::onPluginsInitialized() {#160 …3}
          18 => Grav\Plugin\ImageCaptionsPlugin::onPluginsInitialized() {#161 …3}
          19 => Grav\Plugin\PaginationPlugin::onPluginsInitialized() {#162 …3}
          20 => Grav\Plugin\SitemapPlugin::onPluginsInitialized() {#163 …3}
        ]
        "onThemeInitialized" => array:1 [
          0 => Grav\Theme\Quark::onThemeInitialized() {#182 …3}
        ]
        "onRequestHandlerInit" => array:1 [
          0 => Grav\Plugin\AdminPlugin::onRequestHandlerInit(RequestHandlerEvent $event) {#188 …3}
        ]
        "onSchedulerInitialized" => array:3 [
          0 => Grav\Plugin\EmailPlugin::onSchedulerInitialized(Event $e) {#203 …3}
          1 => Grav\Common\Cache::onSchedulerInitialized(Event $event) {#204 …3}
          2 => Grav\Common\Backup\Backups::onSchedulerInitialized(Event $event) {#205 …3}
        ]
        "onAssetsInitialized" => array:1 [
          0 => Grav\Plugin\GanalyticsPlugin::onAssetsInitialized() {#236 …3}
        ]
        "onTwigTemplatePaths" => array:6 [
          0 => Grav\Plugin\EmailPlugin::onTwigTemplatePaths() {#241 …3}
          1 => Grav\Plugin\FormPlugin::onTwigTemplatePaths(): void {#242 …4}
          2 => Grav\Plugin\LoginPlugin::onTwigTemplatePaths(): void {#243 …4}
          3 => Grav\Plugin\FlexObjectsPlugin::onTwigTemplatePaths(): void {#244 …4}
          4 => Grav\Plugin\PaginationPlugin::onTwigTemplatePaths() {#245 …3}
          5 => Grav\Plugin\ErrorPlugin::onTwigTemplatePaths(): void {#246 …4}
        ]
        "onTwigLoader" => array:1 [
          0 => Grav\Theme\Quark::onTwigLoader() {#248 …3}
        ]
        "onTwigInitialized" => array:2 [
          0 => Grav\Plugin\FormPlugin::onTwigInitialized(): void {#259 …4}
          1 => Grav\Theme\Quark::onTwigInitialized() {#260 …3}
        ]
        "onTwigExtensions" => array:2 [
          0 => Grav\Plugin\FormPlugin::onTwigExtensions(): void {#268 …4}
          1 => Grav\Plugin\PaginationPlugin::onTwigExtensions() {#269 …3}
        ]
        "onPagesInitialized" => array:4 [
          0 => Grav\Plugin\LoginPlugin::storeReferrerPage(): void {#591 …4}
          1 => Grav\Plugin\LoginPlugin::pageVisibility(Event $event): void {#592 …4}
          2 => Grav\Plugin\FormPlugin::onPagesInitialized(): void {#593 …4}
          3 => Grav\Plugin\FlexObjectsPlugin::onPagesInitialized(Event $event): void {#594 …4}
        ]
        "onPageInitialized" => array:8 [
          0 => Grav\Plugin\FlexObjectsPlugin::authorizePage(Event $event): void {#595 …4}
          1 => Grav\Plugin\LoginPlugin::authorizeLoginPage(Event $event): void {#596 …4}
          2 => Grav\Plugin\AdminPlugin::onPageInitialized() {#597 …3}
          3 => Grav\Plugin\LoginPlugin::authorizePage(): void {#598 …4}
          4 => Grav\Plugin\AutoSeoPlugin::onPageInitialized() {#599 …3}
          5 => Grav\Plugin\FeatherlightPlugin::onPageInitialized() {#600 …3}
          6 => Grav\Plugin\FormPlugin::onPageInitialized(): void {#601 …4}
          7 => Grav\Plugin\PaginationPlugin::onPageInitialized() {#602 …3}
        ]
        "onUserLoginAuthenticate" => array:5 [
          0 => Grav\Plugin\LoginPlugin::userLoginAuthenticateRateLimit(UserLoginEvent $event): void {#608 …4}
          1 => Grav\Plugin\LoginPlugin::userLoginAuthenticateByRegistration(UserLoginEvent $event): void {#609 …4}
          2 => Grav\Plugin\LoginPlugin::userLoginAuthenticateByRememberMe(UserLoginEvent $event): void {#610 …4}
          3 => Grav\Plugin\LoginPlugin::userLoginAuthenticateByEmail(UserLoginEvent $event): void {#611 …4}
          4 => Grav\Plugin\LoginPlugin::userLoginAuthenticate(UserLoginEvent $event): void {#612 …4}
        ]
        "onUserLoginGuest" => array:1 [
          0 => Grav\Plugin\LoginPlugin::userLoginGuest(UserLoginEvent $event): void {#603 …4}
        ]
        "onFatalException" => array:1 [
          0 => Grav\Plugin\ProblemsPlugin::onFatalException(): void {#187 …4}
        ]
      ]
    }
    
/home/qpnq7028/dirtymarmotte.net/vendor/symfony/event-dispatcher/EventDispatcher.php
            } else {
                $this->removeListener($eventName, [$subscriber, \is_string($params) ? $params : $params[0]]);
            }
        }
    }
 
    /**
     * 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, $event)
    {
        if ($event instanceof Event) {
            $this->doDispatch($listeners, $eventName, $event);
 
            return;
        }
 
        $stoppable = $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
 
        foreach ($listeners as $listener) {
            if ($stoppable && $event->isPropagationStopped()) {
                break;
            }
            // @deprecated: the ternary operator is part of a BC layer and should be removed in 5.0
            $listener($listener instanceof WrappedListener ? new LegacyEventProxy($event) : $event, $eventName, $this);
        }
    }
 
    /**
     * @deprecated since Symfony 4.3, use callListeners() instead
     */
    protected function doDispatch($listeners, $eventName, Event $event)
    {
Arguments
  1. array:8 [
      0 => Grav\Plugin\FlexObjectsPlugin::authorizePage(Event $event): void {#595 …4}
      1 => Grav\Plugin\LoginPlugin::authorizeLoginPage(Event $event): void {#596 …4}
      2 => Grav\Plugin\AdminPlugin::onPageInitialized() {#597 …3}
      3 => Grav\Plugin\LoginPlugin::authorizePage(): void {#598 …4}
      4 => Grav\Plugin\AutoSeoPlugin::onPageInitialized() {#599 …3}
      5 => Grav\Plugin\FeatherlightPlugin::onPageInitialized() {#600 …3}
      6 => Grav\Plugin\FormPlugin::onPageInitialized(): void {#601 …4}
      7 => Grav\Plugin\PaginationPlugin::onPageInitialized() {#602 …3}
    ]
    
  2. "onPageInitialized"
    
  3. RocketTheme\Toolbox\Event\Event {#590}
    
/home/qpnq7028/dirtymarmotte.net/vendor/symfony/event-dispatcher/EventDispatcher.php
 
        if (\is_object($event)) {
            $eventName = $eventName ?? \get_class($event);
        } elseif (\is_string($event) && (null === $eventName || $eventName instanceof ContractsEvent || $eventName instanceof Event)) {
            @trigger_error(sprintf('Calling the "%s::dispatch()" method with the event name as the first argument is deprecated since Symfony 4.3, pass it as the second argument and provide the event object as the first argument instead.', EventDispatcherInterface::class), \E_USER_DEPRECATED);
            $swap = $event;
            $event = $eventName ?? new Event();
            $eventName = $swap;
        } else {
            throw new \TypeError(sprintf('Argument 1 passed to "%s::dispatch()" must be an object, "%s" given.', EventDispatcherInterface::class, \is_object($event) ? \get_class($event) : \gettype($event)));
        }
 
        if (null !== $this->optimized && null !== $eventName) {
            $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($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:8 [
      0 => Grav\Plugin\FlexObjectsPlugin::authorizePage(Event $event): void {#595 …4}
      1 => Grav\Plugin\LoginPlugin::authorizeLoginPage(Event $event): void {#596 …4}
      2 => Grav\Plugin\AdminPlugin::onPageInitialized() {#597 …3}
      3 => Grav\Plugin\LoginPlugin::authorizePage(): void {#598 …4}
      4 => Grav\Plugin\AutoSeoPlugin::onPageInitialized() {#599 …3}
      5 => Grav\Plugin\FeatherlightPlugin::onPageInitialized() {#600 …3}
      6 => Grav\Plugin\FormPlugin::onPageInitialized(): void {#601 …4}
      7 => Grav\Plugin\PaginationPlugin::onPageInitialized() {#602 …3}
    ]
    
  2. "onPageInitialized"
    
  3. RocketTheme\Toolbox\Event\Event {#590}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Grav.php
        return $event;
    }
 
    /**
     * Fires an event with optional parameters.
     *
     * @param  string $eventName
     * @param  Event|null $event
     * @return Event
     */
    public function fireEvent($eventName, Event $event = null)
    {
        /** @var EventDispatcherInterface $events */
        $events = $this['events'];
        if (null === $event) {
            $event = new Event();
        }
 
        $timestamp = microtime(true);
        $events->dispatch($event, $eventName);
 
        /** @var Debugger $debugger */
        $debugger = $this['debugger'];
        $debugger->addEvent($eventName, $event, $events, $timestamp);
 
        return $event;
    }
 
    /**
     * Set the final content length for the page and flush the buffer
     *
     * @return void
     */
    public function shutdown(): void
    {
        // Prevent user abort allowing onShutdown event to run without interruptions.
        if (function_exists('ignore_user_abort')) {
            @ignore_user_abort(true);
        }
 
Arguments
  1. RocketTheme\Toolbox\Event\Event {#590}
    
  2. "onPageInitialized"
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/PagesProcessor.php
 
        // Dump Cache state
        $this->container['debugger']->addMessage($this->container['cache']->getCacheStatus());
 
        $this->container['pages']->init();
 
        $route = $this->container['route'];
 
        $this->container->fireEvent('onPagesInitialized', new Event(
            [
                'pages' => $this->container['pages'],
                'route' => $route,
                'request' => $request
            ]
        ));
        $this->container->fireEvent('onPageInitialized', new Event(
            [
                'page' => $this->container['page'],
                'route' => $route,
                'request' => $request
            ]
        ));
 
        /** @var PageInterface $page */
        $page = $this->container['page'];
 
        if (!$page->routable()) {
            $exception = new RequestException($request, 'Page Not Found', 404);
            // If no page found, fire event
            $event = new Event([
                'page' => $page,
                'code' => $exception->getCode(),
                'message' => $exception->getMessage(),
                'exception' => $exception,
                'route' => $route,
                'request' => $request
            ]);
            $event->page = null;
            $event = $this->container->fireEvent('onPageNotFound', $event);
 
Arguments
  1. "onPageInitialized"
    
  2. RocketTheme\Toolbox\Event\Event {#590}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    private $handler;
 
    /** @var ContainerInterface|null */
    private $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#275}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/TwigProcessor.php
 */
class TwigProcessor extends ProcessorBase
{
    /** @var string */
    public $id = 'twig';
    /** @var string */
    public $title = 'Twig';
 
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
        $this->container['twig']->init();
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    private $handler;
 
    /** @var ContainerInterface|null */
    private $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#238}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/AssetsProcessor.php
class AssetsProcessor extends ProcessorBase
{
    /** @var string */
    public $id = '_assets';
    /** @var string */
    public $title = 'Assets';
 
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
        $this->container['assets']->init();
        $this->container->fireEvent('onAssetsInitialized');
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    private $handler;
 
    /** @var ContainerInterface|null */
    private $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#233}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/SchedulerProcessor.php
class SchedulerProcessor extends ProcessorBase
{
    /** @var string */
    public $id = '_scheduler';
    /** @var string */
    public $title = 'Scheduler';
 
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
        $scheduler = $this->container['scheduler'];
        $this->container->fireEvent('onSchedulerInitialized', new Event(['scheduler' => $scheduler]));
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    private $handler;
 
    /** @var ContainerInterface|null */
    private $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#200}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/BackupsProcessor.php
class BackupsProcessor extends ProcessorBase
{
    /** @var string */
    public $id = '_backups';
    /** @var string */
    public $title = 'Backups';
 
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
        $backups = $this->container['backups'];
        $backups->init();
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    private $handler;
 
    /** @var ContainerInterface|null */
    private $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#197}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/TasksProcessor.php
                        $response = $handler->handle($request);
                    }
 
                    $this->stopTimer();
 
                    return $response;
                } catch (NotFoundException $e) {
                    // Task not found: Let it pass through.
                }
            }
 
            if ($task) {
                $this->container->fireEvent('onTask.' . $task);
            } elseif ($action) {
                $this->container->fireEvent('onAction.' . $action);
            }
        }
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    private $handler;
 
    /** @var ContainerInterface|null */
    private $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#189}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/RequestProcessor.php
        $uri = $request->getUri();
        $ext = mb_strtolower(pathinfo($uri->getPath(), PATHINFO_EXTENSION));
 
        $request = $request
            ->withAttribute('grav', $this->container)
            ->withAttribute('time', $_SERVER['REQUEST_TIME_FLOAT'] ?? GRAV_REQUEST_TIME)
            ->withAttribute('route', Uri::getCurrentRoute()->withExtension($ext))
            ->withAttribute('referrer', $this->container['uri']->referrer());
 
        $event = new RequestHandlerEvent(['request' => $request, 'handler' => $handler]);
        /** @var RequestHandlerEvent $event */
        $event = $this->container->fireEvent('onRequestHandlerInit', $event);
        $response = $event->getResponse();
        $this->stopTimer();
 
        if ($response) {
            return $response;
        }
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    private $handler;
 
    /** @var ContainerInterface|null */
    private $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#185}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#183}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#64}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/ThemesProcessor.php
 */
class ThemesProcessor extends ProcessorBase
{
    /** @var string */
    public $id = 'themes';
    /** @var string */
    public $title = 'Themes';
 
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
        $this->container['themes']->init();
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#64}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    private $handler;
 
    /** @var ContainerInterface|null */
    private $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#64}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#176}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#64}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/PluginsProcessor.php
class PluginsProcessor extends ProcessorBase
{
    /** @var string */
    public $id = 'plugins';
    /** @var string */
    public $title = 'Initialize Plugins';
 
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
        $grav = $this->container;
        $grav->fireEvent('onPluginsInitialized');
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#64}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    private $handler;
 
    /** @var ContainerInterface|null */
    private $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#64}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#141}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#64}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/InitializeProcessor.php
        // Initialize URI (uses session, see issue #3269).
        $this->initializeUri($config);
 
        // Grav may return redirect response right away.
        $redirectCode = (int)$config->get('system.pages.redirect_trailing_slash', 1);
        if ($redirectCode) {
            $response = $this->handleRedirectRequest($request, $redirectCode > 300 ? $redirectCode : null);
            if ($response) {
                $this->stopTimer('_init');
 
                return $response;
            }
        }
 
        $this->stopTimer('_init');
 
        // Wrap call to next handler so that debugger can profile it.
        /** @var Response $response */
        $response = $debugger->profile(static function () use ($handler, $request) {
            return $handler->handle($request);
        });
 
        // Log both request and response and return the response.
        return $debugger->logRequest($request, $response);
    }
 
    public function processCli(): void
    {
        // Load configuration.
        $config = $this->initializeConfig();
 
        // Initialize logger.
        $this->initializeLogger($config);
 
        // Disable debugger.
        $this->container['debugger']->enabled(false);
 
        // Set timezone, locale.
        $this->initializeLocale($config);
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#64}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Debugger.php
        }
 
        $this->addMeasures();
        $this->addDeprecations();
        $this->timers = [];
 
        return $this->debugbar->getData();
    }
 
    /**
     * Hierarchical Profiler support.
     *
     * @param callable $callable
     * @param string|null $message
     * @return mixed
     */
    public function profile(callable $callable, string $message = null)
    {
        $this->startProfiling();
        $response = $callable();
        $this->stopProfiling($message);
 
        return $response;
    }
 
    public function addTwigProfiler(Environment $twig): void
    {
        $clockwork = $this->getClockwork();
        if ($clockwork) {
            $source = new TwigClockworkDataSource($twig);
            $source->listenToEvents();
            $clockwork->addDataSource($source);
        }
    }
 
    /**
     * Start profiling code.
     *
     * @return void
     */
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Processors/InitializeProcessor.php
        $this->initializeUri($config);
 
        // Grav may return redirect response right away.
        $redirectCode = (int)$config->get('system.pages.redirect_trailing_slash', 1);
        if ($redirectCode) {
            $response = $this->handleRedirectRequest($request, $redirectCode > 300 ? $redirectCode : null);
            if ($response) {
                $this->stopTimer('_init');
 
                return $response;
            }
        }
 
        $this->stopTimer('_init');
 
        // Wrap call to next handler so that debugger can profile it.
        /** @var Response $response */
        $response = $debugger->profile(static function () use ($handler, $request) {
            return $handler->handle($request);
        });
 
        // Log both request and response and return the response.
        return $debugger->logRequest($request, $response);
    }
 
    public function processCli(): void
    {
        // Load configuration.
        $config = $this->initializeConfig();
 
        // Initialize logger.
        $this->initializeLogger($config);
 
        // Disable debugger.
        $this->container['debugger']->enabled(false);
 
        // Set timezone, locale.
        $this->initializeLocale($config);
 
        // Load plugins.
Arguments
  1. Closure() {#138 …3}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    private $handler;
 
    /** @var ContainerInterface|null */
    private $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#64}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#85}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#64}
    
/home/qpnq7028/dirtymarmotte.net/system/src/Grav/Common/Grav.php
                },
                'pagesProcessor' => function () {
                    return new PagesProcessor($this);
                },
                'debuggerAssetsProcessor' => function () {
                    return new DebuggerAssetsProcessor($this);
                },
                'renderProcessor' => function () {
                    return new RenderProcessor($this);
                },
            ]
        );
 
        $default = static function () {
            return new Response(404, ['Expires' => 0, 'Cache-Control' => 'no-store, max-age=0'], 'Not Found');
        };
 
        $collection = new RequestHandler($this->middleware, $default, $container);
 
        $response = $collection->handle($this['request']);
        $body = $response->getBody();
 
        /** @var Messages $messages */
        $messages = $this['messages'];
 
        // Prevent caching if session messages were displayed in the page.
        $noCache = $messages->isCleared();
        if ($noCache) {
            $response = $response->withHeader('Cache-Control', 'no-store, max-age=0');
        }
 
        // Handle ETag and If-None-Match headers.
        if ($response->getHeaderLine('ETag') === '1') {
            $etag = md5($body);
            $response = $response->withHeader('ETag', '"' . $etag . '"');
 
            $search = trim($this['request']->getHeaderLine('If-None-Match'), '"');
            if ($noCache === false && $search === $etag) {
                $response = $response->withStatus(304);
                $body = '';
Arguments
  1. Nyholm\Psr7\ServerRequest {#64}
    
/home/qpnq7028/dirtymarmotte.net/index.php
if (!is_file($autoload)) {
    die('Please run: <i>bin/grav install</i>');
}
 
// Register the auto-loader.
$loader = require $autoload;
 
use Grav\Common\Grav;
use RocketTheme\Toolbox\Event\Event;
 
// Get the Grav instance
$grav = Grav::instance(
    array(
        'loader' => $loader
    )
);
 
// Process the page
try {
    $grav->process();
} catch (\Error $e) {
    $grav->fireEvent('onFatalException', new Event(array('exception' => $e)));
    throw $e;
} catch (\Exception $e) {
    $grav->fireEvent('onFatalException', new Event(array('exception' => $e)));
    throw $e;
}
 

Environment & details:

empty
empty
empty
empty
Key Value
redirect_after_login
null
user
Grav\Common\User\User {#618}
Key Value
PATH
"/usr/local/bin:/usr/bin:/bin"
TEMP
"/tmp"
TMP
"/tmp"
TMPDIR
"/tmp"
PWD
"/"
LSCAPI_CRIU_SYNC_FD
"7"
HTTP_ACCEPT
"*/*"
CONTENT_LENGTH
"0"
HTTP_HOST
"dirtymarmotte.net"
HTTP_USER_AGENT
"claudebot"
HTTP_X_COUNTRY_CODE
"US"
HTTP_X_AUTONOMOUS_SYSTEM
"14618"
HTTP_X_REAL_IP
"52.54.103.76"
HTTP_X_FORWARDED_PROTO
"http"
REDIRECT_UNIQUE_ID
"ZgVkWGY3Cshicq98GTBy6AAAAAs"
REDIRECT_SCRIPT_URL
"/ma-prusa-i3"
REDIRECT_SCRIPT_URI
"http://dirtymarmotte.net/ma-prusa-i3"
REDIRECT_STATUS
"200"
UNIQUE_ID
"ZgVkWGY3Cshicq98GTBy6AAAAAs"
SCRIPT_URL
"/ma-prusa-i3"
SCRIPT_URI
"http://dirtymarmotte.net/ma-prusa-i3"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SERVER_NAME
"dirtymarmotte.net"
SERVER_ADDR
"109.234.160.85"
SERVER_PORT
"80"
REMOTE_ADDR
"52.54.103.76"
DOCUMENT_ROOT
"/home/qpnq7028/dirtymarmotte.net"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/qpnq7028/dirtymarmotte.net"
SERVER_ADMIN
"webmaster@dirtymarmottenet.qpnq7028.odns.fr"
SCRIPT_FILENAME
"/home/qpnq7028/dirtymarmotte.net/index.php"
REMOTE_PORT
"40894"
REDIRECT_URL
"/ma-prusa-i3"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/ma-prusa-i3"
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711629400.8779
REQUEST_TIME
1711629400
argv
[]
argc
0
empty
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler