ErrorException (E_ERROR)
Invalid argument supplied for foreach() (View: /var/www/vhosts/adutt.fr/httpdocs/htdocs/content/themes/theme_zetruc/resources/views/contentwithsidebar.scout.php) ErrorException thrown with message "Invalid argument supplied for foreach() (View: /var/www/vhosts/adutt.fr/httpdocs/htdocs/content/themes/theme_zetruc/resources/views/contentwithsidebar.scout.php)" Stacktrace: #28 ErrorException in /var/www/vhosts/adutt.fr/httpdocs/storage/views/e8fcec234f7fa57aa4b130beb78164a5a466c687.php:20 #27 Whoops\Exception\ErrorException in /var/www/vhosts/adutt.fr/httpdocs/storage/views/e8fcec234f7fa57aa4b130beb78164a5a466c687.php:20 #26 Whoops\Run:handleError in /var/www/vhosts/adutt.fr/httpdocs/storage/views/e8fcec234f7fa57aa4b130beb78164a5a466c687.php:20 #25 include in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/view/Engines/PhpEngine.php:42 #24 Illuminate\View\Engines\PhpEngine:evaluatePath in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/view/Engines/CompilerEngine.php:59 #23 Illuminate\View\Engines\CompilerEngine:get in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/view/View.php:137 #22 Illuminate\View\View:getContents in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/view/View.php:120 #21 Illuminate\View\View:renderContents in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/view/View.php:85 #20 Illuminate\View\View:render in /var/www/vhosts/adutt.fr/httpdocs/htdocs/content/mu-plugins/themosis-framework/src/Themosis/helpers.php:560 #19 view in /var/www/vhosts/adutt.fr/httpdocs/htdocs/content/themes/theme_zetruc/resources/controllers/ContentwithsidebarController.php:40 #18 Theme\Controllers\ContentwithsidebarController:index in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/routing/Controller.php:55 #17 call_user_func_array in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/routing/Controller.php:55 #16 Illuminate\Routing\Controller:callAction in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/routing/ControllerDispatcher.php:44 #15 Illuminate\Routing\ControllerDispatcher:dispatch in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/routing/Route.php:204 #14 Illuminate\Routing\Route:runController in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/routing/Route.php:160 #13 Illuminate\Routing\Route:run in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/routing/Router.php:559 #12 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/routing/Pipeline.php:30 #11 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/pipeline/Pipeline.php:102 #10 Illuminate\Pipeline\Pipeline:then in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/routing/Router.php:561 #9 Illuminate\Routing\Router:runRouteWithinStack in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/routing/Router.php:520 #8 Illuminate\Routing\Router:dispatchToRoute in /var/www/vhosts/adutt.fr/httpdocs/vendor/illuminate/routing/Router.php:498 #7 Illuminate\Routing\Router:dispatch in /var/www/vhosts/adutt.fr/httpdocs/htdocs/content/mu-plugins/themosis-framework/themosis.php:292 #6 Themosis:setRouter in /var/www/vhosts/adutt.fr/httpdocs/htdocs/cms/wp-includes/class-wp-hook.php:286 #5 call_user_func_array in /var/www/vhosts/adutt.fr/httpdocs/htdocs/cms/wp-includes/class-wp-hook.php:286 #4 WP_Hook:apply_filters in /var/www/vhosts/adutt.fr/httpdocs/htdocs/cms/wp-includes/class-wp-hook.php:310 #3 WP_Hook:do_action in /var/www/vhosts/adutt.fr/httpdocs/htdocs/cms/wp-includes/plugin.php:453 #2 do_action in /var/www/vhosts/adutt.fr/httpdocs/htdocs/cms/wp-includes/template-loader.php:12 #1 require_once in /var/www/vhosts/adutt.fr/httpdocs/htdocs/cms/wp-blog-header.php:19 #0 require in /var/www/vhosts/adutt.fr/httpdocs/htdocs/index.php:11
Stack frames (29)
28
ErrorException
/
storage
/
views
/
e8fcec234f7fa57aa4b130beb78164a5a466c687.php
20
27
Whoops
\
Exception
\
ErrorException
/
storage
/
views
/
e8fcec234f7fa57aa4b130beb78164a5a466c687.php
20
26
Whoops
\
Run
handleError
/
storage
/
views
/
e8fcec234f7fa57aa4b130beb78164a5a466c687.php
20
25
include
/
vendor
/
illuminate
/
view
/
Engines
/
PhpEngine.php
42
24
Illuminate
\
View
\
Engines
\
PhpEngine
evaluatePath
/
vendor
/
illuminate
/
view
/
Engines
/
CompilerEngine.php
59
23
Illuminate
\
View
\
Engines
\
CompilerEngine
get
/
vendor
/
illuminate
/
view
/
View.php
137
22
Illuminate
\
View
\
View
getContents
/
vendor
/
illuminate
/
view
/
View.php
120
21
Illuminate
\
View
\
View
renderContents
/
vendor
/
illuminate
/
view
/
View.php
85
20
Illuminate
\
View
\
View
render
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
helpers.php
560
19
view
/
htdocs
/
content
/
themes
/
theme_zetruc
/
resources
/
controllers
/
ContentwithsidebarController.php
40
18
Theme
\
Controllers
\
ContentwithsidebarController
index
/
vendor
/
illuminate
/
routing
/
Controller.php
55
17
call_user_func_array
/
vendor
/
illuminate
/
routing
/
Controller.php
55
16
Illuminate
\
Routing
\
Controller
callAction
/
vendor
/
illuminate
/
routing
/
ControllerDispatcher.php
44
15
Illuminate
\
Routing
\
ControllerDispatcher
dispatch
/
vendor
/
illuminate
/
routing
/
Route.php
204
14
Illuminate
\
Routing
\
Route
runController
/
vendor
/
illuminate
/
routing
/
Route.php
160
13
Illuminate
\
Routing
\
Route
run
/
vendor
/
illuminate
/
routing
/
Router.php
559
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
561
9
Illuminate
\
Routing
\
Router
runRouteWithinStack
/
vendor
/
illuminate
/
routing
/
Router.php
520
8
Illuminate
\
Routing
\
Router
dispatchToRoute
/
vendor
/
illuminate
/
routing
/
Router.php
498
7
Illuminate
\
Routing
\
Router
dispatch
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
themosis.php
292
6
Themosis
setRouter
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
286
5
call_user_func_array
/
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
11
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
storage
/
views
/
e8fcec234f7fa57aa4b130beb78164a5a466c687.php
<?php $__env->startSection('content'); ?>
 
