Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined offset: 0 Whoops\Exception\ErrorException thrown with message "Undefined offset: 0" Stacktrace: #20 Whoops\Exception\ErrorException in /var/www/vhosts/tcmetrologia.com/httpdocs/src/htdocs/content/themes/themosis-theme/resources/controllers/front/CursoController.php:21 #19 Whoops\Run:handleError in /var/www/vhosts/tcmetrologia.com/httpdocs/src/htdocs/content/themes/themosis-theme/resources/controllers/front/CursoController.php:21 #18 Theme\Controllers\Front\CursoController:index in /var/www/vhosts/tcmetrologia.com/httpdocs/src/vendor/illuminate/routing/Controller.php:54 #17 call_user_func_array in /var/www/vhosts/tcmetrologia.com/httpdocs/src/vendor/illuminate/routing/Controller.php:54 #16 Illuminate\Routing\Controller:callAction in /var/www/vhosts/tcmetrologia.com/httpdocs/src/vendor/illuminate/routing/ControllerDispatcher.php:45 #15 Illuminate\Routing\ControllerDispatcher:dispatch in /var/www/vhosts/tcmetrologia.com/httpdocs/src/vendor/illuminate/routing/Route.php:212 #14 Illuminate\Routing\Route:runController in /var/www/vhosts/tcmetrologia.com/httpdocs/src/vendor/illuminate/routing/Route.php:169 #13 Illuminate\Routing\Route:run in /var/www/vhosts/tcmetrologia.com/httpdocs/src/vendor/illuminate/routing/Router.php:645 #12 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /var/www/vhosts/tcmetrologia.com/httpdocs/src/vendor/illuminate/routing/Pipeline.php:30 #11 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/vhosts/tcmetrologia.com/httpdocs/src/vendor/illuminate/pipeline/Pipeline.php:102 #10 Illuminate\Pipeline\Pipeline:then in /var/www/vhosts/tcmetrologia.com/httpdocs/src/vendor/illuminate/routing/Router.php:647 #9 Illuminate\Routing\Router:runRouteWithinStack in /var/www/vhosts/tcmetrologia.com/httpdocs/src/vendor/illuminate/routing/Router.php:622 #8 Illuminate\Routing\Router:runRoute in /var/www/vhosts/tcmetrologia.com/httpdocs/src/vendor/illuminate/routing/Router.php:588 #7 Illuminate\Routing\Router:dispatchToRoute in /var/www/vhosts/tcmetrologia.com/httpdocs/src/vendor/illuminate/routing/Router.php:577 #6 Illuminate\Routing\Router:dispatch in /var/www/vhosts/tcmetrologia.com/httpdocs/src/htdocs/content/mu-plugins/themosis-framework/themosis.php:292 #5 Themosis:setRouter in /var/www/vhosts/tcmetrologia.com/httpdocs/src/htdocs/cms/wp-includes/class-wp-hook.php:286 #4 WP_Hook:apply_filters in /var/www/vhosts/tcmetrologia.com/httpdocs/src/htdocs/cms/wp-includes/class-wp-hook.php:310 #3 WP_Hook:do_action in /var/www/vhosts/tcmetrologia.com/httpdocs/src/htdocs/cms/wp-includes/plugin.php:453 #2 do_action in /var/www/vhosts/tcmetrologia.com/httpdocs/src/htdocs/cms/wp-includes/template-loader.php:12 #1 require_once in /var/www/vhosts/tcmetrologia.com/httpdocs/src/htdocs/cms/wp-blog-header.php:19 #0 require in /var/www/vhosts/tcmetrologia.com/httpdocs/src/htdocs/index.php:11
Stack frames (21)
20
Whoops
\
Exception
\
ErrorException
/
htdocs
/
content
/
themes
/
themosis-theme
/
resources
/
controllers
/
front
/
CursoController.php
21
19
Whoops
\
Run
handleError
/
htdocs
/
content
/
themes
/
themosis-theme
/
resources
/
controllers
/
front
/
CursoController.php
21
18
Theme
\
Controllers
\
Front
\
CursoController
index
/
vendor
/
illuminate
/
routing
/
Controller.php
54
17
call_user_func_array
/
vendor
/
illuminate
/
routing
/
Controller.php
54
16
Illuminate
\
Routing
\
Controller
callAction
/
vendor
/
illuminate
/
routing
/
ControllerDispatcher.php
45
15
Illuminate
\
Routing
\
ControllerDispatcher
dispatch
/
vendor
/
illuminate
/
routing
/
Route.php
212
14
Illuminate
\
Routing
\
Route
runController
/
vendor
/
illuminate
/
routing
/
Route.php
169
13
Illuminate
\
Routing
\
Route
run
/
vendor
/
illuminate
/
routing
/
Router.php
645
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
647
9
Illuminate
\
Routing
\
Router
runRouteWithinStack
/
vendor
/
illuminate
/
routing
/
Router.php
622
8
Illuminate
\
Routing
\
Router
runRoute
/
vendor
/
illuminate
/
routing
/
Router.php
588
7
Illuminate
\
Routing
\
Router
dispatchToRoute
/
vendor
/
illuminate
/
routing
/
Router.php
577
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
11
/
var
/
www
/
vhosts
/
tcmetrologia.com
/
httpdocs
/
src
/
htdocs
/
content
/
themes
/
themosis-theme
/
resources
/
controllers
/
front
/
CursoController.php
 
