Whoops \ Exception \ ErrorException (E_WARNING)
include(/home/alvo0765/public_html/nightjar/start/../config/acf.php): failed to open stream: No such file or directory Whoops\Exception\ErrorException thrown with message "include(/home/alvo0765/public_html/nightjar/start/../config/acf.php): failed to open stream: No such file or directory" Stacktrace: #20 Whoops\Exception\ErrorException in /home/alvo0765/public_html/vendor/share/sharepress/src/SharePress/Stores/Config.php:34 #19 include in /home/alvo0765/public_html/vendor/share/sharepress/src/SharePress/Stores/Config.php:34 #18 share\SharePress\Stores\Config:load in /home/alvo0765/public_html/vendor/illuminate/support/Facades/Facade.php:216 #17 Illuminate\Support\Facades\Facade:__callStatic in /home/alvo0765/public_html/nightjar/app/Services/General/Controllers/Http/TemplateMatch/Single/Index.php:22 #16 nightjar\app\Services\General\Controllers\Http\TemplateMatch\Single\Index:index in /home/alvo0765/public_html/vendor/illuminate/container/Container.php:507 #15 call_user_func_array in /home/alvo0765/public_html/vendor/illuminate/container/Container.php:507 #14 Illuminate\Container\Container:call in /home/alvo0765/public_html/vendor/illuminate/support/Facades/Facade.php:216 #13 Illuminate\Support\Facades\Facade:__callStatic in /home/alvo0765/public_html/vendor/share/sharepress/src/SharePress/WordPress/WPTemplateMatch/Parsers/BaseParser.php:36 #12 share\SharePress\WordPress\WPTemplateMatch\Parsers\BaseParser:tryRunController in /home/alvo0765/public_html/vendor/share/sharepress/src/SharePress/WordPress/WPTemplateMatch/Parsers/BaseParser.php:28 #11 share\SharePress\WordPress\WPTemplateMatch\Parsers\BaseParser:parse in /home/alvo0765/public_html/vendor/share/sharepress/src/SharePress/WordPress/WPTemplateMatch/Parsers/SingleParser.php:23 #10 share\SharePress\WordPress\WPTemplateMatch\Parsers\SingleParser:parse in /home/alvo0765/public_html/vendor/illuminate/container/Container.php:507 #9 call_user_func_array in /home/alvo0765/public_html/vendor/illuminate/container/Container.php:507 #8 Illuminate\Container\Container:call in /home/alvo0765/public_html/vendor/illuminate/support/Facades/Facade.php:219 #7 Illuminate\Support\Facades\Facade:__callStatic in /home/alvo0765/public_html/vendor/share/sharepress/src/SharePress/WordPress/WPTemplateMatch/Manager.php:93 #6 share\SharePress\WordPress\WPTemplateMatch\Manager:share\SharePress\WordPress\WPTemplateMatch\{closure} in /home/alvo0765/public_html/wp-includes/class-wp-hook.php:288 #5 WP_Hook:apply_filters in /home/alvo0765/public_html/wp-includes/plugin.php:203 #4 apply_filters in /home/alvo0765/public_html/wp-includes/template.php:62 #3 get_query_template in /home/alvo0765/public_html/wp-includes/template.php:503 #2 get_single_template in /home/alvo0765/public_html/wp-includes/template-loader.php:55 #1 require_once in /home/alvo0765/public_html/wp-blog-header.php:19 #0 require in /home/alvo0765/public_html/index.php:17
Stack frames (21)
20
Whoops
\
Exception
\
ErrorException
/
vendor
/
share
/
sharepress
/
src
/
SharePress
/
Stores
/
Config.php
34
19
include
/
vendor
/
share
/
sharepress
/
src
/
SharePress
/
Stores
/
Config.php
34
18
share
\
SharePress
\
Stores
\
Config
load
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
216
17
Illuminate
\
Support
\
Facades
\
Facade
__callStatic
/
nightjar
/
app
/
Services
/
General
/
Controllers
/
Http
/
TemplateMatch
/
Single
/
Index.php
22
16
nightjar
\
app
\
Services
\
General
\
Controllers
\
Http
\
TemplateMatch
\
Single
\
Index
index
/
vendor
/
illuminate
/
container
/
Container.php
507
15
call_user_func_array
/
vendor
/
illuminate
/
container
/
Container.php
507
14
Illuminate
\
Container
\
Container
call
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
216
13
Illuminate
\
Support
\
Facades
\
Facade
__callStatic
/
vendor
/
share
/
sharepress
/
src
/
SharePress
/
WordPress
/
WPTemplateMatch
/
Parsers
/
BaseParser.php
36
12
share
\
SharePress
\
WordPress
\
WPTemplateMatch
\
Parsers
\
BaseParser
tryRunController
/
vendor
/
share
/
sharepress
/
src
/
SharePress
/
WordPress
/
WPTemplateMatch
/
Parsers
/
BaseParser.php
28
11
share
\
SharePress
\
WordPress
\
WPTemplateMatch
\
Parsers
\
BaseParser
parse
/
vendor
/
share
/
sharepress
/
src
/
SharePress
/
WordPress
/
WPTemplateMatch
/
Parsers
/
SingleParser.php
23
10
share
\
SharePress
\
WordPress
\
WPTemplateMatch
\
Parsers
\
SingleParser
parse
/
vendor
/
illuminate
/
container
/
Container.php
507
9
call_user_func_array
/
vendor
/
illuminate
/
container
/
Container.php
507
8
Illuminate
\
Container
\
Container
call
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
219
7
Illuminate
\
Support
\
Facades
\
Facade
__callStatic
/
vendor
/
share
/
sharepress
/
src
/
SharePress
/
WordPress
/
WPTemplateMatch
/
Manager.php
93
6
share
\
SharePress
\
WordPress
\
WPTemplateMatch
\
Manager
share
\
SharePress
\
WordPress
\
WPTemplateMatch
\
{closure}
/
wp-includes
/
class-wp-hook.php
288
5
WP_Hook
apply_filters
/
wp-includes
/
plugin.php
203
4
apply_filters
/
wp-includes
/
template.php
62
3
get_query_template
/
wp-includes
/
template.php
503
2
get_single_template
/
wp-includes
/
template-loader.php
55
1
require_once
/
wp-blog-header.php
19
0
require
/
index.php
17
/
home
/
alvo0765
/
public_html
/
vendor
/
share
/
sharepress
/
src
/
SharePress
/
Stores
/
Config.php
    private $directory;

    public function __construct($bootstrapDir) {
        $this->bootstrapDir = $bootstrapDir;
        $this->directory = $bootstrapDir . "config/";
        $this->storeData = (object) [];
    }

    public function load ($configFilename) {
        $pathParts = explode(".", $configFilename);
        $filename = implode(DIRECTORY_SEPARATOR, $pathParts);

        $storePath = $this->storeData;
        foreach ($pathParts as $index => $pathPart) {
            if($index < count($pathParts) - 1) {
                $storePath->$pathPart = (object) [];
                $storePath = $storePath->$pathPart;
            }
            else {
                $storePath->$pathPart = json_decode(json_encode(include($this->directory . $filename . ".php"), JSON_FORCE_OBJECT), false);
            }
        }
    }

    public function get($key) {
        // translate key path
        $path = explode(".", $key);
        $parent = $this->storeData;
        foreach ($path as $part) {
            if (isset($parent->$part)) {
                $parent = $parent->$part;
            } else {
                return null;
            }
        }
        if ($parent === $this->storeData) {
            return null;
        }
        return $parent;
    }