<!-- Slider Start -->
        <section id="global-header" style="background-image: url('<?php echo e(wp_get_attachment_url($slider['img_slider'], 'sliderbis')); ?>'">
          <div class="container">
            <div class="row">
              <div class="col-md-12">
                <div class="block">
                  <h1 class="animated fadeInUp"><?php echo $slider['titre_slider']; ?></h1>
                  <p class="animated fadeInUp"><?php echo $slider['soustitre_slider']; ?></p>
                </div>
              </div>
            </div>
          </div>
        </section>
 
        <section id="boutons">
          <div class="container">
            <div class="row">
              <?php $__currentLoopData = $liens['liens']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <div class="col-md-4">
                        <a href="<?php echo e($value['url']); ?>">
                            <div class="blue-button">
                              <?php echo $value['titre']; ?>
 
                            </div>
                        </a>
                      </div>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
          </div>
        </section>
 
        <section id="presentation">
          <div class="container">
            <div class="row">
              <div class="col-md-12">
                <h2><?php echo e($presentation['titre']); ?></h2>
 
                        <?php echo $presentation['texte']; ?>
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
storage
/
views
/
e8fcec234f7fa57aa4b130beb78164a5a466c687.php
<?php $__env->startSection('content'); ?>
 
<!-- Slider Start -->
        <section id="global-header" style="background-image: url('<?php echo e(wp_get_attachment_url($slider['img_slider'], 'sliderbis')); ?>'">
          <div class="container">
            <div class="row">
              <div class="col-md-12">
                <div class="block">
                  <h1 class="animated fadeInUp"><?php echo $slider['titre_slider']; ?></h1>
                  <p class="animated fadeInUp"><?php echo $slider['soustitre_slider']; ?></p>
                </div>
              </div>
            </div>
          </div>
        </section>
 
        <section id="boutons">
          <div class="container">
            <div class="row">
              <?php $__currentLoopData = $liens['liens']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <div class="col-md-4">
                        <a href="<?php echo e($value['url']); ?>">
                            <div class="blue-button">
                              <?php echo $value['titre']; ?>
 
                            </div>
                        </a>
                      </div>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
          </div>
        </section>
 
        <section id="presentation">
          <div class="container">
            <div class="row">
              <div class="col-md-12">
                <h2><?php echo e($presentation['titre']); ?></h2>
 
                        <?php echo $presentation['texte']; ?>
