Error
Call to undefined method Syltaen\SingleController::popups() Error thrown with message "Call to undefined method Syltaen\SingleController::popups()" Stacktrace: #6 Error in /home/mrqijla/www/wp-content/themes/syltaen/Controllers/SingleController.php:20 #5 Syltaen\SingleController:__construct in /home/mrqijla/www/wp-content/themes/syltaen/app/Helpers/Route.php:38 #4 Syltaen\Route:respond in /home/mrqijla/www/wp-content/themes/syltaen/app/Helpers/Route.php:161 #3 Syltaen\Route:is in /home/mrqijla/www/wp-content/themes/syltaen/index.php:8 #2 include in /home/mrqijla/www/wp-includes/template-loader.php:106 #1 require_once in /home/mrqijla/www/wp-blog-header.php:19 #0 require in /home/mrqijla/www/index.php:17
Stack frames (7)
6
Error
/home/mrqijla/www/wp-content/themes/syltaen/Controllers/SingleController.php20
5
Syltaen\SingleController __construct
/home/mrqijla/www/wp-content/themes/syltaen/app/Helpers/Route.php38
4
Syltaen\Route respond
/home/mrqijla/www/wp-content/themes/syltaen/app/Helpers/Route.php161
3
Syltaen\Route is
/home/mrqijla/www/wp-content/themes/syltaen/index.php8
2
include
/home/mrqijla/www/wp-includes/template-loader.php106
1
require_once
/home/mrqijla/www/wp-blog-header.php19
0
require
/home/mrqijla/www/index.php17
<?php
 
namespace Syltaen;
 
class SingleController extends BaseController
{
 
    public $view = "single";
    public $model = false;
 
 
    /**
     * 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
        if ($this->model) $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", "syltaen"), __("/news", "syltaen"));
Arguments
  1. "Call to undefined method Syltaen\SingleController::popups()"
    
        // 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;
 
// ==================================================
// > SINGLES
// ==================================================
Route::is("single", "SingleController::render");
Route::is("tax", "TaxonomyController::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");
 
// ==================================================
// > PAGES
// ==================================================
Route::is(["home", "front_page"], "PageController::home");
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. "/home/mrqijla/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 __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/home/mrqijla/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 __DIR__ . '/wp-blog-header.php';
 
Arguments
  1. "/home/mrqijla/www/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
Key Value
syltaen_current_page
[]
syltaen_messages
[]
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/en/popups/discover-our-stock-of-aisi-904l-w-nr-1-4539-steel/"
USER
"mrqijla"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/en/popups/discover-our-stock-of-aisi-904l-w-nr-1-4539-steel/"
REMOTE_PORT
"32834"
SCRIPT_FILENAME
"/home/mrqijla/www/index.php"
SERVER_ADMIN
"postmaster@vmsteel.com"
DOCUMENT_ROOT
"/home/mrqijla/www"
REMOTE_ADDR
"44.197.198.214"
SERVER_PORT
"443"
SERVER_ADDR
"10.30.21.119"
SERVER_NAME
"vmsteel.com"
SERVER_SIGNATURE
""
HTTP_REMOTE_IP
"44.197.198.214"
HTTP_ACCEPT_ENCODING
"br,gzip"
HTTP_IF_MODIFIED_SINCE
"Sat, 13 Aug 2022 05:54:34 GMT"
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_OVHREQUEST_ID
"eb46024b341ef67f46700a61f51ebed0"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_FOR
"44.197.198.214"
HTTP_X_PREDICTOR
"1"
HTTP_HOST
"vmsteel.com"
ENVIRONMENT
"production"
CFG_CLUSTER
"cluster030"
HTTP_AUTHORIZATION
""
HTTPS
"on"
SCRIPT_URI
"https://vmsteel.com:443/en/popups/discover-our-stock-of-aisi-904l-w-nr-1-4539-steel/"
SCRIPT_URL
"/en/popups/discover-our-stock-of-aisi-904l-w-nr-1-4539-steel/"
GEOIP_LONGITUDE
"-77.490303"
GEOIP_LATITUDE
"39.046902"
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
"Y5Eaz6TNpEKnPLhDMzpIwQAAAAI"
REDIRECT_STATUS
"200"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1670453967.416
REQUEST_TIME
1670453967
argv
[]
argc
0
Key Value
USER
"mrqijla"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/en/popups/discover-our-stock-of-aisi-904l-w-nr-1-4539-steel/"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/en/popups/discover-our-stock-of-aisi-904l-w-nr-1-4539-steel/"
REMOTE_PORT
"32834"
SCRIPT_FILENAME
"/home/mrqijla/www/index.php"
SERVER_ADMIN
"postmaster@vmsteel.com"
DOCUMENT_ROOT
"/home/mrqijla/www"
REMOTE_ADDR
"44.197.198.214"
SERVER_PORT
"443"
SERVER_ADDR
"10.30.21.119"
SERVER_NAME
"vmsteel.com"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
HTTP_REMOTE_IP
"44.197.198.214"
HTTP_ACCEPT_ENCODING
"br,gzip"
HTTP_IF_MODIFIED_SINCE
"Sat, 13 Aug 2022 05:54:34 GMT"
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_OVHREQUEST_ID
"eb46024b341ef67f46700a61f51ebed0"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_FOR
"44.197.198.214"
HTTP_X_PREDICTOR
"1"
HTTP_HOST
"vmsteel.com"
ENVIRONMENT
"production"
CFG_CLUSTER
"cluster030"
HTTP_AUTHORIZATION
""
HTTPS
"on"
SCRIPT_URI
"https://vmsteel.com:443/en/popups/discover-our-stock-of-aisi-904l-w-nr-1-4539-steel/"
SCRIPT_URL
"/en/popups/discover-our-stock-of-aisi-904l-w-nr-1-4539-steel/"
GEOIP_LONGITUDE
"-77.490303"
GEOIP_LATITUDE
"39.046902"
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
"Y5Eaz6TNpEKnPLhDMzpIwQAAAAI"
REDIRECT_STATUS
"200"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1670453967.416
REQUEST_TIME
1670453967
argv
[]
argc
0
0. Whoops\Handler\PrettyPageHandler