/
home
/
alvo0765
/
public_html
/
vendor
/
share
/
sharepress
/
src
/
SharePress
/
Stores
/
Config.php
    private $directory;

    public function __construct($bootstrapDir) {
        $this->bootstrapDir = $bootstrapDir;
        $this->directory = $bootstrapDir . "config/";
        $this->storeData = (object) [];
    }

    public function load ($configFilename) {
        $pathParts = explode(".", $configFilename);
        $filename = implode(DIRECTORY_SEPARATOR, $pathParts);

        $storePath = $this->storeData;
        foreach ($pathParts as $index => $pathPart) {
            if($index < count($pathParts) - 1) {
                $storePath->$pathPart = (object) [];
                $storePath = $storePath->$pathPart;
            }
            else {
                $storePath->$pathPart = json_decode(json_encode(include($this->directory . $filename . ".php"), JSON_FORCE_OBJECT), false);
            }
        }
    }

    public function get($key) {
        // translate key path
        $path = explode(".", $key);
        $parent = $this->storeData;
        foreach ($path as $part) {
            if (isset($parent->$part)) {
                $parent = $parent->$part;
            } else {
                return null;
            }
        }
        if ($parent === $this->storeData) {
            return null;
        }
        return $parent;
    }
/
home
/
alvo0765
/
public_html
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
     * Handle dynamic, static calls to the object.
     *
     * @param  string  $method
     * @param  array   $args
     * @return mixed
     */
    public static function __callStatic($method, $args)
    {
        $instance = static::getFacadeRoot();
 
        if (! $instance) {
            throw new RuntimeException('A facade root has not been set.');
        }
 
        switch (count($args)) {
            case 0:
                return $instance->$method();
 
            case 1:
                return $instance->$method($args[0]);
 
            case 2:
                return $instance->$method($args[0], $args[1]);
 
            case 3:
                return $instance->$method($args[0], $args[1], $args[2]);
 
            case 4:
                return $instance->$method($args[0], $args[1], $args[2], $args[3]);
 
            default:
                return call_user_func_array([$instance, $method], $args);
        }
    }
}
 