Exception message: Invalid argument supplied for foreach()
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
storage
/
views
/
e8fcec234f7fa57aa4b130beb78164a5a466c687.php
<?php $__env->startSection('content'); ?>
 
<!-- Slider Start -->
        <section id="global-header" style="background-image: url('<?php echo e(wp_get_attachment_url($slider['img_slider'], 'sliderbis')); ?>'">
          <div class="container">
            <div class="row">
              <div class="col-md-12">
                <div class="block">
                  <h1 class="animated fadeInUp"><?php echo $slider['titre_slider']; ?></h1>
                  <p class="animated fadeInUp"><?php echo $slider['soustitre_slider']; ?></p>
                </div>
              </div>
            </div>
          </div>
        </section>
 
        <section id="boutons">
          <div class="container">
            <div class="row">
              <?php $__currentLoopData = $liens['liens']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <div class="col-md-4">
                        <a href="<?php echo e($value['url']); ?>">
                            <div class="blue-button">
                              <?php echo $value['titre']; ?>
 
                            </div>
                        </a>
                      </div>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
          </div>
        </section>
 
        <section id="presentation">
          <div class="container">
            <div class="row">
              <div class="col-md-12">
                <h2><?php echo e($presentation['titre']); ?></h2>
 
                        <?php echo $presentation['texte']; ?>
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
vendor
/
illuminate
/
view
/
Engines
/
PhpEngine.php
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $__path
     * @param  array   $__data
     * @return string
     */
    protected function evaluatePath($__path, $__data)
    {
        $obLevel = ob_get_level();

        ob_start();

        extract($__data, EXTR_SKIP);

        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            include $__path;
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException(new FatalThrowableError($e), $obLevel);
        }

        return ltrim(ob_get_clean());
    }

    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws $e
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
vendor
/
illuminate
/
view
/
Engines
/
CompilerEngine.php
     * @param  array   $data
     * @return string
     */
    public function get($path, array $data = [])
    {
        $this->lastCompiled[] = $path;

        // If this given view has expired, which means it has simply been edited since
        // it was last compiled, we will re-compile the views so we can evaluate a
        // fresh copy of the view. We'll pass the compiler the path of the view.
        if ($this->compiler->isExpired($path)) {
            $this->compiler->compile($path);
        }

        $compiled = $this->compiler->getCompiledPath($path);

        // Once we have the path to the compiled file, we will evaluate the paths with
        // typical PHP just like any other templates. We also keep a stack of views
        // which have been rendered for right exception messages to be generated.
        $results = $this->evaluatePath($compiled, $data);

        array_pop($this->lastCompiled);

        return $results;
    }

    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws $e
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
        $e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);

        parent::handleViewException($e, $obLevel);
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
vendor
/
illuminate
/
view
/
View.php
        $this->factory->callComposer($this);

        $contents = $this->getContents();

        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();

        return $contents;
    }

    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }

    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    protected function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);

        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }

        return $data;
    }

