Whoops \ Exception \ ErrorException (E_NOTICE)
Trying to get property of non-object Whoops\Exception\ErrorException thrown with message "Trying to get property of non-object" Stacktrace: #21 Whoops\Exception\ErrorException in /usr/www/users/rezaibecvr/content/mu-plugins/themosis-framework/src/Themosis/helpers.php:20 #20 Whoops\Run:handleError in /usr/www/users/rezaibecvr/content/mu-plugins/themosis-framework/src/Themosis/helpers.php:20 #19 themosis_is_subpage in /usr/www/users/rezaibecvr/content/mu-plugins/themosis-framework/src/Themosis/Route/Matching/ConditionMatching.php:13 #18 call_user_func_array in /usr/www/users/rezaibecvr/content/mu-plugins/themosis-framework/src/Themosis/Route/Matching/ConditionMatching.php:13 #17 Themosis\Route\Matching\ConditionMatching:matches in /usr/www/users/rezaibecvr/content/mu-plugins/themosis-framework/src/Themosis/Route/Route.php:201 #16 Themosis\Route\Route:matches in /usr/www/users/rezaibecvr/vendor/illuminate/routing/RouteCollection.php:197 #15 Illuminate\Routing\RouteCollection:Illuminate\Routing\{closure} in /usr/www/users/rezaibecvr/vendor/illuminate/support/Arr.php:175 #14 call_user_func in /usr/www/users/rezaibecvr/vendor/illuminate/support/Arr.php:175 #13 Illuminate\Support\Arr:first in /usr/www/users/rezaibecvr/vendor/illuminate/support/Collection.php:657 #12 Illuminate\Support\Collection:first in /usr/www/users/rezaibecvr/vendor/illuminate/routing/RouteCollection.php:198 #11 Illuminate\Routing\RouteCollection:matchAgainstRoutes in /usr/www/users/rezaibecvr/vendor/illuminate/routing/RouteCollection.php:164 #10 Illuminate\Routing\RouteCollection:match in /usr/www/users/rezaibecvr/vendor/illuminate/routing/Router.php:619 #9 Illuminate\Routing\Router:findRoute in /usr/www/users/rezaibecvr/content/mu-plugins/themosis-framework/src/Themosis/Route/Router.php:46 #8 Themosis\Route\Router:findRoute in /usr/www/users/rezaibecvr/vendor/illuminate/routing/Router.php:608 #7 Illuminate\Routing\Router:dispatchToRoute in /usr/www/users/rezaibecvr/vendor/illuminate/routing/Router.php:597 #6 Illuminate\Routing\Router:dispatch in /usr/www/users/rezaibecvr/content/mu-plugins/themosis-framework/themosis.php:292 #5 Themosis:setRouter in /usr/www/users/rezaibecvr/cms/wp-includes/class-wp-hook.php:286 #4 WP_Hook:apply_filters in /usr/www/users/rezaibecvr/cms/wp-includes/class-wp-hook.php:310 #3 WP_Hook:do_action in /usr/www/users/rezaibecvr/cms/wp-includes/plugin.php:453 #2 do_action in /usr/www/users/rezaibecvr/cms/wp-includes/template-loader.php:12 #1 require_once in /usr/www/users/rezaibecvr/cms/wp-blog-header.php:19 #0 require in /usr/www/users/rezaibecvr/index.php:11
Stack frames (22)
21
Whoops
\
Exception
\
ErrorException
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
helpers.php
20
20
Whoops
\
Run
handleError
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
helpers.php
20
19
themosis_is_subpage
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
Route
/
Matching
/
ConditionMatching.php
13
18
call_user_func_array
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
Route
/
Matching
/
ConditionMatching.php
13
17
Themosis
\
Route
\
Matching
\
ConditionMatching
matches
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
Route
/
Route.php
201
16
Themosis
\
Route
\
Route
matches
/
vendor
/
illuminate
/
routing
/
RouteCollection.php
197
15
Illuminate
\
Routing
\
RouteCollection
Illuminate
\
Routing
\
{closure}
/
vendor
/
illuminate
/
support
/
Arr.php
175
14
call_user_func
/
vendor
/
illuminate
/
support
/
Arr.php
175
13
Illuminate
\
Support
\
Arr
first
/
vendor
/
illuminate
/
support
/
Collection.php
657
12
Illuminate
\
Support
\
Collection
first
/
vendor
/
illuminate
/
routing
/
RouteCollection.php
198
11
Illuminate
\
Routing
\
RouteCollection
matchAgainstRoutes
/
vendor
/
illuminate
/
routing
/
RouteCollection.php
164
10
Illuminate
\
Routing
\
RouteCollection
match
/
vendor
/
illuminate
/
routing
/
Router.php
619
9
Illuminate
\
Routing
\
Router
findRoute
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
Route
/
Router.php
46
8
Themosis
\
Route
\
Router
findRoute
/
vendor
/
illuminate
/
routing
/
Router.php
608
7
Illuminate
\
Routing
\
Router
dispatchToRoute
/
vendor
/
illuminate
/
routing
/
Router.php
597
6
Illuminate
\
Routing
\
Router
dispatch
/
content
/
mu-plugins
/
themosis-framework
/
themosis.php
292
5
Themosis
setRouter
/
cms
/
wp-includes
/
class-wp-hook.php
286
4
WP_Hook
apply_filters
/
cms
/
wp-includes
/
class-wp-hook.php
310
3
WP_Hook
do_action
/
cms
/
wp-includes
/
plugin.php
453
2
do_action
/
cms
/
wp-includes
/
template-loader.php
12
1
require_once
/
cms
/
wp-blog-header.php
19
0
require
/
index.php
11
/
usr
/
www
/
users
/
rezaibecvr
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
helpers.php
<?php
 