/
home
/
alvo0765
/
public_html
/
nightjar
/
app
/
Services
/
General
/
Controllers
/
Http
/
TemplateMatch
/
Single
/
Index.php
 * Created by PhpStorm.
 * User: PedroGaspar
 * Date: 09/02/2018
 * Time: 22:47
 */

namespace nightjar\app\Services\General\Controllers\Http\TemplateMatch\Single;

use share\SharePress\Facades\Config;
use share\SharePress\Facades\Container;

class Index
{
    public function __construct()
    {
    }

    // Passar para o novo model
    public function index () {
        Config::load('acf');

        $category = new Category(get_the_category()[0]);
        $receitasCategory = Config::get('acf.receitas_top_category');
        $receitasCategory = new Category(get_category($receitasCategory));
        $controllerMethod = $category->parent_category->slug === $receitasCategory->slug ? 'receitas' : 'posts';
        return Container::call([$this, $controllerMethod], ['category' => $category]);
    }

    public function receitas (Request $request, Category $category) {

        global $post;
        $the_post = new Recipe($post);

        /**
         * Directional posts
         */
        $prevPost = get_previous_post(true);
        $nextPost = get_next_post(true);
        $directionalPosts = [
            'prev' => !!$prevPost ? new Recipe($prevPost) : null,
/
home
/
alvo0765
/
public_html
/
vendor
/
illuminate
/
container
/
Container.php
        };
    }
 
    /**
     * Call the given Closure / [email protected] and inject its dependencies.
     *
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     */
    public function call($callback, array $parameters = [], $defaultMethod = null)
    {
        if ($this->isCallableWithAtSign($callback) || $defaultMethod) {
            return $this->callClass($callback, $parameters, $defaultMethod);
        }
 
        $dependencies = $this->getMethodDependencies($callback, $parameters);
 
        return call_user_func_array($callback, $dependencies);
    }
 
    /**
     * Determine if the given string is in [email protected] syntax.
     *
     * @param  mixed  $callback
     * @return bool
     */
    protected function isCallableWithAtSign($callback)
    {
        if (! is_string($callback)) {
            return false;
        }
 
        return strpos($callback, '@') !== false;
    }
 