/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
vendor
/
illuminate
/
view
/
View.php
            throw $e;
        }
    }

    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();

        $this->factory->callComposer($this);

        $contents = $this->getContents();

        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();

        return $contents;
    }

    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }

    /**
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
vendor
/
illuminate
/
view
/
View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;

        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }

    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();

            $response = isset($callback) ? call_user_func($callback, $this, $contents) : null;

            // Once we have the contents of the view, we will flush the sections if we are
            // done rendering all views so that there is nothing left hanging over when
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();

            return ! is_null($response) ? $response : $contents;
        } catch (Exception $e) {
            $this->factory->flushState();

            throw $e;
        } catch (Throwable $e) {
            $this->factory->flushState();

            throw $e;
        }
    }

/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
helpers.php
if (!function_exists('view')) {
    /**
     * Helper function to build views.
     *
     * @param string $view      The view relative path, name.
     * @param array  $data      Passed data.
     * @param array  $mergeData
     *
     * @return \Illuminate\View\Factory
     */
    function view($view = null, array $data = [], array $mergeData = [])
    {
        $factory = container('view');

        if (func_num_args() === 0) {
            return $factory;
        }

        return $factory->make($view, $data, $mergeData)->render();
    }
}

if (!function_exists('meta')) {
    /**
     * Helper function to get any meta data from objects.
     *
     * @param string $key
     * @param int    $id
     * @param string $context
     * @param bool   $single
     *
     * @return mixed|string
     */
    function meta($key = '', $id = null, $context = 'post', $single = true)
    {
        if (is_null($id)) {
            $id = get_the_ID();
        }

/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
htdocs
/
content
/
themes
/
theme_zetruc
/
resources
/
controllers
/
ContentwithsidebarController.php
        $this->slider['titre_slider'] = Meta::get(get_the_ID(), 'titre_slider', true);
        $this->slider['soustitre_slider'] = Meta::get(get_the_ID(), 'soustitre_slider', true);
        $this->slider['img_slider'] = Meta::get(get_the_ID(), 'img_slider', true);
 
        // Bloc Liens
        $this->liens['liens'] = Meta::get(get_the_ID(), 'Liens', true);
        
        // Bloc Presentation
        $this->presentation['titre'] = Meta::get(get_the_ID(), 'titre_presentation', true);
        $this->presentation['texte'] = Meta::get(get_the_ID(), 'texte_presentation', true);
 
    }
 
    public function index()
    {
        return view('contentwithsidebar', [
            'slider' => $this->slider,
            'liens' => $this->liens,
            'presentation' => $this->presentation,
        ]);
    }
}
 
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
vendor
/
illuminate
/
routing
/
Controller.php
    /**
     * Get the middleware assigned to the controller.
     *
     * @return array
     */
    public function getMiddleware()
    {
        return $this->middleware;
    }

    /**
     * Execute an action on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function callAction($method, $parameters)
    {
        return call_user_func_array([$this, $method], $parameters);
    }

    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     */
    public function missingMethod($parameters = [])
    {
        throw new NotFoundHttpException('Controller method not found.');
    }

    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
vendor
/
illuminate
/
routing
/
Controller.php
    /**
     * Get the middleware assigned to the controller.
     *
     * @return array
     */
    public function getMiddleware()
    {
        return $this->middleware;
    }

    /**
     * Execute an action on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function callAction($method, $parameters)
    {
        return call_user_func_array([$this, $method], $parameters);
    }

    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     */
    public function missingMethod($parameters = [])
    {
        throw new NotFoundHttpException('Controller method not found.');
    }

    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
