Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined index: post Whoops\Exception\ErrorException thrown with message "Undefined index: post" Stacktrace: #20 Whoops\Exception\ErrorException in /home/startoirae/www/Betterfly/htdocs/content/themes/Betterfly/resources/NeidraT/database/Requests.php:380 #19 Whoops\Run:handleError in /home/startoirae/www/Betterfly/htdocs/content/themes/Betterfly/resources/NeidraT/database/Requests.php:380 #18 NeidraServices\NeidraT\Database\Requests:postResult in /home/startoirae/www/Betterfly/htdocs/content/themes/Betterfly/resources/NeidraT/database/Requests.php:170 #17 NeidraServices\NeidraT\Database\Requests:getResult in /home/startoirae/www/Betterfly/htdocs/content/themes/Betterfly/resources/NeidraT/postTypes/AbstractPostType.php:215 #16 NeidraServices\NeidraT\PostTypes\AbstractPostType:viewLoading in /home/startoirae/www/Betterfly/htdocs/content/themes/Betterfly/resources/NeidraT/router/Router.php:195 #15 NeidraServices\NeidraT\Router\Router:NeidraServices\NeidraT\Router\{closure} in /home/startoirae/www/Betterfly/vendor/illuminate/routing/Route.php:205 #14 Illuminate\Routing\Route:runCallable in /home/startoirae/www/Betterfly/vendor/illuminate/routing/Route.php:179 #13 Illuminate\Routing\Route:run in /home/startoirae/www/Betterfly/vendor/illuminate/routing/Router.php:682 #12 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /home/startoirae/www/Betterfly/vendor/illuminate/routing/Pipeline.php:30 #11 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/startoirae/www/Betterfly/vendor/illuminate/pipeline/Pipeline.php:104 #10 Illuminate\Pipeline\Pipeline:then in /home/startoirae/www/Betterfly/vendor/illuminate/routing/Router.php:684 #9 Illuminate\Routing\Router:runRouteWithinStack in /home/startoirae/www/Betterfly/vendor/illuminate/routing/Router.php:659 #8 Illuminate\Routing\Router:runRoute in /home/startoirae/www/Betterfly/vendor/illuminate/routing/Router.php:625 #7 Illuminate\Routing\Router:dispatchToRoute in /home/startoirae/www/Betterfly/vendor/illuminate/routing/Router.php:614 #6 Illuminate\Routing\Router:dispatch in /home/startoirae/www/Betterfly/htdocs/content/mu-plugins/themosis-framework/themosis.php:292 #5 Themosis:setRouter in /home/startoirae/www/Betterfly/htdocs/cms/wp-includes/class-wp-hook.php:286 #4 WP_Hook:apply_filters in /home/startoirae/www/Betterfly/htdocs/cms/wp-includes/class-wp-hook.php:310 #3 WP_Hook:do_action in /home/startoirae/www/Betterfly/htdocs/cms/wp-includes/plugin.php:465 #2 do_action in /home/startoirae/www/Betterfly/htdocs/cms/wp-includes/template-loader.php:13 #1 require_once in /home/startoirae/www/Betterfly/htdocs/cms/wp-blog-header.php:19 #0 require in /home/startoirae/www/Betterfly/htdocs/index.php:40
Stack frames (21)
20
Whoops
\
Exception
\
ErrorException
/
htdocs
/
content
/
themes
/
Betterfly
/
resources
/
NeidraT
/
database
/
Requests.php
380
19
Whoops
\
Run
handleError
/
htdocs
/
content
/
themes
/
Betterfly
/
resources
/
NeidraT
/
database
/
Requests.php
380
18
NeidraServices
\
NeidraT
\
Database
\
Requests
postResult
/
htdocs
/
content
/
themes
/
Betterfly
/
resources
/
NeidraT
/
database
/
Requests.php
170
17
NeidraServices
\
NeidraT
\
Database
\
Requests
getResult
/
htdocs
/
content
/
themes
/
Betterfly
/
resources
/
NeidraT
/
postTypes
/
AbstractPostType.php
215
16
NeidraServices
\
NeidraT
\
PostTypes
\
AbstractPostType
viewLoading
/
htdocs
/
content
/
themes
/
Betterfly
/
resources
/
NeidraT
/
router
/
Router.php
195
15
NeidraServices
\
NeidraT
\
Router
\
Router
NeidraServices
\
NeidraT
\
Router
\
{closure}
/
vendor
/
illuminate
/
routing
/
Route.php
205
14
Illuminate
\
Routing
\
Route
runCallable
/
vendor
/
illuminate
/
routing
/
Route.php
179
13
Illuminate
\
Routing
\
Route
run
/
vendor
/
illuminate
/
routing
/
Router.php
682
12
Illuminate
\
Routing
\
Router
Illuminate
\
Routing
\
{closure}
/
vendor
/
illuminate
/
routing
/
Pipeline.php
30
11
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
illuminate
/
pipeline
/
Pipeline.php
104
10
Illuminate
\
Pipeline
\
Pipeline
then
/
vendor
/
illuminate
/
routing
/
Router.php
684
9
Illuminate
\
Routing
\
Router
runRouteWithinStack
/
vendor
/
illuminate
/
routing
/
Router.php
659
8
Illuminate
\
Routing
\
Router
runRoute
/
vendor
/
illuminate
/
routing
/
Router.php
625
7
Illuminate
\
Routing
\
Router
dispatchToRoute
/
vendor
/
illuminate
/
routing
/
Router.php
614
6
Illuminate
\
Routing
\
Router
dispatch
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
themosis.php
292
5
Themosis
setRouter
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
286
4
WP_Hook
apply_filters
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
310
3
WP_Hook
do_action
/
htdocs
/
cms
/
wp-includes
/
plugin.php
465
2
do_action
/
htdocs
/
cms
/
wp-includes
/
template-loader.php
13
1
require_once
/
htdocs
/
cms
/
wp-blog-header.php
19
0
require
/
htdocs
/
index.php
40
/
home
/
startoirae
/
www
/
Betterfly
/
htdocs
/
content
/
themes
/
Betterfly
/
resources
/
NeidraT
/
database
/
Requests.php
        $postTypeSlugged = $generic ? 'datas' : $postType->key();
        $postTypeRequest->addWhere('id', 'post.ID IN (%postTypesId%)');
        $this->requests[$postTypeRequest->getRequestName()] = $postTypeRequest;
        $this->variables[$postTypeRequest->getRequestName()] = [
            'postTypesId' => [
                'type' => 'ids',
                'path' => 'post.' . $postTypeSlugged
            ]
        ];
        $this->postTypesInPost[] = $postTypeSlugged;
    }
 
 
    /**
     * @param $pageKey
     * @return \stdClass the post object
     */
    private function postResult($pageKey)
    {
        $out = DatabaseUtils::request($this->requests['post'], ['pKey' => $pageKey], true);
        $this->removeRequest('post');
        return $out;
    }
 
    /**
     * @param $pageKey
     * @return \stdClass the post object
     */
    private function staticPostResult($pageKey)
    {
        $out = new \stdClass();
        if (is_array($this->requests['post'])) {
            $tmp = $this->requests['post'];
            foreach ($tmp as $key => $req) {
                $_ = DatabaseUtils::request(
                    $req,
                    ['pKey' => $pageKey],
                    true
                );
                if ($_ instanceof \stdClass) {
/
home
/
startoirae
/
www
/
Betterfly
/
htdocs
/
content
/
themes
/
Betterfly
/
resources
/
NeidraT
/
database
/
Requests.php
        $postTypeSlugged = $generic ? 'datas' : $postType->key();
        $postTypeRequest->addWhere('id', 'post.ID IN (%postTypesId%)');
        $this->requests[$postTypeRequest->getRequestName()] = $postTypeRequest;
        $this->variables[$postTypeRequest->getRequestName()] = [
            'postTypesId' => [
                'type' => 'ids',
                'path' => 'post.' . $postTypeSlugged
            ]
        ];
        $this->postTypesInPost[] = $postTypeSlugged;
    }
 
 
    /**
     * @param $pageKey
     * @return \stdClass the post object
     */
    private function postResult($pageKey)
    {
        $out = DatabaseUtils::request($this->requests['post'], ['pKey' => $pageKey], true);
        $this->removeRequest('post');
        return $out;
    }
 
    /**
     * @param $pageKey
     * @return \stdClass the post object
     */
    private function staticPostResult($pageKey)
    {
        $out = new \stdClass();
        if (is_array($this->requests['post'])) {
            $tmp = $this->requests['post'];
            foreach ($tmp as $key => $req) {
                $_ = DatabaseUtils::request(
                    $req,
                    ['pKey' => $pageKey],
                    true
                );
                if ($_ instanceof \stdClass) {
/
home
/
startoirae
/
www
/
Betterfly
/
htdocs
/
content
/
themes
/
Betterfly
/
resources
/
NeidraT
/
database
/
Requests.php
                $this->variables[$reqKey] = [];
            }
            $this->variables[$reqKey] = array_merge($this->variables[$reqKey], $variables);
        }
    }
 
    /**
     * Return an array of StdClass
     *
     * @param string $pageKey
     * @return array
     */
    public function getResult($pageKey)
    {
        $this->results = [];
 
        if ($this->entity instanceof iPage && $this->entity->getPattern() instanceof iStaticPatterns) {
            $this->results['post'] = $this->staticPostResult($pageKey);
        } else {
            $this->results['post'] = $this->postResult($pageKey);
        }
 
        if (isset($this->results['post']->options) && !empty($this->results['post']->options)) {
            if (is_string($this->results['post']->options)) {
                $_options = unserialize($this->results['post']->options);
            } else {
                $_options = $this->results['post']->options;
            }
            foreach ($_options as $key => $opt) {
                $this->results['post']->$key = $opt;
            }
            $this->results['post']->options = $_options;
        }
 
        if ($this->entity instanceof iPage && $this->entity->getPattern() instanceof iSectionsOption) {
 
            foreach ($this->entity->getPattern()->getSections() as $key => $section) {
                if (!empty($this->results['post']->$key) && DashboardUtils::isAdditionnalSection($section)) {
                    if (is_string($this->results['post']->$key)) {
                        $this->results['post']->$key = unserialize($this->results['post']->$key);
/
home
/
startoirae
/
www
/
Betterfly
/
htdocs
/
content
/
themes
/
Betterfly
/
resources
/
NeidraT
/
postTypes
/
AbstractPostType.php
     */
    public function singularPathView()
    {
        return $this->template->singularViewPath();
    }
 
 
    /**
     * loading function in case of view
     */
    public function viewLoading()
    {
        if ($this->template instanceof iHasSingular) {
 
            $this->requests = new Requests($this);
 
            $this->template->manageSingularRequest($this->requests);
            $this->template->addSingularAssets();
 
            $this->datas = $this->requests->getResult(Loop::id());
 
            if ($this->template instanceof iSingularManageResult) {
                $this->template->singularManageResult($this->datas);
            }
            $this->initModules();
        }
 
    }
 
    /**
     * Init the modules if the template accept singularModule
     */
    public function initModules()
    {
        if ($this->template instanceof iSingularModule || $this->template instanceof iTaxonomyModule) {
            $modulesId = [];
            $_ = SiteMapUtils::getPostTypeModulesId($this);
            if ($_ instanceof \stdClass && isset($_->modules)) {
                $_m = unserialize($_->modules);
                if (!empty($_m) && isset($_m['modules'])) {
/
home
/
startoirae
/
www
/
Betterfly
/
htdocs
/
content
/
themes
/
Betterfly
/
resources
/
NeidraT
/
router
/
Router.php
                            $params['modules'] = $taxo->getPostType()->getModules();
                        }
                        return view(RouterUtils::templateView($taxo->getTemplate()->taxonomyViewPath()), $params);
                    }]);
                }
            }
        }
    }
 
    /**
     * @param AbstractPostType $postType
     */
    private static function addSingular(AbstractPostType $postType)
    {
 
 
        if ($postType->isRoutable()) {
            Route::get('singular', [$postType->slug(), function (\WP_Post $post, \WP_Query $query) use ($postType) {
 
                $postType->viewLoading();
 
                $params = $postType->getDatas();
 
                if ($postType->getTemplate() instanceof iSingularModule) {
                    $params['modules'] = $postType->getModules();
                }
                return view(RouterUtils::templateView($postType->getTemplate()->singularViewPath()), $params);
            }]);
        }
    }
 
    /**
     * Add the Static routes
     */
    private static function addStaticPagesRoutes()
    {
        Route::get('/sitemap', function () {
            return view('pages.sitemap');
        });
        Route::get('/mentions', function () {
/
home
/
startoirae
/
www
/
Betterfly
/
vendor
/
illuminate
/
routing
/
Route.php
     * Checks whether the route's action is a controller.
     *
     * @return bool
     */
    protected function isControllerAction()
    {
        return is_string($this->action['uses']);
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     */
    protected function runCallable()
    {
        $callable = $this->action['uses'];
 
        return $callable(...array_values($this->resolveMethodDependencies(
            $this->parametersWithoutNulls(), new ReflectionFunction($this->action['uses'])
        )));
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     */
    protected function runController()
    {
        return $this->controllerDispatcher()->dispatch(
            $this, $this->getController(), $this->getControllerMethod()
        );
    }
 
    /**
     * Get the controller instance for the route.
     *
/
home
/
startoirae
/
www
/
Betterfly
/
vendor
/
illuminate
/
routing
/
Route.php
    protected function parseAction($action)
    {
        return RouteAction::parse($this->uri, $action);
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     */
    public function run()
    {
        $this->container = $this->container ?: new Container;
 
        try {
            if ($this->isControllerAction()) {
                return $this->runController();
            }
 
            return $this->runCallable();
        } catch (HttpResponseException $e) {
            return $e->getResponse();
        }
    }
 
    /**
     * Checks whether the route's action is a controller.
     *
     * @return bool
     */
    protected function isControllerAction()
    {
        return is_string($this->action['uses']);
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     */
/
home
/
startoirae
/
www
/
Betterfly
/
vendor
/
illuminate
/
routing
/
Router.php
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten();
 
        return $this->sortMiddleware($middleware);
    }
 
    /**
/
home
/
startoirae
/
www
/
Betterfly
/
vendor
/
illuminate
/
routing
/
Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
 
/**
 * This extended pipeline catches any exceptions that occur during each slice.
 *
 * The exceptions are converted to HTTP responses for proper middleware handling.
 */
class Pipeline extends BasePipeline
{
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            try {
                return $destination($passable);
            } catch (Exception $e) {
                return $this->handleException($passable, $e);
            } catch (Throwable $e) {
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
/
home
/
startoirae
/
www
/
Betterfly
/
vendor
/
illuminate
/
pipeline
/
Pipeline.php
    public function via($method)
    {
        $this->method = $method;
 
        return $this;
    }
 
    /**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @return mixed
     */
    public function then(Closure $destination)
    {
        $pipeline = array_reduce(
            array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
        );
 
        return $pipeline($this->passable);
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            return $destination($passable);
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
/
home
/
startoirae
/
www
/
Betterfly
/
vendor
/
illuminate
/
routing
/
Router.php
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten();
 
        return $this->sortMiddleware($middleware);
    }
 
    /**
     * Sort the given middleware by priority.
     *
/
home
/
startoirae
/
www
/
Betterfly
/
vendor
/
illuminate
/
routing
/
Router.php
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Routing\Route  $route
     * @return mixed
     */
    protected function runRoute(Request $request, Route $route)
    {
        $request->setRouteResolver(function () use ($route) {
            return $route;
        });
 
        $this->events->dispatch(new Events\RouteMatched($route, $request));
 
        return $this->prepareResponse($request,
            $this->runRouteWithinStack($route, $request)
        );
    }
 
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
/
home
/
startoirae
/
www
/
Betterfly
/
vendor
/
illuminate
/
routing
/
Router.php
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    public function dispatchToRoute(Request $request)
    {
        return $this->runRoute($request, $this->findRoute($request));
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
    {
        $this->current = $route = $this->routes->match($request);
 
        $this->container->instance(Route::class, $route);
 
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
/
home
/
startoirae
/
www
/
Betterfly
/
vendor
/
illuminate
/
routing
/
Router.php
     * @return mixed
     */
    public function respondWithRoute($name)
    {
        $route = tap($this->routes->getByName($name))->bind($this->currentRequest);
 
        return $this->runRoute($this->currentRequest, $route);
    }
 
    /**
     * Dispatch the request to the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    public function dispatchToRoute(Request $request)
    {
        return $this->runRoute($request, $this->findRoute($request));
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
/
home
/
startoirae
/
www
/
Betterfly
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
themosis.php
             * Register framework assets.
             */
            $this->container['asset']->add('themosis-core-styles', 'css/_themosisCore.css', ['wp-color-picker'])->to('admin');
            $this->container['asset']->add('themosis-core-scripts', 'js/_themosisCore.js', ['jquery', 'jquery-ui-sortable', 'underscore', 'backbone', 'mce-view', 'wp-color-picker'], '1.3.0', true)->to('admin');
        }
 
        /**
         * Hook into front-end routing.
         * Setup the router API to be executed before
         * theme default templates.
         */
        public function setRouter()
        {
            if (is_feed() || is_comment_feed()) {
                return;
            }
 
            try {
                $request = $this->container['request'];
                $response = $this->container['router']->dispatch($request);
 
                // We only send back the content because, headers are already defined
                // by WordPress internals.
                $response->sendContent();
            } catch (\Symfony\Component\HttpKernel\Exception\NotFoundHttpException $exception) {
                /*
                 * Fallback to WordPress templates.
                 */
            }
        }
 
        /**
         * Enqueue Admin scripts.
         */
        public function adminEnqueueScripts()
        {
            /*
             * Make sure the media scripts are always enqueued.
             */
            wp_enqueue_media();
/
home
/
startoirae
/
www
/
Betterfly
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
        }
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args                           = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = $priority = current( $this->iterations[ $nesting_level ] );
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice if possible.
                if ( $the_['accepted_args'] == 0 ) {
                    $value = call_user_func_array( $the_['function'], array() );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Executes the callback functions hooked on a specific action hook.
     *
     * @since 4.7.0
     *
     * @param mixed $args Arguments to pass to the hook callbacks.
/
home
/
startoirae
/
www
/
Betterfly
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Executes the callback functions hooked on a specific action hook.
     *
     * @since 4.7.0
     *
     * @param mixed $args Arguments to pass to the hook callbacks.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level                      = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
/
home
/
startoirae
/
www
/
Betterfly
/
htdocs
/
cms
/
wp-includes
/
plugin.php
            array_pop( $wp_current_filter );
        }
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
    }
 
    $args = array();
    if ( is_array( $arg ) && 1 == count( $arg ) && isset( $arg[0] ) && is_object( $arg[0] ) ) { // array(&$this)
        $args[] =& $arg[0];
    } else {
        $args[] = $arg;
    }
    for ( $a = 2, $num = func_num_args(); $a < $num; $a++ ) {
        $args[] = func_get_arg( $a );
    }
 
    $wp_filter[ $tag ]->do_action( $args );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Retrieve the number of times an action is fired.
 *
 * @since 2.1.0
 *
 * @global array $wp_actions Increments the amount of times action was triggered.
 *
 * @param string $tag The name of the action hook.
 * @return int The number of times action hook $tag is fired.
 */
function did_action( $tag ) {
    global $wp_actions;
 
    if ( ! isset( $wp_actions[ $tag ] ) ) {
        return 0;
    }
/
home
/
startoirae
/
www
/
Betterfly
/
htdocs
/
cms
/
wp-includes
/
template-loader.php
<?php
/**
 * Loads the correct template based on the visitor's url
 *
 * @package WordPress
 */
if ( wp_using_themes() ) {
    /**
     * Fires before determining which template to load.
     *
     * @since 1.5.0
     */
    do_action( 'template_redirect' );
}
 
/**
 * Filters whether to allow 'HEAD' requests to generate content.
 *
 * Provides a significant performance bump by exiting before the page
 * content loads for 'HEAD' requests. See #14348.
 *
 * @since 3.5.0
 *
 * @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
 */
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {
    exit();
}
 
// Process feeds and trackbacks even if not using themes.
if ( is_robots() ) :
    /**
     * Fired when the template loader determines a robots.txt request.
     *
     * @since 2.1.0
     */
    do_action( 'do_robots' );
    return;
elseif ( is_feed() ) :
    do_feed();
/
home
/
startoirae
/
www
/
Betterfly
/
htdocs
/
cms
/
wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once( dirname( __FILE__ ) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
/
home
/
startoirae
/
www
/
Betterfly
/
htdocs
/
index.php
//
//        //Get Header Response
//        $response = $http_response_header[0];
//
//        if ($response == 'HTTP/1.0 200 OK' || $response == 'HTTP/1.1 200 OK') {
//            @mkdir('cache' . $_SERVER['REQUEST_URI'], 0755, true);
//            file_put_contents('cache' . $_SERVER['REQUEST_URI'] . 'index.html.gz', gzencode($data, 9));
//        } else {
//            /** Loads the WordPress Environment and Template */
//            require dirname(__FILE__) . '/cms/wp-blog-header.php';
//            exit;
//        }
//    }
//    //Read GZ file
//    readgzfile('cache' . $_SERVER['REQUEST_URI'] . 'index.html.gz');
//
//} else {
 
    /** Loads the WordPress Environment and Template */
    require dirname(__FILE__) . '/cms/wp-blog-header.php';
 
//}
 
 

Environment & details:

empty
empty
empty
Key Value
wordpress_test_cookie WP Cookie check
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /2019/06/27/bonjour-tout-le-monde/
USER startoirae
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /2019/06/27/bonjour-tout-le-monde/
REMOTE_PORT 21750
SCRIPT_FILENAME /home/startoirae/www/Betterfly/htdocs/index.php
SERVER_ADMIN postmaster@betterfly.neidraservices.com
DOCUMENT_ROOT /home/startoirae/www/Betterfly/htdocs
REMOTE_ADDR 216.73.216.3
SERVER_PORT 443
SERVER_ADDR 10.127.20.20
SERVER_NAME betterfly.neidraservices.com
SERVER_SIGNATURE
HTTP_REMOTE_IP 216.73.216.3
HTTP_REFERER https://betterfly.neidraservices.com/2019/06/27/bonjour-tout-le-monde
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
HTTP_X_OVHREQUEST_ID ce114a5b389dcb1c3ce7b5d1c7b0c6fd
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 216.73.216.3
HTTP_X_PREDICTOR 1
HTTP_COOKIE wordpress_test_cookie=WP+Cookie+check
HTTP_HOST betterfly.neidraservices.com
ENVIRONMENT production
CFG_CLUSTER cluster127
HTTPS on
SCRIPT_URI https://betterfly.neidraservices.com:443/2019/06/27/bonjour-tout-le-monde/
SCRIPT_URL /2019/06/27/bonjour-tout-le-monde/
GEOIP_LONGITUDE -119.070099
GEOIP_LATITUDE 34.355598
GEOIP_AREA_CODE 805
GEOIP_DMA_CODE 803
GEOIP_CITY Santa Paula
GEOIP_REGION CA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID aTOyVOBdRReAgKcVhBRxHQAACWs
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1764995668.8543
REQUEST_TIME 1764995668
argv Array ( )
argc 0
DB_NAME neidrasetwneidra
DB_USER neidrasetwneidra
DB_PASSWORD 11Oknescs
DB_HOST neidrasetwneidra.mysql.db
DB_PREFIX bf_
WP_HOME http://betterfly.neidraservices.com
WP_SITEURL http://betterfly.neidraservices.com/cms
Key Value
USER startoirae
SCRIPT_NAME /index.php
REQUEST_URI /2019/06/27/bonjour-tout-le-monde/
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /2019/06/27/bonjour-tout-le-monde/
REMOTE_PORT 21750
SCRIPT_FILENAME /home/startoirae/www/Betterfly/htdocs/index.php
SERVER_ADMIN postmaster@betterfly.neidraservices.com
DOCUMENT_ROOT /home/startoirae/www/Betterfly/htdocs
REMOTE_ADDR 216.73.216.3
SERVER_PORT 443
SERVER_ADDR 10.127.20.20
SERVER_NAME betterfly.neidraservices.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_REMOTE_IP 216.73.216.3
HTTP_REFERER https://betterfly.neidraservices.com/2019/06/27/bonjour-tout-le-monde
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
HTTP_X_OVHREQUEST_ID ce114a5b389dcb1c3ce7b5d1c7b0c6fd
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 216.73.216.3
HTTP_X_PREDICTOR 1
HTTP_COOKIE wordpress_test_cookie=WP+Cookie+check
HTTP_HOST betterfly.neidraservices.com
ENVIRONMENT production
CFG_CLUSTER cluster127
HTTPS on
SCRIPT_URI https://betterfly.neidraservices.com:443/2019/06/27/bonjour-tout-le-monde/
SCRIPT_URL /2019/06/27/bonjour-tout-le-monde/
GEOIP_LONGITUDE -119.070099
GEOIP_LATITUDE 34.355598
GEOIP_AREA_CODE 805
GEOIP_DMA_CODE 803
GEOIP_CITY Santa Paula
GEOIP_REGION CA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID aTOyVOBdRReAgKcVhBRxHQAACWs
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1764995668.8543
REQUEST_TIME 1764995668
argv Array ( )
argc 0
DB_NAME neidrasetwneidra
DB_USER neidrasetwneidra
DB_PASSWORD 11Oknescs
DB_HOST neidrasetwneidra.mysql.db
DB_PREFIX bf_
WP_HOME http://betterfly.neidraservices.com
WP_SITEURL http://betterfly.neidraservices.com/cms
0. Whoops\Handler\PrettyPageHandler