    /**
     * Get all dependencies for a given method.
     *
/
home
/
alvo0765
/
public_html
/
vendor
/
illuminate
/
container
/
Container.php
        };
    }
 
    /**
     * Call the given Closure / [email protected] and inject its dependencies.
     *
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     */
    public function call($callback, array $parameters = [], $defaultMethod = null)
    {
        if ($this->isCallableWithAtSign($callback) || $defaultMethod) {
            return $this->callClass($callback, $parameters, $defaultMethod);
        }
 
        $dependencies = $this->getMethodDependencies($callback, $parameters);
 
        return call_user_func_array($callback, $dependencies);
    }
 
    /**
     * Determine if the given string is in [email protected] syntax.
     *
     * @param  mixed  $callback
     * @return bool
     */
    protected function isCallableWithAtSign($callback)
    {
        if (! is_string($callback)) {
            return false;
        }
 
        return strpos($callback, '@') !== false;
    }
 
    /**
     * Get all dependencies for a given method.
     *
/
home
/
alvo0765
/
public_html
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
     * Handle dynamic, static calls to the object.
     *
     * @param  string  $method
     * @param  array   $args
     * @return mixed
     */
    public static function __callStatic($method, $args)
    {
        $instance = static::getFacadeRoot();
 
        if (! $instance) {
            throw new RuntimeException('A facade root has not been set.');
        }
 
        switch (count($args)) {
            case 0:
                return $instance->$method();
 
            case 1:
                return $instance->$method($args[0]);
 
            case 2:
                return $instance->$method($args[0], $args[1]);
 
            case 3:
                return $instance->$method($args[0], $args[1], $args[2]);
 
            case 4:
                return $instance->$method($args[0], $args[1], $args[2], $args[3]);
 
            default:
                return call_user_func_array([$instance, $method], $args);
        }
    }
}
 
/
home
/
alvo0765
/
public_html
/
vendor
/
share
/
sharepress
/
src
/
SharePress
/
WordPress
/
WPTemplateMatch
/
Parsers
/
BaseParser.php
    public function parse($directory, $pipeline = [])
    {
        if (!!$pipeline && count($pipeline) > 0) {
            foreach ($pipeline as $item) {
                $controllerResult = $this->tryRunController($directory, $item);
                if (!!$controllerResult) {
                    return $controllerResult;
                }
            }
        }
        // Parses index
        return $this->tryRunController($directory, "Index");
    }

    protected function tryRunController($directory, $controller)
    {
        if ($file = $this->isController($directory, $controller)) {
            $class      = ClassesNamespaces::getClass($file);
            $controller = Container::make($class);
            return Container::call([$controller, 'index']);
        }
        return null;
    }

    protected function isController($directory, $filename)
    {
        $appDirectory = App::getDirectory("app");
        $filePath     = "${appDirectory}/${directory}/${filename}.php";
        if (is_file($filePath)) {
            return $filePath;
        } else {
            return false;
        }
    }
}
/
home
/
alvo0765
/
public_html
/
vendor
/
share
/
sharepress
/
src
/
SharePress
/
WordPress
/
WPTemplateMatch
/
Parsers
/
BaseParser.php
namespace share\SharePress\WordPress\WPTemplateMatch\Parsers;

use share\SharePress\Facades\App;
use share\SharePress\Facades\Container;
use share\SharePress\FileHandling\ClassesNamespaces;

abstract class BaseParser
{
    public function parse($directory, $pipeline = [])
    {
        if (!!$pipeline && count($pipeline) > 0) {
            foreach ($pipeline as $item) {
                $controllerResult = $this->tryRunController($directory, $item);
                if (!!$controllerResult) {
                    return $controllerResult;
                }
            }
        }
        // Parses index
        return $this->tryRunController($directory, "Index");
    }

    protected function tryRunController($directory, $controller)
    {
        if ($file = $this->isController($directory, $controller)) {
            $class      = ClassesNamespaces::getClass($file);
            $controller = Container::make($class);
            return Container::call([$controller, 'index']);
        }
        return null;
    }