vendor
/
illuminate
/
routing
/
ControllerDispatcher.php
    {
        $this->container = $container;
    }

    /**
     * Dispatch a request to a given controller and method.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  mixed  $controller
     * @param  string  $method
     * @return mixed
     */
    public function dispatch(Route $route, $controller, $method)
    {
        $parameters = $this->resolveClassMethodDependencies(
            $route->parametersWithoutNulls(), $controller, $method
        );

        if (method_exists($controller, 'callAction')) {
            return $controller->callAction($method, $parameters);
        }

        return $controller->{$method}(...array_values($parameters));
    }

    /**
     * Get the middleware for the controller instance.
     *
     * @param  \Illuminate\Routing\Controller  $controller
     * @param  string  $method
     * @return array
     */
    public static function getMiddleware($controller, $method)
    {
        if (! method_exists($controller, 'getMiddleware')) {
            return [];
        }

        return collect($controller->getMiddleware())->reject(function ($data) use ($method) {
            return static::methodExcludedByOptions($method, $data['options']);
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
vendor
/
illuminate
/
routing
/
Route.php
    {
        $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 (new ControllerDispatcher($this->container))->dispatch(
            $this, $this->getController(), $this->getControllerMethod()
        );
    }

    /**
     * Get the controller instance for the route.
     *
     * @return mixed
     */
    public function getController()
    {
        $class = $this->parseControllerCallback()[0];

        if (! $this->controller) {
            $this->controller = $this->container->make($class);
        }

        return $this->controller;
    }

    /**
     * Get the controller method used for the route.
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
vendor
/
illuminate
/
routing
/
Route.php
     *
     * @throws \UnexpectedValueException
     */
    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.
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
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);
    }

    /**
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
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();

/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
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
     */
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
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.
     *
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
vendor
/
illuminate
/
routing
/
Router.php
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    public function dispatchToRoute(Request $request)
    {
        // First we will find a route that matches this request. We will also set the
        // route resolver on the request so middlewares assigned to the route will
        // receive access to this route instance for checking of the parameters.
        $route = $this->findRoute($request);

        $request->setRouteResolver(function () use ($route) {
            return $route;
        });

        $this->events->dispatch(new Events\RouteMatched($route, $request));

        $response = $this->runRouteWithinStack($route, $request);

        return $this->prepareResponse($request, $response);
    }

    /**
     * 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;
    }

    /**
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
vendor
/
illuminate
/
routing
/
Router.php
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return void
     */
    protected function mergeGroupAttributesIntoRoute($route)
    {
        $route->setAction($this->mergeWithLastGroup($route->getAction()));
    }

    /**
     * Dispatch the request to the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    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)
    {
        // First we will find a route that matches this request. We will also set the
        // route resolver on the request so middlewares assigned to the route will
        // receive access to this route instance for checking of the parameters.
        $route = $this->findRoute($request);

        $request->setRouteResolver(function () use ($route) {
            return $route;
        });

        $this->events->dispatch(new Events\RouteMatched($route, $request));
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
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();
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
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.
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
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.
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
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 ] );
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
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;
 
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
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' );
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
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' );
 
}
 
/
var
/
www
/
vhosts
/
adutt.fr
/
httpdocs
/
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
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /association/prep/
USER ftp_adutt
HOME /var/www/vhosts/adutt.fr
FCGI_ROLE RESPONDER
REDIRECT_SCRIPT_URL /association/prep/
REDIRECT_SCRIPT_URI https://www.adutt.fr/association/prep/
REDIRECT_HTTPS on
REDIRECT_STATUS 200
SCRIPT_URL /association/prep/
SCRIPT_URI https://www.adutt.fr/association/prep/
HTTPS on
proxy-nokeepalive 1
HTTP_HOST www.adutt.fr
HTTP_X_REAL_IP 54.91.11.105
HTTP_X_ACCEL_INTERNAL /internal-nginx-static-location
HTTP_CONNECTION close
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE
Apache Server at www.adutt.fr Port 443
SERVER_NAME www.adutt.fr
SERVER_ADDR 54.36.54.186
SERVER_PORT 443
REMOTE_ADDR 54.91.11.105
DOCUMENT_ROOT /var/www/vhosts/adutt.fr/httpdocs/htdocs
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/adutt.fr/httpdocs/htdocs
SERVER_ADMIN contact@adutt.fr
SCRIPT_FILENAME /var/www/vhosts/adutt.fr/httpdocs/htdocs/index.php
REMOTE_PORT 48848
REDIRECT_URL /association/prep/
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1518936236.0665
REQUEST_TIME 1518936236
DB_NAME aduttBDD
DB_USER univUTT
DB_PASSWORD pruWa6US
DB_HOST localhost:3306
WP_HOME https://www.adutt.fr
WP_SITEURL https://www.adutt.fr/cms
Key Value
DB_NAME aduttBDD
DB_USER univUTT
DB_PASSWORD pruWa6US
DB_HOST localhost:3306
WP_HOME https://www.adutt.fr
WP_SITEURL https://www.adutt.fr/cms
0. Whoops\Handler\PrettyPageHandler