Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined variable: fullFaceting Whoops\Exception\ErrorException thrown with message "Undefined variable: fullFaceting" Stacktrace: #24 Whoops\Exception\ErrorException in /home/tourismecl/www/htdocs/content/mu-plugins/altimax-sitra/resources/models/Faceting.php:109 #23 Whoops\Run:handleError in /home/tourismecl/www/htdocs/content/mu-plugins/altimax-sitra/resources/models/Faceting.php:109 #22 Com\Altimax\Sitra\Models\Faceting:_createFaceting in /home/tourismecl/www/htdocs/content/mu-plugins/altimax-sitra/resources/models/Faceting.php:42 #21 Com\Altimax\Sitra\Models\Faceting:apidaeListCollectionLoaded in /home/tourismecl/www/htdocs/cms/wp-includes/class-wp-hook.php:286 #20 WP_Hook:apply_filters in /home/tourismecl/www/htdocs/cms/wp-includes/plugin.php:203 #19 apply_filters in /home/tourismecl/www/htdocs/content/mu-plugins/altimax-sitra/resources/models/Objets.php:361 #18 Com\Altimax\Sitra\Models\Objets:getObjectListRenderData in /home/tourismecl/www/htdocs/content/mu-plugins/altimax-sitra/resources/models/Display.php:58 #17 Com\Altimax\Sitra\Models\Display:init in /home/tourismecl/www/htdocs/content/themes/altimax/resources/controllers/PageController.php:73 #16 Theme\Controllers\PageController:index in /home/tourismecl/www/htdocs/content/themes/altimax/resources/routes.php:108 #15 Theme\Providers\RoutingService:{closure} in /home/tourismecl/www/vendor/illuminate/routing/Route.php:198 #14 Illuminate\Routing\Route:runCallable in /home/tourismecl/www/vendor/illuminate/routing/Route.php:172 #13 Illuminate\Routing\Route:run in /home/tourismecl/www/vendor/illuminate/routing/Router.php:658 #12 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /home/tourismecl/www/vendor/illuminate/routing/Pipeline.php:30 #11 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/tourismecl/www/vendor/illuminate/pipeline/Pipeline.php:102 #10 Illuminate\Pipeline\Pipeline:then in /home/tourismecl/www/vendor/illuminate/routing/Router.php:660 #9 Illuminate\Routing\Router:runRouteWithinStack in /home/tourismecl/www/vendor/illuminate/routing/Router.php:635 #8 Illuminate\Routing\Router:runRoute in /home/tourismecl/www/vendor/illuminate/routing/Router.php:601 #7 Illuminate\Routing\Router:dispatchToRoute in /home/tourismecl/www/vendor/illuminate/routing/Router.php:590 #6 Illuminate\Routing\Router:dispatch in /home/tourismecl/www/htdocs/content/mu-plugins/themosis-framework/themosis.php:292 #5 Themosis:setRouter in /home/tourismecl/www/htdocs/cms/wp-includes/class-wp-hook.php:286 #4 WP_Hook:apply_filters in /home/tourismecl/www/htdocs/cms/wp-includes/class-wp-hook.php:310 #3 WP_Hook:do_action in /home/tourismecl/www/htdocs/cms/wp-includes/plugin.php:453 #2 do_action in /home/tourismecl/www/htdocs/cms/wp-includes/template-loader.php:12 #1 require_once in /home/tourismecl/www/htdocs/cms/wp-blog-header.php:19 #0 require in /home/tourismecl/www/htdocs/index.php:10
Stack frames (25)
24
Whoops
\
Exception
\
ErrorException
/
htdocs
/
content
/
mu-plugins
/
altimax-sitra
/
resources
/
models
/
Faceting.php
109
23
Whoops
\
Run
handleError
/
htdocs
/
content
/
mu-plugins
/
altimax-sitra
/
resources
/
models
/
Faceting.php
109
22
Com
\
Altimax
\
Sitra
\
Models
\
Faceting
_createFaceting
/
htdocs
/
content
/
mu-plugins
/
altimax-sitra
/
resources
/
models
/
Faceting.php
42
21
Com
\
Altimax
\
Sitra
\
Models
\
Faceting
apidaeListCollectionLoaded
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
286
20
WP_Hook
apply_filters
/
htdocs
/
cms
/
wp-includes
/
plugin.php
203
19
apply_filters
/
htdocs
/
content
/
mu-plugins
/
altimax-sitra
/
resources
/
models
/
Objets.php
361
18
Com
\
Altimax
\
Sitra
\
Models
\
Objets
getObjectListRenderData
/
htdocs
/
content
/
mu-plugins
/
altimax-sitra
/
resources
/
models
/
Display.php
58
17
Com
\
Altimax
\
Sitra
\
Models
\
Display
init
/
htdocs
/
content
/
themes
/
altimax
/
resources
/
controllers
/
PageController.php
73
16
Theme
\
Controllers
\
PageController
index
/
htdocs
/
content
/
themes
/
altimax
/
resources
/
routes.php
108
15
Theme
\
Providers
\
RoutingService
{closure}
/
vendor
/
illuminate
/
routing
/
Route.php
198
14
Illuminate
\
Routing
\
Route
runCallable
/
vendor
/
illuminate
/
routing
/
Route.php
172
13
Illuminate
\
Routing
\
Route
run
/
vendor
/
illuminate
/
routing
/
Router.php
658
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
102
10
Illuminate
\
Pipeline
\
Pipeline
then
/
vendor
/
illuminate
/
routing
/
Router.php
660
9
Illuminate
\
Routing
\
Router
runRouteWithinStack
/
vendor
/
illuminate
/
routing
/
Router.php
635
8
Illuminate
\
Routing
\
Router
runRoute
/
vendor
/
illuminate
/
routing
/
Router.php
601
7
Illuminate
\
Routing
\
Router
dispatchToRoute
/
vendor
/
illuminate
/
routing
/
Router.php
590
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
453
2
do_action
/
htdocs
/
cms
/
wp-includes
/
template-loader.php
12
1
require_once
/
htdocs
/
cms
/
wp-blog-header.php
19
0
require
/
htdocs
/
index.php
10
/
home
/
tourismecl
/
www
/
htdocs
/
content
/
mu-plugins
/
altimax-sitra
/
resources
/
models
/
Faceting.php
                $filter['values'] = array(
                    'debut' => $dateDebutFormat,
                    'fin' => $dateFinFormat
                );

                /* Only send dates params */
                $fullFaceting = array(
                    'dates' => array(
                        'request' => 'dates',
                        'values' => array(
                            'debut' => $dateDebutFormat,
                            'fin' => $dateFinFormat
                        ),
                    )
                );
            }
        }

        return $fullFaceting;
    }

    /* Get all translatable faceting values */
    public function getTranslatableValues()
    {
        $translatableLabels = $this->_em->getRepository('Sitra\Entity\SitraAdminFacetingWidget')->getAllLabels();
        foreach ($translatableLabels as $key => $translatableLabel) {
            $translatableLabels[$key] = $translatableLabel['label'];
        }

        $translatableCustomValues = $this->_em->getRepository('Sitra\Entity\SitraAdminFacetingWidget')->getAllCustomValues();
        $translatableCustomValues = array_values($translatableCustomValues);

        return array_merge($translatableLabels, $translatableCustomValues);
    }

    /**
     * Formate le faceting pour ne récupérer que les filtres possédant des valeurs et supprimer les doublons
     * @param $faceting
     * @param $datesFilter
/
home
/
tourismecl
/
www
/
htdocs
/
content
/
mu-plugins
/
altimax-sitra
/
resources
/
models
/
Faceting.php
                $filter['values'] = array(
                    'debut' => $dateDebutFormat,
                    'fin' => $dateFinFormat
                );

                /* Only send dates params */
                $fullFaceting = array(
                    'dates' => array(
                        'request' => 'dates',
                        'values' => array(
                            'debut' => $dateDebutFormat,
                            'fin' => $dateFinFormat
                        ),
                    )
                );
            }
        }

        return $fullFaceting;
    }

    /* Get all translatable faceting values */
    public function getTranslatableValues()
    {
        $translatableLabels = $this->_em->getRepository('Sitra\Entity\SitraAdminFacetingWidget')->getAllLabels();
        foreach ($translatableLabels as $key => $translatableLabel) {
            $translatableLabels[$key] = $translatableLabel['label'];
        }

        $translatableCustomValues = $this->_em->getRepository('Sitra\Entity\SitraAdminFacetingWidget')->getAllCustomValues();
        $translatableCustomValues = array_values($translatableCustomValues);

        return array_merge($translatableLabels, $translatableCustomValues);
    }

    /**
     * Formate le faceting pour ne récupérer que les filtres possédant des valeurs et supprimer les doublons
     * @param $faceting
     * @param $datesFilter
/
home
/
tourismecl
/
www
/
htdocs
/
content
/
mu-plugins
/
altimax-sitra
/
resources
/
models
/
Faceting.php
    /* array containing page's filters */
    private $_overrideFilters = [];

    /**
     * Return an array of filters corresponding to loaded items
     * @hook apidaeListCollectionLoaded
     * @param $items
     * @return array
     */
    public function apidaeListCollectionLoaded($itemIds, $langCode = 'fr-FR', $datesFilter = null, $search = array(), $overrideFilters)
    {
        $this->_em = container('doctrine.em');
        $this->_items = $this->_em->getRepository('Sitra\Entity\SitraObjet')->findById($itemIds);
        $this->_langCode = $langCode;
        $this->_search = $search;
        $this->_setDatesFilters($datesFilter);

        $this->_overrideFilters = $overrideFilters;

        $faceting = $this->_createFaceting($datesFilter);

        return $faceting;
    }


    private function _createFaceting($datesFilter)
    {
        /* Load faceting if there is items */
        if ($this->_items) {
            if ($this->_overrideFilters) {
                $fullFaceting = $this->_getWidgetsFromWidgetKeys();
            } else {
                $fullFaceting = $this->_getGroupeObjets();

                $widgetsDone = array();

                foreach ($fullFaceting as $groupeId => &$groupe) {
                    if ($groupe['count'] == 0) {
                        unset($fullFaceting[$groupeId]);
                        continue;
/
home
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
htdocs
/
cms
/
wp-includes
/
plugin.php
        $args = func_get_args();
        _wp_call_all_hook($args);
    }
 
    if ( !isset($wp_filter[$tag]) ) {
        if ( isset($wp_filter['all']) )
            array_pop($wp_current_filter);
        return $value;
    }
 
    if ( !isset($wp_filter['all']) )
        $wp_current_filter[] = $tag;
 
    if ( empty($args) )
        $args = func_get_args();
 
    // don't pass the tag name to WP_Hook
    array_shift( $args );
 
    $filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Execute functions hooked on a specific filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 * functions hooked to `$tag` are supplied using an array.
 *
 * @global array $wp_filter         Stores all of the filters
 * @global array $wp_current_filter Stores the list of current filters with the current one last
 *
 * @param string $tag  The name of the filter hook.
 * @param array  $args The arguments supplied to the functions hooked to $tag.
 * @return mixed The filtered value after all hooked functions are applied to it.
/
home
/
tourismecl
/
www
/
htdocs
/
content
/
mu-plugins
/
altimax-sitra
/
resources
/
models
/
Objets.php
            }
        } else {
            $isEvent = "0";
            $length = $queryParams['maxperpage'];
            $offset = ($queryParams['page'] - 1) * $length;
            $itemIds = $this->getItems($offset, $length);
            if ($itemIds) {
                $objets = $this->_objetModel->getObjetDataFromIds($itemIds);
                $items = $this->getTeaserFilesCache($objets, $this->_params['apidae_list_item_layout']);
            }

            $offsetMore = ($queryParams['page']) * $length;
            $itemsMoreIds = $this->getItems($offsetMore, $length);
            if ($itemsMoreIds) {
                $objetsMore = $this->_objetModel->getObjetDataFromIds($itemsMoreIds);
                $itemsMore = $this->getTeaserFilesCache($objetsMore, $this->_params['apidae_list_item_layout']);
            }

            if (isset($this->_params['apidae_list_enable_faceting']) && $this->_params['apidae_list_enable_faceting'] == true) {
                $_filtersCollection = apply_filters('apidaeListCollectionLoaded', $this->getCollection(), $queryParams['langCode'], $datesFilter, $selectedfilters, $this->_params['apidae_list_filters']);
            }
            //$_filtersCollection=[];
            $paginator = new Paginator($queryParams['page'], $length, count($this->getCollection()));
            $uniqueCollection = [];
        }

        $this->_objetsScriptLocalize['isEvent'] = (string)$isEvent;

        if (isset($this->_params['apidae_list_enable_map'])) {
            //get items markers
            if ($objets) {
                $markers = $this->getMarkers($objets, "big");
            }
            if ($objetsMore) {
                $markersMore = $this->getMarkers($objetsMore);
            }
        }

        $dateDispokit = null;
        if (isset($_SESSION['dispoKitBeginDate']) && isset($_SESSION['dispoKitEndDate'])) {
/
home
/
tourismecl
/
www
/
htdocs
/
content
/
mu-plugins
/
altimax-sitra
/
resources
/
models
/
Display.php
                        )->render();
                        break;

                    case 'apidae_experiential_search' :

                        $model = new ExperientialSearch();
                        $renderParams = $model->getExperientialSearchRenderData($subFieldParams[$key]);
                        $scriptsLocalize[] = $model->getObjetsScriptLocalize();

                        //Passing data to the view...
                        //@altimax integration : you can add your custom data to the view like this : $renderParams['myData'] = $test;
                        $flexibleContentRender .= View::make(
                            'widgets.experiential-search.default',
                            $renderParams
                        )->render();
                        break;

                    case 'apidae_list_object' :
                        $model = new Objets($subFieldParams[$key]);
                        $renderParams = $model->getObjectListRenderData($post);
                        $scriptsLocalize[] = $model->getObjetsScriptLocalize();

                        //Passing data to the view...
                        //@altimax integration : you can add your custom data to the view like this : $renderParams['myData'] = $test;
                        $flexibleContentRender .= View::make(
                            'objets.' . $subFieldParams[$key]['apidae_list_default_template'],
                            $renderParams
                        )->render();
                        $isListing = true;
                        break;

                    case 'apidae_push_selection' :

                        $model = new PushSelections();
                        $renderParams = $model->getPushSelectionRenderData($subFieldParams[$key]);
                        $scriptsLocalize[] = $model->getObjetsScriptLocalize();

                        $template = $subFieldParams[$key]['apidae_push_selection_template'];
                        $flexibleContentRender .= View::make(
                            'widgets.push-selections.' . $template,
/
home
/
tourismecl
/
www
/
htdocs
/
content
/
themes
/
altimax
/
resources
/
controllers
/
PageController.php
     */
    public function index($post)
    {
        //initialize html rendering
        $flexibleContentRender = "";
        $isListing = false;
        $objetsScript = null;
        $objetsScriptLocalize = array();
 
        if (class_exists('acf') && have_rows('content_builder')):
 
            while (have_rows('content_builder')) : the_row();
 
                switch (get_row_layout()) {
                    case 'apidae_content' :
                    case 'apidae' :
                        $subFieldParams = get_sub_field('apidae_content');
 
                        $apidaeProcessModel = new Display();
                        $apidaeData = $apidaeProcessModel->init($subFieldParams, $post);
                        if (!$objetsScript) {
                            $objetsScript = Asset::add('objets', 'js/apidae.min.js', [], null);
                        }
 
                        if ($objetsScript) {
                            $objetsScriptLocalize[] = $apidaeData['scriptsLocalize'];
                        }
 
                        $isListing = $apidaeData['isListing'];
                        $flexibleContentRender .= $apidaeData['render'];
                        break;
 
                    case 'contenu_textuel' :
                        $flexibleContentRender .= View::make('flex.flexContentText', [
                            'background_color' => get_sub_field('background_color'),
                            'content' => get_sub_field('content'),
                            'add_link' => get_sub_field('add_link'),
                            'href' => get_sub_field('href'),
                            'txt_link' => get_sub_field('txt_link')
                        ])->render();
/
home
/
tourismecl
/
www
/
htdocs
/
content
/
themes
/
altimax
/
resources
/
routes.php
    'opensystem_footer',
    function ($post) {
        return view('opensystem.footer');
    }
]);
 
/* site map */
Route::get('template', [
    'site-map',
    function ($post) {
        $archive_query = new WP_Query('showposts=1000');
        return view('page.siteMap', ['post' => $post, 'archive_query' => $archive_query]);
    }
]);
 
 
/*page simple*/
Route::match(['GET', 'POST'], 'page', function ($post) {
    $pageController = new PageController(new Canonical(), 'page.page');
    return $pageController->index($post);
});
 
/*page 404*/
Route::get('404', function ($post) {
    return view('page.404', ['post' => $post]);
});
 
/
home
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
vendor
/
illuminate
/
routing
/
Router.php
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
     * @param  Route  $route
     * @param  Request  $request
     * @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
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
htdocs
/
cms
/
wp-includes
/
plugin.php
    }
 
    if ( !isset($wp_filter[$tag]) ) {
        if ( isset($wp_filter['all']) )
            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
/
tourismecl
/
www
/
htdocs
/
cms
/
wp-includes
/
template-loader.php
<?php
/**
 * Loads the correct template based on the visitor's url
 * @package WordPress
 */
if ( defined('WP_USE_THEMES') && WP_USE_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();
    return;
elseif ( is_trackback() ) :
    include( ABSPATH . 'wp-trackback.php' );
/
home
/
tourismecl
/
www
/
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
/
tourismecl
/
www
/
htdocs
/
index.php
<?php
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);
 
/** Loads the WordPress Environment and Template */
require dirname(__FILE__).'/cms/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
Key Value
_icl_current_language fr
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /700-ans-eglise-notre-dame-bourg-rabastens
USER tourismecl
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /700-ans-eglise-notre-dame-bourg-rabastens
REMOTE_PORT 39884
SCRIPT_FILENAME /home/tourismecl/www/htdocs/index.php
SERVER_ADMIN postmaster@www.tourisme-vignoble-bastides.com
DOCUMENT_ROOT /home/tourismecl/www/htdocs/
REMOTE_ADDR 35.175.182.106
SERVER_PORT 443
SERVER_ADDR 10.23.40.128
SERVER_NAME www.tourisme-vignoble-bastides.com
SERVER_SIGNATURE
HTTP_ACCEPT_ENCODING gzip
HTTP_IF_MODIFIED_SINCE Wed, 17 Oct 2018 09:42:40 CEST
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 35.175.182.106
HTTP_X_PREDICTOR 1
HTTP_HOST www.tourisme-vignoble-bastides.com
HTTP_REMOTE_IP 35.175.182.106
ENVIRONMENT production
CFG_CLUSTER cluster023
HTTPS on
SCRIPT_URI https://www.tourisme-vignoble-bastides.com:443/700-ans-eglise-notre-dame-bourg-rabastens
SCRIPT_URL /700-ans-eglise-notre-dame-bourg-rabastens
GEOIP_LONGITUDE -77.472801
GEOIP_LATITUDE 39.048100
GEOIP_AREA_CODE 703
GEOIP_DMA_CODE 511
GEOIP_CITY Ashburn
GEOIP_REGION VA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID XBJA1woXKIAAAC@4V0cAAAFz
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1544700119.5916
REQUEST_TIME 1544700119
argv Array ( )
argc 0
ACF_PRO_KEY b3JkZXJfaWQ9OTAxMDF8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE2LTA5LTIxIDA4OjAyOjMx
DB_NAME bastides
DB_USER bastides
DB_PASSWORD U22K5bwu
DB_HOST tf2483-022.privatesql:35285
WP_HOME https://www.tourisme-vignoble-bastides.com
WP_SITEURL https://www.tourisme-vignoble-bastides.com/cms
APIDAEROOTPATH /home/tourismecl/www/modules/synchro-apidae/module/Sitra
ALLOWED_IPS 80.245.23.179,127.0.0.1,164.132.235.17,91.134.248.235,213.186.33.186,89.31.146.255,89.31.147.59
SITRAPATH /home/tourismecl/www/htdocs/sitra
PHPPATH /usr/local/php7.1/bin/php
PROJETID 2708
Key Value
USER tourismecl
SCRIPT_NAME /index.php
REQUEST_URI /700-ans-eglise-notre-dame-bourg-rabastens
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /700-ans-eglise-notre-dame-bourg-rabastens
REMOTE_PORT 39884
SCRIPT_FILENAME /home/tourismecl/www/htdocs/index.php
SERVER_ADMIN postmaster@www.tourisme-vignoble-bastides.com
DOCUMENT_ROOT /home/tourismecl/www/htdocs
REMOTE_ADDR 35.175.182.106
SERVER_PORT 443
SERVER_ADDR 10.23.40.128
SERVER_NAME www.tourisme-vignoble-bastides.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_ACCEPT_ENCODING gzip
HTTP_IF_MODIFIED_SINCE Wed, 17 Oct 2018 09:42:40 CEST
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 35.175.182.106
HTTP_X_PREDICTOR 1
HTTP_HOST www.tourisme-vignoble-bastides.com
HTTP_REMOTE_IP 35.175.182.106
ENVIRONMENT production
CFG_CLUSTER cluster023
HTTPS on
SCRIPT_URI https://www.tourisme-vignoble-bastides.com:443/700-ans-eglise-notre-dame-bourg-rabastens
SCRIPT_URL /700-ans-eglise-notre-dame-bourg-rabastens
GEOIP_LONGITUDE -77.472801
GEOIP_LATITUDE 39.048100
GEOIP_AREA_CODE 703
GEOIP_DMA_CODE 511
GEOIP_CITY Ashburn
GEOIP_REGION VA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID XBJA1woXKIAAAC@4V0cAAAFz
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1544700119.5916
REQUEST_TIME 1544700119
argv Array ( )
argc 0
ACF_PRO_KEY b3JkZXJfaWQ9OTAxMDF8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE2LTA5LTIxIDA4OjAyOjMx
DB_NAME bastides
DB_USER bastides
DB_PASSWORD U22K5bwu
DB_HOST tf2483-022.privatesql:35285
WP_HOME https://www.tourisme-vignoble-bastides.com
WP_SITEURL https://www.tourisme-vignoble-bastides.com/cms
APIDAEROOTPATH /home/tourismecl/www/modules/synchro-apidae/module/Sitra
ALLOWED_IPS 80.245.23.179,127.0.0.1,164.132.235.17,91.134.248.235,213.186.33.186,89.31.146.255,89.31.147.59
SITRAPATH /home/tourismecl/www/htdocs/sitra
PHPPATH /usr/local/php7.1/bin/php
PROJETID 2708
0. Whoops\Handler\PrettyPageHandler