    protected function isController($directory, $filename)
    {
        $appDirectory = App::getDirectory("app");
        $filePath     = "${appDirectory}/${directory}/${filename}.php";
        if (is_file($filePath)) {
            return $filePath;
        } else {
            return false;
/
home
/
alvo0765
/
public_html
/
vendor
/
share
/
sharepress
/
src
/
SharePress
/
WordPress
/
WPTemplateMatch
/
Parsers
/
SingleParser.php
 * User: PedroGaspar
 * Date: 09/02/2018
 * Time: 22:52
 */

namespace share\SharePress\WordPress\WPTemplateMatch\Parsers;

use share\SharePress\Facades\Strings;

class SingleParser extends BaseParser
{
    public function parse($directory, $pipeline = [])
    {
        global $wp;
        //$pageFilename = isset($wp->query_vars['page']) ? Strings::slugToCamelCase($wp->query_vars['page'], true) : "";
        $postTypeFilename = isset($wp->query_vars['post_type']) ? Strings::slugToCamelCase($wp->query_vars['post_type'], true) : "";
        $nameFilename = isset($wp->query_vars['name']) ? Strings::slugToCamelCase($wp->query_vars['name'], true) : "";
        return parent::parse($directory, [
            $postTypeFilename . "/" . $nameFilename,
            $postTypeFilename,
        ]);
    }
}
/
home
/
alvo0765
/
public_html
/
vendor
/
illuminate
/
container
/
Container.php
        };
    }
 
    /**
     * Call the given Closure / [email protected] and inject its dependencies.
     *
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     */
    public function call($callback, array $parameters = [], $defaultMethod = null)
    {
        if ($this->isCallableWithAtSign($callback) || $defaultMethod) {
            return $this->callClass($callback, $parameters, $defaultMethod);
        }
 
        $dependencies = $this->getMethodDependencies($callback, $parameters);
 
        return call_user_func_array($callback, $dependencies);
    }
 
    /**
     * Determine if the given string is in [email protected] syntax.
     *
     * @param  mixed  $callback
     * @return bool
     */
    protected function isCallableWithAtSign($callback)
    {
        if (! is_string($callback)) {
            return false;
        }
 
        return strpos($callback, '@') !== false;
    }
 
    /**
     * Get all dependencies for a given method.
     *
/
home
/
alvo0765
/
public_html
/
vendor
/
illuminate
/
container
/
Container.php
        };
    }
 
    /**
     * Call the given Closure / [email protected] and inject its dependencies.
     *
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     */
    public function call($callback, array $parameters = [], $defaultMethod = null)
    {
        if ($this->isCallableWithAtSign($callback) || $defaultMethod) {
            return $this->callClass($callback, $parameters, $defaultMethod);
        }
 
        $dependencies = $this->getMethodDependencies($callback, $parameters);
 
        return call_user_func_array($callback, $dependencies);
    }
 
    /**
     * Determine if the given string is in [email protected] syntax.
     *
     * @param  mixed  $callback
     * @return bool
     */
    protected function isCallableWithAtSign($callback)
    {
        if (! is_string($callback)) {
            return false;
        }
 
        return strpos($callback, '@') !== false;
    }
 
    /**
     * Get all dependencies for a given method.
     *
/
home
/
alvo0765
/
public_html
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
     * @param  array   $args
     * @return mixed
     */
    public static function __callStatic($method, $args)
    {
        $instance = static::getFacadeRoot();
 
        if (! $instance) {
            throw new RuntimeException('A facade root has not been set.');
        }
 
        switch (count($args)) {
            case 0:
                return $instance->$method();
 
            case 1:
                return $instance->$method($args[0]);
 
            case 2:
                return $instance->$method($args[0], $args[1]);
 
            case 3:
                return $instance->$method($args[0], $args[1], $args[2]);
 
            case 4:
                return $instance->$method($args[0], $args[1], $args[2], $args[3]);
 
            default:
                return call_user_func_array([$instance, $method], $args);
        }
    }
}
 