use Themosis\Foundation\Application;
 
/*
 * Helpers functions globally available.
 */
if (!function_exists('themosis_is_subpage')) {
    /**
     * Define if the current page is a child page.
     *
     * @param array $parent The parent page properties.
     *
     * @return int|bool Parent page ID if subpage. False if not.
     */
    function themosis_is_subpage(array $parent)
    {
        global $post;
 
        $parentPage = get_post($post->post_parent);
 
        if (is_page() && $post->post_parent && $parentPage->post_name === $parent[0]) {
            return $post->post_parent;
        }
 
        return false;
    }
}
 
if (!function_exists('themosis_convert_path')) {
    /**
     * Convert '.' into '/' directory separators.
     *
     * @param string $path The initial path with '.'
     *
     * @return string The converted path with '/'
     */
    function themosis_convert_path($path)
    {
        if (strpos($path, '.') !== false) {
/
usr
/
www
/
users
/
rezaibecvr
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
helpers.php
<?php
 
use Themosis\Foundation\Application;
 
/*
 * Helpers functions globally available.
 */
if (!function_exists('themosis_is_subpage')) {
    /**
     * Define if the current page is a child page.
     *
     * @param array $parent The parent page properties.
     *
     * @return int|bool Parent page ID if subpage. False if not.
     */
    function themosis_is_subpage(array $parent)
    {
        global $post;
 
        $parentPage = get_post($post->post_parent);
 
        if (is_page() && $post->post_parent && $parentPage->post_name === $parent[0]) {
            return $post->post_parent;
        }
 
        return false;
    }
}
 
if (!function_exists('themosis_convert_path')) {
    /**
     * Convert '.' into '/' directory separators.
     *
     * @param string $path The initial path with '.'
     *
     * @return string The converted path with '/'
     */
    function themosis_convert_path($path)
    {
        if (strpos($path, '.') !== false) {
/
usr
/
www
/
users
/
rezaibecvr
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
Route
/
Matching
/
ConditionMatching.php
<?php
 
namespace Themosis\Route\Matching;
 
use Themosis\Foundation\Request;
use Themosis\Route\Route;
 
class ConditionMatching implements IMatching
{
    public function matches(Route $route, Request $request)
    {
        // Check if a template is associated and compare it to current route condition.
        if ($route->condition() && call_user_func_array($route->condition(), [$route->conditionalParameters()])) {
            return true;
        }
 
        return false;
    }
}
 
/
usr
/
www
/
users
/
rezaibecvr
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
Route
/
Matching
/
ConditionMatching.php
<?php
 
namespace Themosis\Route\Matching;
 
use Themosis\Foundation\Request;
use Themosis\Route\Route;
 
class ConditionMatching implements IMatching
{
    public function matches(Route $route, Request $request)
    {
        // Check if a template is associated and compare it to current route condition.
        if ($route->condition() && call_user_func_array($route->condition(), [$route->conditionalParameters()])) {
            return true;
        }
 
        return false;
    }
}
 
/
usr
/
www
/
users
/
rezaibecvr
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
Route
/
Route.php
        }
 
        return parent::parameters();
    }
 
    /**
     * Determine if the route matches given request.
     *
     * @param \Illuminate\Http\Request $request
     * @param bool                     $includingMethod
     *
     * @return bool
     */
    public function matches(Request $request, $includingMethod = true)
    {
        // If this route uses a WordPress conditional tag
        if ($this->condition()) {
            // Loop trough every validator and if the route passes, return true else false.
            foreach ($this->getWpValidators() as $validator) {
                return $validator->matches($this, $request);
            }
 
            return false;
        }
 
        // If no WordPress condition is found, use the normal way of getting a route
        $matches = parent::matches($request, $includingMethod);
 
        // If we can not find a route using the normal laravel router check if the route which is being checked has the uri "404". If so we return this route as the valid one.
        if (method_exists($this, 'getUri')) {
            return !$matches && $this->getUri() === '404' ? true : $matches;
        }
 
        return !$matches && $this->uri() === '404' ? true : $matches;
    }
 
    /**
     * Get matching validators.
     *
     * @return array
/
usr
/
www
/
users
/
rezaibecvr
/
vendor
/
illuminate
/
routing
/
RouteCollection.php
 
        throw new NotFoundHttpException;
    }
 
    /**
     * Determine if a route in the array matches the request.
     *
     * @param  array  $routes
     * @param  \Illuminate\Http\Request  $request
     * @param  bool  $includingMethod
     * @return \Illuminate\Routing\Route|null
     */
    protected function matchAgainstRoutes(array $routes, $request, $includingMethod = true)
    {
        list($fallbacks, $routes) = collect($routes)->partition(function ($route) {
            return $route->isFallback;
        });
 
        return $routes->merge($fallbacks)->first(function ($value) use ($request, $includingMethod) {
            return $value->matches($request, $includingMethod);
        });
    }
 
    /**
     * Determine if any routes match on another HTTP verb.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    protected function checkForAlternateVerbs($request)
    {
        $methods = array_diff(Router::$verbs, [$request->getMethod()]);
 
        // Here we will spin through all verbs except for the current request verb and
        // check to see if any routes respond to them. If they do, we will return a
        // proper error response with the correct headers on the response string.
        $others = [];
 
        foreach ($methods as $method) {
            if (! is_null($this->matchAgainstRoutes($this->get($method), $request, false))) {
/
usr
/
www
/
users
/
rezaibecvr
/
vendor
/
illuminate
/
support
/
Arr.php
     *
     * @param  array  $array
     * @param  callable|null  $callback
     * @param  mixed  $default
     * @return mixed
     */
    public static function first($array, callable $callback = null, $default = null)
    {
        if (is_null($callback)) {
            if (empty($array)) {
                return value($default);
            }
 
            foreach ($array as $item) {
                return $item;
            }
        }
 
        foreach ($array as $key => $value) {
            if (call_user_func($callback, $value, $key)) {
                return $value;
            }
        }
 
        return value($default);
    }
 
    /**
     * Return the last element in an array passing a given truth test.
     *
     * @param  array  $array
     * @param  callable|null  $callback
     * @param  mixed  $default
     * @return mixed
     */
    public static function last($array, callable $callback = null, $default = null)
    {
        if (is_null($callback)) {
            return empty($array) ? value($default) : end($array);
        }
/
usr
/
www
/
users
/
rezaibecvr
/
vendor
/
illuminate
/
support
/
Arr.php
     *
     * @param  array  $array
     * @param  callable|null  $callback
     * @param  mixed  $default
     * @return mixed
     */
    public static function first($array, callable $callback = null, $default = null)
    {
        if (is_null($callback)) {
            if (empty($array)) {
                return value($default);
            }
 
            foreach ($array as $item) {
                return $item;
            }
        }
 
        foreach ($array as $key => $value) {
            if (call_user_func($callback, $value, $key)) {
                return $value;
            }
        }
 
        return value($default);
    }
 
    /**
     * Return the last element in an array passing a given truth test.
     *
     * @param  array  $array
     * @param  callable|null  $callback
     * @param  mixed  $default
     * @return mixed
     */
    public static function last($array, callable $callback = null, $default = null)
    {
        if (is_null($callback)) {
            return empty($array) ? value($default) : end($array);
        }
/
usr
/
www
/
users
/
rezaibecvr
/
vendor
/
illuminate
/
support
/
Collection.php
     * @param  string  $type
     * @return static
     */
    public function whereInstanceOf($type)
    {
        return $this->filter(function ($value) use ($type) {
            return $value instanceof $type;
        });
    }
 
    /**
     * Get the first item from the collection.
     *
     * @param  callable|null  $callback
     * @param  mixed  $default
     * @return mixed
     */
    public function first(callable $callback = null, $default = null)
    {
        return Arr::first($this->items, $callback, $default);
    }
 
    /**
     * Get the first item by the given key value pair.
     *
     * @param  string  $key
     * @param  mixed  $operator
     * @param  mixed  $value
     * @return static
     */
    public function firstWhere($key, $operator, $value = null)
    {
        return $this->first($this->operatorForWhere(...func_get_args()));
    }
 
    /**
     * Get a flattened array of the items in the collection.
     *
     * @param  int  $depth
     * @return static
/
usr
/
www
/
users
/
rezaibecvr
/
vendor
/
illuminate
/
routing
/
RouteCollection.php
        throw new NotFoundHttpException;
    }
 
    /**
     * Determine if a route in the array matches the request.
     *
     * @param  array  $routes
     * @param  \Illuminate\Http\Request  $request
     * @param  bool  $includingMethod
     * @return \Illuminate\Routing\Route|null
     */
    protected function matchAgainstRoutes(array $routes, $request, $includingMethod = true)
    {
        list($fallbacks, $routes) = collect($routes)->partition(function ($route) {
            return $route->isFallback;
        });
 
        return $routes->merge($fallbacks)->first(function ($value) use ($request, $includingMethod) {
            return $value->matches($request, $includingMethod);
        });
    }
 
    /**
     * Determine if any routes match on another HTTP verb.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    protected function checkForAlternateVerbs($request)
    {
        $methods = array_diff(Router::$verbs, [$request->getMethod()]);
 
        // Here we will spin through all verbs except for the current request verb and
        // check to see if any routes respond to them. If they do, we will return a
        // proper error response with the correct headers on the response string.
        $others = [];
 
        foreach ($methods as $method) {
            if (! is_null($this->matchAgainstRoutes($this->get($method), $request, false))) {
                $others[] = $method;
/
usr
/
www
/
users
/
rezaibecvr
/
vendor
/
illuminate
/
routing
/
RouteCollection.php
            }
        }
    }
 
    /**
     * Find the first route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     */
    public function match(Request $request)
    {
        $routes = $this->get($request->getMethod());
 
        // First, we will see if we can find a matching route for this current request
        // method. If we can, great, we can just return it so that it can be called
        // by the consumer. Otherwise we will check for routes with another verb.
        $route = $this->matchAgainstRoutes($routes, $request);
 
        if (! is_null($route)) {
            return $route->bind($request);
        }
 
        // If no route was found we will now check if a matching route is specified by
        // another HTTP verb. If it is we will need to throw a MethodNotAllowed and
        // inform the user agent of which HTTP verb it should use for this route.
        $others = $this->checkForAlternateVerbs($request);
 
        if (count($others) > 0) {
            return $this->getRouteForMethods($request, $others);
        }
 
        throw new NotFoundHttpException;
    }
 
    /**
     * Determine if a route in the array matches the request.
     *
/
usr
/
www
/
users
/
rezaibecvr
/
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)
    {
        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.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Routing\Route  $route
     * @return mixed
     */
    protected function runRoute(Request $request, Route $route)
    {
        $request->setRouteResolver(function () use ($route) {
            return $route;
        });
 
        $this->events->dispatch(new Events\RouteMatched($route, $request));
/
usr
/
www
/
users
/
rezaibecvr
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
Route
/
Router.php
     * @param  string       $uri
     * @param  mixed        $action
     * @return \Illuminate\Routing\Route
     */
    protected function newRoute($methods, $uri, $action)
    {
        return (new Route($methods, $uri, $action))
            ->setRouter($this)
            ->setContainer($this->container);
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request $request
     * @return \Themosis\Route\Route
     */
    protected function findRoute($request)
    {
        $route = parent::findRoute($request);
 
        // If the current route is a WordPress route
        if ($route instanceof Route && !$route->condition()) {
            global $wp, $wp_query;
 
            //Check if the route is not a WordPress route and warn the developer to flush the rewrite rules.
            if ($wp->matched_rule != $route->getRewriteRuleRegex()) {
                /*
                 * We cannot rely on the flush_rewrite_rules() function as it's a heavy process
                 * especially on a per-request manner.
                 * We modify the headers status and set to 200 so it is properly handled.
                 * We need to use WordPress headers functions as we only return the response
                 * content on each request.
                 */
                status_header(200, 'OK');
            }
 
            // Reset the WordPress query.
            $wp_query->init();
        }
/
usr
/
www
/
users
/
rezaibecvr
/
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.
     *
/
usr
/
www
/
users
/
rezaibecvr
/
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)
/
usr
/
www
/
users
/
rezaibecvr
/
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();
/
usr
/
www
/
users
/
rezaibecvr
/
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.
/
usr
/
www
/
users
/
rezaibecvr
/
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 ] );
/
usr
/
www
/
users
/
rezaibecvr
/
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;
 
/
usr
/
www
/
users
/
rezaibecvr
/
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' );
/
usr
/
www
/
users
/
rezaibecvr
/
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' );
 
}
 
/
usr
/
www
/
users
/
rezaibecvr
/
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 /category/portrait/
USER rezaibecvr
HOME /usr/home/rezaibecvr
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /category/portrait/
REMOTE_PORT 42014
SCRIPT_FILENAME /usr/www/users/rezaibecvr/index.php
SERVER_ADMIN webmaster@rezainedesai.co.za
CONTEXT_DOCUMENT_ROOT /usr/www/users/rezaibecvr
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /usr/www/users/rezaibecvr
REMOTE_ADDR 54.224.118.247
SERVER_PORT 80
SERVER_ADDR 196.22.142.202
SERVER_NAME rezainedesai.co.za
SERVER_SIGNATURE <address>Apache Server at rezainedesai.co.za Port 80</address>
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION Keep-Alive
HTTP_HOST rezainedesai.co.za
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/)
proxy-nokeepalive 1
UNIQUE_ID W8jVMsQWjsoAAK05NgAAAABY
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID W8jVMsQWjsoAAK05NgAAAABY
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1539888434.6594
REQUEST_TIME 1539888434
argv Array ( )
argc 0
Key Value
USER rezaibecvr
HOME /usr/home/rezaibecvr
SCRIPT_NAME /index.php
REQUEST_URI /category/portrait/
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /category/portrait/
REMOTE_PORT 42014
SCRIPT_FILENAME /usr/www/users/rezaibecvr/index.php
SERVER_ADMIN webmaster@rezainedesai.co.za
CONTEXT_DOCUMENT_ROOT /usr/www/users/rezaibecvr
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /usr/www/users/rezaibecvr
REMOTE_ADDR 54.224.118.247
SERVER_PORT 80
SERVER_ADDR 196.22.142.202
SERVER_NAME rezainedesai.co.za
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at rezainedesai.co.za Port 80</address>
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION Keep-Alive
HTTP_HOST rezainedesai.co.za
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/)
proxy-nokeepalive 1
UNIQUE_ID W8jVMsQWjsoAAK05NgAAAABY
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID W8jVMsQWjsoAAK05NgAAAABY
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1539888434.6594
REQUEST_TIME 1539888434
argv Array ( )
argc 0
0. Whoops\Handler\PrettyPageHandler