Error
Call to undefined method Syltaen\SingleController::post() Error thrown with message "Call to undefined method Syltaen\SingleController::post()" Stacktrace: #6 Error in /home/memorybogt/musicislive/wp-content/themes/syltaen/Controllers/SingleController.php:25 #5 Syltaen\SingleController:__construct in /home/memorybogt/musicislive/wp-content/themes/syltaen/app/Helpers/Route.php:38 #4 Syltaen\Route:respond in /home/memorybogt/musicislive/wp-content/themes/syltaen/app/Helpers/Route.php:161 #3 Syltaen\Route:is in /home/memorybogt/musicislive/wp-content/themes/syltaen/index.php:8 #2 include in /home/memorybogt/musicislive/wp-includes/template-loader.php:77 #1 require_once in /home/memorybogt/musicislive/wp-blog-header.php:19 #0 require in /home/memorybogt/musicislive/index.php:17
Stack frames (7)
6
Error
/
home
/
memorybogt
/
musicislive
/
wp-content
/
themes
/
syltaen
/
Controllers
/
SingleController.php
25
5
Syltaen
\
SingleController
__construct
/
home
/
memorybogt
/
musicislive
/
wp-content
/
themes
/
syltaen
/
app
/
Helpers
/
Route.php
38
4
Syltaen
\
Route
respond
/
home
/
memorybogt
/
musicislive
/
wp-content
/
themes
/
syltaen
/
app
/
Helpers
/
Route.php
161
3
Syltaen
\
Route
is
/
home
/
memorybogt
/
musicislive
/
wp-content
/
themes
/
syltaen
/
index.php
8
2
include
/
home
/
memorybogt
/
musicislive
/
wp-includes
/
template-loader.php
77
1
require_once
/
home
/
memorybogt
/
musicislive
/
wp-blog-header.php
19
0
require
/
home
/
memorybogt
/
musicislive
/
index.php
17
{
 
    protected $view = "single";
 
    /**
     * Page used for the post type archive
     *
     * @var WP_Post
     */
    protected $archive;
 
    /**
     * 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";
 
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", "PageController::search", ["search" => get_search_query(false)]);
 
// ==================================================
// > API
// ==================================================
Route::custom("api", "ApiController", ["method", "target", "mode"]);
 
// ==================================================
// > NINJA FORM PREVIEW
// ==================================================
Route::query("nf_preview_form", "PageController::ninjaFormPreview");
 
// ==================================================
// > HOMEPAGE
// ==================================================
Route::is(["home", "front_page"], "PageController::home");
 
// ==================================================
// > PAGES
// ==================================================
Route::is("page", "PageController::page");
 
// ==================================================
// > 404
// ==================================================
Route::is("404", "PageController::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/memorybogt/musicislive/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/memorybogt/musicislive/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/memorybogt/musicislive/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
Key Value
syltaen_current_page
[]
syltaen_messages
[]
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/2018/08/03/quand-la-musique-est-bonne/"
USER
"memorybogt"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/2018/08/03/quand-la-musique-est-bonne/"
REMOTE_PORT
"7684"
SCRIPT_FILENAME
"/home/memorybogt/musicislive/index.php"
SERVER_ADMIN
"postmaster@musicislive.be"
DOCUMENT_ROOT
"/home/memorybogt/musicislive"
REMOTE_ADDR
"35.175.174.157"
SERVER_PORT
"443"
SERVER_ADDR
"147.135.253.10"
SERVER_NAME
"musicislive.be"
SERVER_SIGNATURE
""
HTTP_REMOTE_IP
"35.175.174.157"
HTTP_FORWARDED
"for=51.255.77.216; proto=https; host=musicislive.be"
HTTP_X_REMOTE_PROTO
"https"
HTTP_X_REMOTE_IP
"51.255.77.216"
HTTP_X_REMOTE_PORT
"55654"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_PORT
"443"
HTTP_ACCEPT_ENCODING
"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_X_FORWARDED_FOR
"35.175.174.157"
HTTP_X_PREDICTOR
"1"
HTTP_HOST
"musicislive.be"
ENVIRONMENT
"production"
CFG_CLUSTER
"cluster021"
HTTPS
"on"
SCRIPT_URI
"https://musicislive.be:443/2018/08/03/quand-la-musique-est-bonne/"
SCRIPT_URL
"/2018/08/03/quand-la-musique-est-bonne/"
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
"XRFIrTmcwEmCLTlNF-2-TwAAAXo"
REDIRECT_STATUS
"200"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
"1561413805.1341"
REQUEST_TIME
"1561413805"
argv
[]
argc
"0"
Key Value
USER
"memorybogt"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/2018/08/03/quand-la-musique-est-bonne/"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/2018/08/03/quand-la-musique-est-bonne/"
REMOTE_PORT
"7684"
SCRIPT_FILENAME
"/home/memorybogt/musicislive/index.php"
SERVER_ADMIN
"postmaster@musicislive.be"
DOCUMENT_ROOT
"/home/memorybogt/musicislive"
REMOTE_ADDR
"35.175.174.157"
SERVER_PORT
"443"
SERVER_ADDR
"147.135.253.10"
SERVER_NAME
"musicislive.be"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
HTTP_REMOTE_IP
"35.175.174.157"
HTTP_FORWARDED
"for=51.255.77.216; proto=https; host=musicislive.be"
HTTP_X_REMOTE_PROTO
"https"
HTTP_X_REMOTE_IP
"51.255.77.216"
HTTP_X_REMOTE_PORT
"55654"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_PORT
"443"
HTTP_ACCEPT_ENCODING
"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_X_FORWARDED_FOR
"35.175.174.157"
HTTP_X_PREDICTOR
"1"
HTTP_HOST
"musicislive.be"
ENVIRONMENT
"production"
CFG_CLUSTER
"cluster021"
HTTPS
"on"
SCRIPT_URI
"https://musicislive.be:443/2018/08/03/quand-la-musique-est-bonne/"
SCRIPT_URL
"/2018/08/03/quand-la-musique-est-bonne/"
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
"XRFIrTmcwEmCLTlNF-2-TwAAAXo"
REDIRECT_STATUS
"200"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1561413805.1341
REQUEST_TIME
1561413805
argv
[]
argc
0
0. Whoops\Handler\PrettyPageHandler