/
home
/
alvo0765
/
public_html
/
vendor
/
share
/
sharepress
/
src
/
SharePress
/
WordPress
/
WPTemplateMatch
/
Manager.php
        foreach ($this->templates as $filter => $templateDir) {
            $this->addFilter($filter, $templateDir);
        }
    }

    private function addFilter($filter, $templateDir)
    {
        add_filter($filter, function ($templates) use ($filter, $templateDir) {
            if(function_exists('profile_finish')) {
                profile_finish("OtherWordpress");
            }

            do_action('sharepress/template_filter_parse', $filter);

            $parser = "share\\SharePress\\WordPress\\WPTemplateMatch\\Parsers\\" . $templateDir . "Parser";
            $parser = Container::make($parser);

            do_action('sharepress/pre_controller');

            $ret    = Container::call([$parser, 'parse'], ['directory' => $this->controllers . "/" . $templateDir]);

            do_action('sharepress/controller_executed');

            if (!!$ret) {
                if(isset($this->cache->template_match) && !!$this->cache->template_match) {
                    $this->cacheDriver->set($this->cacheHasher->generate(), $ret);
                }

                do_action('sharepress/pre_render');

                echo $ret;

                do_action('sharepress/rendered', $filter);

                die;
            }
            do_action('sharepress/template_filter_continue', $filter);
            return $templates;
        });
    }
/
home
/
alvo0765
/
public_html
/
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.
     */
    public function do_action( $args ) {
/
home
/
alvo0765
/
public_html
/
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
/
alvo0765
/
public_html
/
wp-includes
/
template.php
    $template = locate_template( $templates );

    /**
     * Filters the path of the queried template by type.
     *
     * The dynamic portion of the hook name, `$type`, refers to the filename -- minus the file
     * extension and any non-alphanumeric characters delimiting words -- of the file to load.
     * This hook also applies to various types of files loaded as part of the Template Hierarchy.
     *
     * Possible values for `$type` include: 'index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date',
     * 'embed', 'home', 'frontpage', 'page', 'paged', 'search', 'single', 'singular', and 'attachment'.
     *
     * @since 1.5.0
     * @since 4.8.0 The `$type` and `$templates` parameters were added.
     *
     * @param string $template  Path to the template. See locate_template().
     * @param string $type      Filename without extension.
     * @param array  $templates A list of template candidates, in descending order of priority.
     */
    return apply_filters( "{$type}_template", $template, $type, $templates );
}

/**
 * Retrieve path of index template in current or parent template.
 *
 * The template hierarchy and template path are filterable via the {@see '$type_template_hierarchy'}
 * and {@see '$type_template'} dynamic hooks, where `$type` is 'index'.
 *
 * @since 3.0.0
 *
 * @see get_query_template()
 *
 * @return string Full path to index template file.
 */
function get_index_template() {
    return get_query_template('index');
}

