Error
Call to undefined method Syltaen\SingleController::post() Error thrown with message "Call to undefined method Syltaen\SingleController::post()" Stacktrace: #6 Error in /home/bouffiou/www/wp-content/themes/syltaen/Controllers/SingleController.php:28 #5 Syltaen\SingleController:__construct in /home/bouffiou/www/wp-content/themes/syltaen/app/Helpers/Route.php:38 #4 Syltaen\Route:respond in /home/bouffiou/www/wp-content/themes/syltaen/app/Helpers/Route.php:161 #3 Syltaen\Route:is in /home/bouffiou/www/wp-content/themes/syltaen/index.php:8 #2 include in /home/bouffiou/www/wp-includes/template-loader.php:74 #1 require_once in /home/bouffiou/www/wp-blog-header.php:19 #0 require in /home/bouffiou/www/index.php:17
Stack frames (7)
6
Error
/
home
/
bouffiou
/
www
/
wp-content
/
themes
/
syltaen
/
Controllers
/
SingleController.php
28
5
Syltaen
\
SingleController
__construct
/
home
/
bouffiou
/
www
/
wp-content
/
themes
/
syltaen
/
app
/
Helpers
/
Route.php
38
4
Syltaen
\
Route
respond
/
home
/
bouffiou
/
www
/
wp-content
/
themes
/
syltaen
/
app
/
Helpers
/
Route.php
161
3
Syltaen
\
Route
is
/
home
/
bouffiou
/
www
/
wp-content
/
themes
/
syltaen
/
index.php
8
2
include
/
home
/
bouffiou
/
www
/
wp-includes
/
template-loader.php
74
1
require_once
/
home
/
bouffiou
/
www
/
wp-blog-header.php
19
0
require
/
home
/
bouffiou
/
www
/
index.php
17
 
    /**
     * Page used for the post type archive
     *
     * @var WP_Post
     */
    protected $archive;
 
    /**
     * Populate $this->data
     */
    public function __construct($args = [])
    {
        parent::__construct($args);
 
        // Get the archive
        $this->archive = get_page_by_path($this->post->post_type);
 
        // Use the post type as a method
        $this->{$this->post->post_type}();
 
    }
 
 
    // ==================================================
    // > POST TYPES
    // ==================================================
    /**
     * Data and view handling for News
     *
     * @return void
     */
    private function news()
    {
        Data::store($this->data, [
 
            "@singlenav"     => $this->singleNav(__("Retour à la liste des news", "syltaen"))
 
        ]);
 
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;
    }
 
 
    // ==================================================
    // > CUSTOM ROUTES
    // ==================================================
    /**
     * Register a new query_var or get its value
     *
     * @param string|array $keys
     * @return void
     */
    public static function qVar($keys)
    {
        // Read
Arguments
  1. "SingleController"
    
  2. null
    
<?php
 
namespace Syltaen;
 
// ==================================================
// > SINGLES
// ==================================================
Route::is("single", "SingleController::render");
 
// ==================================================
// > SEARCH
// ==================================================
Route::is("search", "SpecialPageController::search", ["search" => get_search_query(false)]);
 
// ==================================================
// > API
// ==================================================
Route::custom("api", "ApiController", ["method", "target", "mode"]);
 
// ==================================================
// > NINJA FORM PREVIEW
// ==================================================
Route::query("nf_preview_form", "SpecialPageController::ninjaFormPreview");
 
// ==================================================
// > HOMEPAGE
// ==================================================
Route::is(["home", "front_page"], "HomeController::render");
 
// ==================================================
// > PAGES
// ==================================================
Route::is("page", "ContentPageController::render");
 
// ==================================================
// > 404
// ==================================================
Route::is("404", "SpecialPageController::error404");
Arguments
  1. "is_single"
    
  2. "SingleController::render"
    
    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' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
endif;
 
Arguments
  1. "/home/bouffiou/www/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( dirname(__FILE__) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
Arguments
  1. "/home/bouffiou/www/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( dirname( __FILE__ ) . '/wp-blog-header.php' );
 
Arguments
  1. "/home/bouffiou/www/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
Key Value
start
"R118853836"
Key Value
syltaen_current_page
[]
syltaen_messages
[]
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/2018/05/30/bonjour-tout-le-monde/"
USER
"bouffiou"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/2018/05/30/bonjour-tout-le-monde/"
REMOTE_PORT
"22592"
SCRIPT_FILENAME
"/home/bouffiou/www/index.php"
SERVER_ADMIN
"postmaster@www.bouffioux.be"
DOCUMENT_ROOT
"/home/bouffiou/www"
REMOTE_ADDR
"54.210.61.41"
SERVER_PORT
"80"
SERVER_ADDR
"10.0.97.65"
SERVER_NAME
"www.bouffioux.be"
SERVER_SIGNATURE
""
HTTP_X_CDN_ANY_IP
"213.186.33.87"
HTTP_REMOTE_PORT
"35018"
HTTP_FORWARDED
"for=54.210.61.41; proto=http; host=www.bouffioux.be"
HTTP_X_REMOTE_PROTO
"http"
HTTP_X_REMOTE_IP
"54.210.61.41"
HTTP_X_REMOTE_PORT
"35018"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_X_FORWARDED_PORT
"80"
HTTP_X_FORWARDED_FOR
"54.210.61.41"
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_PREDICTOR
"1"
HTTP_COOKIE
"start=R118853836"
HTTP_HOST
"www.bouffioux.be"
HTTP_REMOTE_IP
"54.210.61.41"
PHP_VER
"5_TEST"
ZEND_OPTIMIZER
"1"
MAGIC_QUOTES
"0"
REGISTER_GLOBALS
"0"
ENVIRONMENT
"production"
CFG_CLUSTER
"cluster014"
SCRIPT_URI
"http://www.bouffioux.be/2018/05/30/bonjour-tout-le-monde/"
SCRIPT_URL
"/2018/05/30/bonjour-tout-le-monde/"
GEOIP_LONGITUDE
"-77.472801"
GEOIP_LATITUDE
"39.048100"
GEOIP_AREA_CODE
"703"
GEOIP_DMA_CODE
"511"
GEOIP_CITY
"Ashburn"
GEOIP_REGION
"VA"
GEOIP_COUNTRY_NAME
"United States"
GEOIP_COUNTRY_CODE
"US"
UNIQUE_ID
"XGz6jQoATi8AABHrBBoAAABJ"
REDIRECT_STATUS
"200"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
"1550645901.1877"
REQUEST_TIME
"1550645901"
argv
[]
argc
"0"
Key Value
USER
"bouffiou"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/2018/05/30/bonjour-tout-le-monde/"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/2018/05/30/bonjour-tout-le-monde/"
REMOTE_PORT
"22592"
SCRIPT_FILENAME
"/home/bouffiou/www/index.php"
SERVER_ADMIN
"postmaster@www.bouffioux.be"
DOCUMENT_ROOT
"/home/bouffiou/www"
REMOTE_ADDR
"54.210.61.41"
SERVER_PORT
"80"
SERVER_ADDR
"10.0.97.65"
SERVER_NAME
"www.bouffioux.be"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
HTTP_X_CDN_ANY_IP
"213.186.33.87"
HTTP_REMOTE_PORT
"35018"
HTTP_FORWARDED
"for=54.210.61.41; proto=http; host=www.bouffioux.be"
HTTP_X_REMOTE_PROTO
"http"
HTTP_X_REMOTE_IP
"54.210.61.41"
HTTP_X_REMOTE_PORT
"35018"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_X_FORWARDED_PORT
"80"
HTTP_X_FORWARDED_FOR
"54.210.61.41"
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_PREDICTOR
"1"
HTTP_COOKIE
"start=R118853836"
HTTP_HOST
"www.bouffioux.be"
HTTP_REMOTE_IP
"54.210.61.41"
PHP_VER
"5_TEST"
ZEND_OPTIMIZER
"1"
MAGIC_QUOTES
"0"
REGISTER_GLOBALS
"0"
ENVIRONMENT
"production"
CFG_CLUSTER
"cluster014"
SCRIPT_URI
"http://www.bouffioux.be/2018/05/30/bonjour-tout-le-monde/"
SCRIPT_URL
"/2018/05/30/bonjour-tout-le-monde/"
GEOIP_LONGITUDE
"-77.472801"
GEOIP_LATITUDE
"39.048100"
GEOIP_AREA_CODE
"703"
GEOIP_DMA_CODE
"511"
GEOIP_CITY
"Ashburn"
GEOIP_REGION
"VA"
GEOIP_COUNTRY_NAME
"United States"
GEOIP_COUNTRY_CODE
"US"
UNIQUE_ID
"XGz6jQoATi8AABHrBBoAAABJ"
REDIRECT_STATUS
"200"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1550645901.1877
REQUEST_TIME
1550645901
argv
[]
argc
0
0. Whoops\Handler\PrettyPageHandler