Error
Call to undefined method Syltaen\SingleController::post() Error thrown with message "Call to undefined method Syltaen\SingleController::post()" Stacktrace: #6 Error in /var/www/vhosts/ecolespluspropres.hungryminds.host/httpdocs/wp-content/themes/syltaen/Controllers/SingleController.php:19 #5 Syltaen\SingleController:__construct in /var/www/vhosts/ecolespluspropres.hungryminds.host/httpdocs/wp-content/themes/syltaen/app/Helpers/Route.php:38 #4 Syltaen\Route:respond in /var/www/vhosts/ecolespluspropres.hungryminds.host/httpdocs/wp-content/themes/syltaen/app/Helpers/Route.php:161 #3 Syltaen\Route:is in /var/www/vhosts/ecolespluspropres.hungryminds.host/httpdocs/wp-content/themes/syltaen/index.php:12 #2 include in /var/www/vhosts/ecolespluspropres.hungryminds.host/httpdocs/wp-includes/template-loader.php:106 #1 require_once in /var/www/vhosts/ecolespluspropres.hungryminds.host/httpdocs/wp-blog-header.php:19 #0 require in /var/www/vhosts/ecolespluspropres.hungryminds.host/httpdocs/index.php:17
Stack frames (7)
6
Error
/
var
/
www
/
vhosts
/
ecolespluspropres.hungryminds.host
/
httpdocs
/
wp-content
/
themes
/
syltaen
/
Controllers
/
SingleController.php
19
5
Syltaen
\
SingleController
__construct
/
var
/
www
/
vhosts
/
ecolespluspropres.hungryminds.host
/
httpdocs
/
wp-content
/
themes
/
syltaen
/
app
/
Helpers
/
Route.php
38
4
Syltaen
\
Route
respond
/
var
/
www
/
vhosts
/
ecolespluspropres.hungryminds.host
/
httpdocs
/
wp-content
/
themes
/
syltaen
/
app
/
Helpers
/
Route.php
161
3
Syltaen
\
Route
is
/
var
/
www
/
vhosts
/
ecolespluspropres.hungryminds.host
/
httpdocs
/
wp-content
/
themes
/
syltaen
/
index.php
12
2
include
/
var
/
www
/
vhosts
/
ecolespluspropres.hungryminds.host
/
httpdocs
/
wp-includes
/
template-loader.php
106
1
require_once
/
var
/
www
/
vhosts
/
ecolespluspropres.hungryminds.host
/
httpdocs
/
wp-blog-header.php
19
0
require
/
var
/
www
/
vhosts
/
ecolespluspropres.hungryminds.host
/
httpdocs
/
index.php
17
<?php
 
namespace Syltaen;
 
class SingleController extends BaseController
{
 
    public $view = "single";
 
 
    /**
     * Populate $this->data
     */
    public function __construct($args = [])
    {
        parent::__construct($args);
 
        // Use the post type as a method
        $this->{$this->post->post_type}();
 
        // Populate & add the post to the context
        $this->model->populateResultData($this->post);
        $this->data["post"] = $this->post;
    }
 
 
    // ==================================================
    // > POST TYPES
    // ==================================================
    /**
     * Data and view handling for News
     *
     * @return void
     */
    private function news()
    {
        $this->model = new News;
        $this->view  = "single-news";
        $this->addSingleNav("Retour à la liste des news", "/");
    }
Arguments
  1. "Call to undefined method Syltaen\SingleController::post()"
    
        // 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 = [])
    {
Arguments
  1. null
    
     * @param boolean $resp
     * @param array $args
     * @return boolean
     */
    public static function is($condition, $resp = false, $args = null)
    {
        $conditions = (array) $condition;
 
        foreach ($conditions as $condition) {
            $argument = null;
 
            if (preg_match('/(.*):(.*)/', $condition, $parts)) {
                $condition = $parts[1];
                $argument  = $parts[2];
            }
 
            $condition = "is_".$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);
        }
    }
Arguments
  1. "SingleController"
    
  2. null
    
<?php
 
namespace Syltaen;
 
// echo memory_get_usage();
// die();
 
// ==================================================
// > SINGLES
// ==================================================
Route::is("singular:schools", "SingleSchoolsController::render");
Route::is("single", "SingleController::render");
 
// ==================================================
// > SEARCH
// ==================================================
Route::is("search", "PageController::search", ["search" => get_search_query(false)]);
 
// ==================================================
// > API
// ==================================================
Route::custom("api", "ApiController", ["method", "target", "mode"]);
Route::custom("user_login", "ApiController::login", ["user_key"]);
 
// ==================================================
// > NINJA FORM PREVIEW
// ==================================================
Route::query("nf_preview_form", "PageController::ninjaFormPreview");
 
// ==================================================
// > PAGES
// ==================================================
Route::is("page", "PageController::page");
 
// ==================================================
// > 404
// ==================================================
Route::is("404", "PageController::error404");
Arguments
  1. "is_single"
    
  2. "SingleController::render"
    
            }
 
            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/ecolespluspropres.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/ecolespluspropres.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/ecolespluspropres.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
"/bonjour-tout-le-monde/"
USER
"ecolespluspropres"
HOME
"/var/www/vhosts/ecolespluspropres.hungryminds.host"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/bonjour-tout-le-monde/"
REMOTE_PORT
"60628"
SCRIPT_FILENAME
"/var/www/vhosts/ecolespluspropres.hungryminds.host/httpdocs/index.php"
SERVER_ADMIN
"[no address given]"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/ecolespluspropres.hungryminds.host/httpdocs"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/var/www/vhosts/ecolespluspropres.hungryminds.host/httpdocs"
REMOTE_ADDR
"44.192.114.32"
SERVER_PORT
"443"
SERVER_ADDR
"172.31.40.112"
SERVER_NAME
"monecolepluspropre.be"
SERVER_SIGNATURE
"<address>Apache Server at monecolepluspropre.be 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_ACCEL_INTERNAL
"/internal-nginx-static-location"
HTTP_X_REAL_IP
"44.192.114.32"
HTTP_HOST
"monecolepluspropre.be"
proxy-nokeepalive
"1"
HTTPS
"on"
HTTP_AUTHORIZATION
""
SCRIPT_URI
"https://monecolepluspropre.be/bonjour-tout-le-monde/"
SCRIPT_URL
"/bonjour-tout-le-monde/"
UNIQUE_ID
"YruEkqwfKHAAABTcE24AAAAG"
REDIRECT_STATUS
"200"
REDIRECT_HTTPS
"on"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_SCRIPT_URI
"https://monecolepluspropre.be/bonjour-tout-le-monde/"
REDIRECT_SCRIPT_URL
"/bonjour-tout-le-monde/"
REDIRECT_UNIQUE_ID
"YruEkqwfKHAAABTcE24AAAAG"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1656456338.8763
REQUEST_TIME
1656456338
empty
0. Whoops\Handler\PrettyPageHandler