/**
 * Retrieve path of 404 template in current or parent template.
/
home
/
alvo0765
/
public_html
/
wp-includes
/
template.php
    $templates = array();

    if ( ! empty( $object->post_type ) ) {
        $template = get_page_template_slug( $object );
        if ( $template && 0 === validate_file( $template ) ) {
            $templates[] = $template;
        }

        $name_decoded = urldecode( $object->post_name );
        if ( $name_decoded !== $object->post_name ) {
            $templates[] = "single-{$object->post_type}-{$name_decoded}.php";
        }

        $templates[] = "single-{$object->post_type}-{$object->post_name}.php";
        $templates[] = "single-{$object->post_type}.php";
    }

    $templates[] = "single.php";

    return get_query_template( 'single', $templates );
}

/**
 * Retrieves an embed template path in the current or parent template.
 *
 * The hierarchy for this template looks like:
 *
 * 1. embed-{post_type}-{post_format}.php
 * 2. embed-{post_type}.php
 * 3. embed.php
 *
 * An example of this is:
 *
 * 1. embed-post-audio.php
 * 2. embed-post.php
 * 3. embed.php
 *
 * The template hierarchy and template path are filterable via the {@see '$type_template_hierarchy'}
 * and {@see '$type_template'} dynamic hooks, where `$type` is 'embed'.
 *
/
home
/
alvo0765
/
public_html
/
wp-includes
/
template-loader.php
elseif ( is_feed() ) :
    do_feed();
    return;
elseif ( is_trackback() ) :
    include( ABSPATH . 'wp-trackback.php' );
    return;
endif;

if ( defined('WP_USE_THEMES') && WP_USE_THEMES ) :
    $template = false;
    if     ( is_embed()          && $template = get_embed_template()          ) :
    elseif ( is_404()            && $template = get_404_template()            ) :
    elseif ( is_search()         && $template = get_search_template()         ) :
    elseif ( is_front_page()     && $template = get_front_page_template()     ) :
    elseif ( is_home()           && $template = get_home_template()           ) :
    elseif ( is_post_type_archive() && $template = get_post_type_archive_template() ) :
    elseif ( is_tax()            && $template = get_taxonomy_template()       ) :
    elseif ( is_attachment()     && $template = get_attachment_template()     ) :
        remove_filter('the_content', 'prepend_attachment');
    elseif ( is_single()         && $template = get_single_template()         ) :
    elseif ( is_page()           && $template = get_page_template()           ) :
    elseif ( is_singular()       && $template = get_singular_template()       ) :
    elseif ( is_category()       && $template = get_category_template()       ) :
    elseif ( is_tag()            && $template = get_tag_template()            ) :
    elseif ( is_author()         && $template = get_author_template()         ) :
    elseif ( is_date()           && $template = get_date_template()           ) :
    elseif ( is_archive()        && $template = get_archive_template()        ) :
    else :
        $template = get_index_template();
    endif;
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    if ( $template = apply_filters( 'template_include', $template ) ) {
        include( $template );
    } elseif ( current_user_can( 'switch_themes' ) ) {
/
home
/
alvo0765
/
public_html
/
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
/
alvo0765
/
public_html
/
index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * 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__ ) . '/wp-blog-header.php' );
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /cases_slider/viniportugal/
PATH /usr/local/bin:/usr/bin:/bin
REDIRECT_STATUS 200
UNIQUE_ID XEN5XyrPFxXqrNCm1oSX8gAAACA
HTTPS on
PHPHANDLER /usr/local/php72/bin/php
HTTP_HOST www.alvo.com
HTTP_X_REAL_IP 100.24.46.10
HTTP_X_FORWARDED_PROTO https
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_CF_IPCOUNTRY US
HTTP_CF_RAY 49bbae324e7ec177-IAD
HTTP_CF_VISITOR {\"scheme\":\"https\"}
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_CF_CONNECTING_IP 100.24.46.10
HTTP_CDN_LOOP cloudflare
SERVER_NAME www.alvo.com
SERVER_ADDR 77.104.131.225
SERVER_PORT 443
REMOTE_ADDR 100.24.46.10
DOCUMENT_ROOT /home/alvo0765/public_html
SERVER_ADMIN [email protected]
SCRIPT_FILENAME /home/alvo0765/public_html/index.php
REMOTE_PORT 32882
REDIRECT_URL /cases_slider/viniportugal/
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 1547925855.5397
REQUEST_TIME 1547925855
DEV_ENV true
WP_DEBUG false
WP_DEBUG_LOG false
WP_POST_REVISIONS 3
DBHOST localhost
DBNAME alvo0765_alvo_wp
DBUSER alvo0765_alvo_wp
DBPASS e7iDxvLKryBo
WP_TABLE_PREFIX wp_
LOCALHOSTNAME alvo
Key Value
DEV_ENV true
WP_DEBUG false
WP_DEBUG_LOG false
WP_POST_REVISIONS 3
DBHOST localhost
DBNAME alvo0765_alvo_wp
DBUSER alvo0765_alvo_wp
DBPASS e7iDxvLKryBo
WP_TABLE_PREFIX wp_
LOCALHOSTNAME alvo
0. Whoops\Handler\PrettyPageHandler