Whoops \ Exception \ ErrorException (E_NOTICE)
Trying to get property 'group_tag' of non-object Whoops\Exception\ErrorException thrown with message "Trying to get property 'group_tag' of non-object" Stacktrace: #7 Whoops\Exception\ErrorException in /var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-content/themes/syltaen/Controllers/SingleProductController.php:25 #6 Whoops\Run:handleError in /var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-content/themes/syltaen/Controllers/SingleProductController.php:25 #5 Syltaen\SingleProductController:__construct in /var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-content/themes/syltaen/app/Helpers/Route.php:38 #4 Syltaen\Route:respond in /var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-content/themes/syltaen/app/Helpers/Route.php:161 #3 Syltaen\Route:is in /var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-content/themes/syltaen/index.php:26 #2 include in /var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-includes/template-loader.php:106 #1 require_once in /var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-blog-header.php:19 #0 require in /var/www/vhosts/bewapp.hungryminds.host/httpdocs/index.php:17
Stack frames (8)
7
Whoops\Exception\ErrorException
/var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-content/themes/syltaen/Controllers/SingleProductController.php25
6
Whoops\Run handleError
/var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-content/themes/syltaen/Controllers/SingleProductController.php25
5
Syltaen\SingleProductController __construct
/var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-content/themes/syltaen/app/Helpers/Route.php38
4
Syltaen\Route respond
/var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-content/themes/syltaen/app/Helpers/Route.php161
3
Syltaen\Route is
/var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-content/themes/syltaen/index.php26
2
include
/var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-includes/template-loader.php106
1
require_once
/var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-blog-header.php19
0
require
/var/www/vhosts/bewapp.hungryminds.host/httpdocs/index.php17
{
 
    protected $view = "single-product";
 
    /**
     * Populate $this->data
     */
    public function __construct($args = [])
    {
        global $post;
        parent::__construct($args);
 
        $this->addBoutiqueTheme();
        $this->data["backurl"] = $this->getBackURL();
 
        $this->model = (new Products)->is($post->ID);
        $this->data["user"]    = $this->user->loadEverything()->loadTeams()->loadBoutique()->getOne();
        $this->data["product"] = $this->model->loadAllowed($this->data["user"])->getOne();
 
        if (!$this->data["user"]->group_tag) { //  || isset($_GET["modification-groupe"])
            $this->groupEdition();
        } else {
            $this->addLimitContext();
        }
    }
 
 
    // ==================================================
    // > GROUP EDITION
    // ==================================================
    /**
     * Add context for the limit
     *
     * @return void
     */
    public function addLimitContext()
    {
        $this->data["limit_context"] = "";
 
        // No more info
Arguments
  1. "Trying to get property 'group_tag' of non-object"
    
{
 
    protected $view = "single-product";
 
    /**
     * Populate $this->data
     */
    public function __construct($args = [])
    {
        global $post;
        parent::__construct($args);
 
        $this->addBoutiqueTheme();
        $this->data["backurl"] = $this->getBackURL();
 
        $this->model = (new Products)->is($post->ID);
        $this->data["user"]    = $this->user->loadEverything()->loadTeams()->loadBoutique()->getOne();
        $this->data["product"] = $this->model->loadAllowed($this->data["user"])->getOne();
 
        if (!$this->data["user"]->group_tag) { //  || isset($_GET["modification-groupe"])
            $this->groupEdition();
        } else {
            $this->addLimitContext();
        }
    }
 
 
    // ==================================================
    // > GROUP EDITION
    // ==================================================
    /**
     * Add context for the limit
     *
     * @return void
     */
    public function addLimitContext()
    {
        $this->data["limit_context"] = "";
 
        // No more info
        // Clear obsolete flash data
        if (!$same_session_page) {
            Data::goToNextSessionPage();
        }
 
        // Class method call
        if (is_string($resp)) {
 
            // Extracts method
            $method = false;
            if (preg_match('/(.*)::(.*)/', $resp, $keys)) {
                $resp = $keys[1];
                $method = $keys[2];
            }
 
            // Add namespace to class
            $classname = "Syltaen\\$resp";
 
            // Instanciate the class with the arguments
            $class = new $classname($args);
 
            // Lauch mehtod if any
            if ($method) {
                $class->$method();
            }
        }
 
        // Closure function call
        if (is_callable($resp)) {
            $resp($args);
        }
 
        exit;
    }
 
    // ==================================================
    // > RULES
    // ==================================================
    public static function any($resp, $args = [])
    {
     * @param boolean $resp
     * @param array $args
     * @return boolean
     */
    public static function is($condition, $resp = false, $args = null, $prefix = "is_")
    {
        $conditions = (array) $condition;
 
        foreach ($conditions as $condition) {
            $argument = null;
 
            if (preg_match('/(.*):(.*)/', $condition, $parts)) {
                $condition = $parts[1];
                $argument  = $parts[2];
            }
 
            $condition = $prefix . $condition;
            if ($condition($argument)) {
                if ($resp) {
                    static::respond($resp, $args);
                }
                return true;
            };
        }
        return false;
    }
 
 
    /**
     * Website is in maintenance mode
     *
     * @param boolean $resp
     * @return void
     */
    public static function maintenance($resp = false)
    {
        if (Data::get("maintenance_mode", "option") && !current_user_can("administrator")) {
            static::respond($resp);
        }
    }
// ==================================================
// > FORUM
// ==================================================
Route::is("single_user_edit", "SpecialPageController::error404", null, "bbp_is_");
Route::is("bbpress", "ForumsController::forum");
 
// ==================================================
// > SINGLES
// ==================================================
Route::is("singular:amb_team", "SingleTeamAmbController::routing");
Route::is("page:ambassadeurs-creer-equipe", "SingleTeamAmbController::renderCreate");
 
Route::is("singular:gnp_team", "SingleTeamGNPController::routing");
Route::is("page:gnp-creer-equipe", "SingleTeamGNPController::renderCreate");
 
Route::is("singular:events", "SingleEventController::routing");
Route::custom("event_create", "SingleEventController::renderCreate", ["type"]);
 
Route::is("singular:commune", "SingleCommuneController::rapport");
Route::is("singular:product", "SingleProductController::render");
 
 
Route::is("single", "SingleController::render");
 
// ==================================================
// > SEARCH
// ==================================================
Route::is("search", "SpecialPageController::search", ["search" => get_search_query()]);
 
 
 
// ==================================================
// > API
// ==================================================
Route::custom("api", "ApiController", ["method", "target", "mode"]);
 
// ==================================================
// > NINJA FORM PREVIEW
// ==================================================
Route::query("nf_preview_form", "SpecialPageController::ninjaFormPreview");
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-content/themes/syltaen/index.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 __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-includes/template-loader.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 __DIR__ . '/wp-blog-header.php';
 
Arguments
  1. "/var/www/vhosts/bewapp.hungryminds.host/httpdocs/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
Key Value
syltaen_current_page
[]
syltaen_messages
[]
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/produit/mag-a-2/"
USER
"bewapp"
HOME
"/var/www/vhosts/bewapp.hungryminds.host"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/produit/mag-a-2/"
REMOTE_PORT
"39094"
SCRIPT_FILENAME
"/var/www/vhosts/bewapp.hungryminds.host/httpdocs/index.php"
SERVER_ADMIN
"[no address given]"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/bewapp.hungryminds.host/httpdocs"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/var/www/vhosts/bewapp.hungryminds.host/httpdocs"
REMOTE_ADDR
"3.238.250.73"
SERVER_PORT
"443"
SERVER_ADDR
"172.31.40.112"
SERVER_NAME
"bewapp.hungryminds.host"
SERVER_SIGNATURE
"<address>Apache Server at bewapp.hungryminds.host Port 443</address>\n"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
HTTP_ACCEPT_ENCODING
"br,gzip"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
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_REAL_IP
"3.238.250.73"
HTTP_HOST
"bewapp.hungryminds.host"
proxy-nokeepalive
"1"
HTTPS
"on"
HTTP_AUTHORIZATION
""
UNIQUE_ID
"ZBuCZqwfKHAAAEc67zQAAAAG"
REDIRECT_STATUS
"200"
REDIRECT_HTTPS
"on"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_UNIQUE_ID
"ZBuCZqwfKHAAAEc67zQAAAAG"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1679524454.5512
REQUEST_TIME
1679524454
empty
0. Whoops\Handler\PrettyPageHandler