namespace Theme\Controllers\Front;
use Themosis\Route\BaseController;
use \Theme\Models\OnlineCall;
use Themosis\Facades\User;
use Themosis\Facades\DB;
use \Theme\Models\Coupon;
use \Theme\Models\CouponCurso;
 
class CursoController extends BaseController
{
 
    public function index($slug, $cartKey = '')
    {    
        global $is_curso;
        $args = [   
            'post_type' => 'cursos',
            'name' => $slug
        ];
        $curso = get_posts($args)[0];
        $id_curso = $curso->ID;
        $is_curso = true;
        return view('front.news.cursos.curso',[ 'curso' => self::getDataCurso($id_curso,$slug), 'key_item' =>$cartKey, 'tipo_usuario' => self::getTipoUser()]);
    }
 
    private function getDataCurso($id_curso,$slug){
        $related = array_slice(get_post_meta($id_curso, 'related_cursos'),0,4);
        $saberconocer = get_post_meta($id_curso, 'saberconocer');
        $modalidades = self::get_modalidades($id_curso);
        $coupons = CouponCurso::where('course_id', $id_curso)->get();
        $precio_online = !isset(get_post_meta($id_curso,'price_online')[0]) ? 0 : get_post_meta($id_curso,'price_online')[0];
        $precio = !isset(get_post_meta($id_curso, '_price')[0]) ? 0 : get_post_meta($id_curso, '_price')[0];
        $precio_video = !isset(get_post_meta($id_curso, 'price_video')[0]) ? 0 : get_post_meta($id_curso, 'price_video')[0];
        $estandar = !isset(get_post_meta( $id_curso, 'estandar' )[0]) ? 0 : get_post_meta( $id_curso, 'estandar' )[0];
        $online_calls = self::getOnlineCalls($id_curso);
        if(isset(get_post_meta($id_curso, 'video' )[0])){
            $curso_data = array('id'=> $id_curso, 'bonificable'=>count(get_post_meta($id_curso, 'bonificable')), 'coupons' => count($coupons), 'convocatorias_presencial' => self::getPresencialCalls($id_curso), 'convocatorias_online' => self::getOnlineCalls($id_curso), 'first_call' => self::getFirstCall($id_curso),'slug'=> $slug,'related' => $related, 'img_url'=>self::get_img_url($id_curso),'title' => get_post_meta( $id_curso, 'nombre' )[0], 'saberconocer'=>$saberconocer[0], 'tabs' => self::get_tabs($id_curso),'modalidades'=> $modalidades, 'precio_online' => $precio_online, 'precio_presencial' => $precio, 'precio_videoconferencia' => $precio_video, 'video' => get_post_meta( $id_curso, 'video' )[0], 'estandar' => $estandar);
        }else{
            $curso_data = array('id'=> $id_curso, 'bonificable'=>count(get_post_meta($id_curso, 'bonificable')), 'coupons' => count($coupons), 'convocatorias_presencial' => self::getPresencialCalls($id_curso), 'convocatorias_online' => self::getOnlineCalls($id_curso), 'first_call' => self::getFirstCall($id_curso),'slug'=> $slug,'related' => $related, 'img_url'=>self::get_img_url($id_curso),'title' => get_post_meta( $id_curso, 'nombre' )[0], 'saberconocer'=>$saberconocer[0], 'tabs' => self::get_tabs($id_curso),'modalidades'=> $modalidades, 'precio_online' => $precio_online, 'precio_presencial' => $precio, 'precio_videoconferencia' => $precio_video, 'estandar' => $estandar);
        }
/
var
/
www
/
vhosts
/
tcmetrologia.com
/
httpdocs
/
src
/
htdocs
/
content
/
themes
/
themosis-theme
/
resources
/
controllers
/
front
/
CursoController.php
 
namespace Theme\Controllers\Front;
use Themosis\Route\BaseController;
use \Theme\Models\OnlineCall;
use Themosis\Facades\User;
use Themosis\Facades\DB;
use \Theme\Models\Coupon;
use \Theme\Models\CouponCurso;
 
class CursoController extends BaseController
{
 
    public function index($slug, $cartKey = '')
    {    
        global $is_curso;
        $args = [   
            'post_type' => 'cursos',
            'name' => $slug
        ];
        $curso = get_posts($args)[0];
        $id_curso = $curso->ID;
        $is_curso = true;
        return view('front.news.cursos.curso',[ 'curso' => self::getDataCurso($id_curso,$slug), 'key_item' =>$cartKey, 'tipo_usuario' => self::getTipoUser()]);
    }
 
    private function getDataCurso($id_curso,$slug){
        $related = array_slice(get_post_meta($id_curso, 'related_cursos'),0,4);
        $saberconocer = get_post_meta($id_curso, 'saberconocer');
        $modalidades = self::get_modalidades($id_curso);
        $coupons = CouponCurso::where('course_id', $id_curso)->get();
        $precio_online = !isset(get_post_meta($id_curso,'price_online')[0]) ? 0 : get_post_meta($id_curso,'price_online')[0];
        $precio = !isset(get_post_meta($id_curso, '_price')[0]) ? 0 : get_post_meta($id_curso, '_price')[0];
        $precio_video = !isset(get_post_meta($id_curso, 'price_video')[0]) ? 0 : get_post_meta($id_curso, 'price_video')[0];
        $estandar = !isset(get_post_meta( $id_curso, 'estandar' )[0]) ? 0 : get_post_meta( $id_curso, 'estandar' )[0];
        $online_calls = self::getOnlineCalls($id_curso);
        if(isset(get_post_meta($id_curso, 'video' )[0])){
            $curso_data = array('id'=> $id_curso, 'bonificable'=>count(get_post_meta($id_curso, 'bonificable')), 'coupons' => count($coupons), 'convocatorias_presencial' => self::getPresencialCalls($id_curso), 'convocatorias_online' => self::getOnlineCalls($id_curso), 'first_call' => self::getFirstCall($id_curso),'slug'=> $slug,'related' => $related, 'img_url'=>self::get_img_url($id_curso),'title' => get_post_meta( $id_curso, 'nombre' )[0], 'saberconocer'=>$saberconocer[0], 'tabs' => self::get_tabs($id_curso),'modalidades'=> $modalidades, 'precio_online' => $precio_online, 'precio_presencial' => $precio, 'precio_videoconferencia' => $precio_video, 'video' => get_post_meta( $id_curso, 'video' )[0], 'estandar' => $estandar);
        }else{
            $curso_data = array('id'=> $id_curso, 'bonificable'=>count(get_post_meta($id_curso, 'bonificable')), 'coupons' => count($coupons), 'convocatorias_presencial' => self::getPresencialCalls($id_curso), 'convocatorias_online' => self::getOnlineCalls($id_curso), 'first_call' => self::getFirstCall($id_curso),'slug'=> $slug,'related' => $related, 'img_url'=>self::get_img_url($id_curso),'title' => get_post_meta( $id_curso, 'nombre' )[0], 'saberconocer'=>$saberconocer[0], 'tabs' => self::get_tabs($id_curso),'modalidades'=> $modalidades, 'precio_online' => $precio_online, 'precio_presencial' => $precio, 'precio_videoconferencia' => $precio_video, 'estandar' => $estandar);
        }
/
var
/
www
/
vhosts
/
tcmetrologia.com
/
httpdocs
/
src
/
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  string  $method
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        throw new BadMethodCallException("Method [{$method}] does not exist.");
    }
}
 
/
var
/
www
/
vhosts
/
tcmetrologia.com
/
httpdocs
/
src
/
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  string  $method
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        throw new BadMethodCallException("Method [{$method}] does not exist.");
    }
}
 
/
var
/
www
/
vhosts
/
tcmetrologia.com
/
httpdocs
/
src
/
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 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
/
tcmetrologia.com
/
httpdocs
/
src
/
vendor
/
illuminate
/
routing
/
Route.php
    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.
     *
     * @return mixed
     */
    public function getController()
    {
        if (! $this->controller) {
            $class = $this->parseControllerCallback()[0];
 
            $this->controller = $this->container->make(ltrim($class, '\\'));
        }
 
        return $this->controller;
    }
 
    /**
/
var
/
www
/
vhosts
/
tcmetrologia.com
/
httpdocs
/
src
/
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
/
tcmetrologia.com
/
httpdocs
/
src
/
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
/
tcmetrologia.com
/
httpdocs
/
src
/
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
/
tcmetrologia.com
/
httpdocs
/
src
/
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
/
tcmetrologia.com
/
httpdocs
/
src
/
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
/
tcmetrologia.com
/
httpdocs
/
src
/
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)
/
var
/
www
/
vhosts
/
tcmetrologia.com
/
httpdocs
/
src
/
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.
     *
/
var
/
www
/
vhosts
/
tcmetrologia.com
/
httpdocs
/
src
/
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)
/
var
/
www
/
vhosts
/
tcmetrologia.com
/
httpdocs
/
src
/
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
/
tcmetrologia.com
/
httpdocs
/
src
/
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
/
tcmetrologia.com
/
httpdocs
/
src
/
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
/
tcmetrologia.com
/
httpdocs
/
src
/
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
/
tcmetrologia.com
/
httpdocs
/
src
/
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
/
tcmetrologia.com
/
httpdocs
/
src
/
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
/
tcmetrologia.com
/
httpdocs
/
src
/
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 /cursos/control-estadistico-procesos-fabricacion.html
USER tcmetrologia.com
HOME /var/www/vhosts/tcmetrologia.com
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /cursos/control-estadistico-procesos-fabricacion.html
REMOTE_PORT 49806
SCRIPT_FILENAME /var/www/vhosts/tcmetrologia.com/httpdocs/src/htdocs/index.php
SERVER_ADMIN root@localhost
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/tcmetrologia.com/httpdocs/src/htdocs
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /var/www/vhosts/tcmetrologia.com/httpdocs/src/htdocs
REMOTE_ADDR 3.82.24.132
SERVER_PORT 443
SERVER_ADDR 82.223.2.113
SERVER_NAME www.tcmetrologia.com
SERVER_SIGNATURE
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_ACCEPT_ENCODING gzip
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_CONNECTION close
HTTP_X_ACCEL_INTERNAL /internal-nginx-static-location
HTTP_X_REAL_IP 3.82.24.132
HTTP_HOST www.tcmetrologia.com
proxy-nokeepalive 1
HTTPS on
SCRIPT_URI https://www.tcmetrologia.com/cursos/control-estadistico-procesos-fabricacion.html
SCRIPT_URL /cursos/control-estadistico-procesos-fabricacion.html
UNIQUE_ID XBll9lZm-ivrSGiyoTAITwAAANU
REDIRECT_STATUS 200
REDIRECT_HTTPS on
REDIRECT_SCRIPT_URI https://www.tcmetrologia.com/cursos/control-estadistico-procesos-fabricacion.html
REDIRECT_SCRIPT_URL /cursos/control-estadistico-procesos-fabricacion.html
REDIRECT_UNIQUE_ID XBll9lZm-ivrSGiyoTAITwAAANU
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1545168374.5095
REQUEST_TIME 1545168374
DB_NAME tcm
DB_USER tcm
DB_PASSWORD WPllLmKLd3
DB_HOST localhost
WP_HOME https://www.tcmetrologia.com
WP_SITEURL https://www.tcmetrologia.com/cms
Key Value
DB_NAME tcm
DB_USER tcm
DB_PASSWORD WPllLmKLd3
DB_HOST localhost
WP_HOME https://www.tcmetrologia.com
WP_SITEURL https://www.tcmetrologia.com/cms
0. Whoops\Handler\PrettyPageHandler