Buchung abbrechen
wird geladen... X Spieler Spieler Einheit Einheiten
loading...
Für wieviele Spieler möchtest du buchen?
Fill dynamically
Pro Training
1 Spieler
X
Wie lange möchtest du spielen?
Fill dynamically
#1 | Max. #2 Spieler pro Einheit
1 Einheit
X
Wann möchtest du spielen?
Wann möchtest du spielen?
Fill dynamically
Month Name
loading...
XX NN.NN.
XX NN.NN.
NN:NN-NN:NN
Whoops! There was an error.
Exception
Could not find parameter 'skl_product_slot_type' Exception thrown with message "Could not find parameter 'skl_product_slot_type'" Stacktrace: #6 Exception in /var/www/html/skillslab/content/themes/skillslab/includes/layouts/booking.php:9 #5 include in /var/www/html/skillslab/content/themes/skillslab/class/src/Modules/Builder.php:51 #4 Probots\Modules\Builder:getModuleHtml in /var/www/html/skillslab/content/themes/skillslab/class/src/Modules/Builder.php:27 #3 Probots\Modules\Builder:build in /var/www/html/skillslab/content/themes/skillslab/page.php:11 #2 include in /var/www/html/skillslab/wp/wp-includes/template-loader.php:106 #1 require_once in /var/www/html/skillslab/wp/wp-blog-header.php:19 #0 require in /var/www/html/skillslab/index.php:17
Stack frames (7)
6
Exception
/var/www/html/skillslab/content/themes/skillslab/includes/layouts/booking.php9
5
include
/var/www/html/skillslab/content/themes/skillslab/class/src/Modules/Builder.php51
4
Probots\Modules\Builder getModuleHtml
/var/www/html/skillslab/content/themes/skillslab/class/src/Modules/Builder.php27
3
Probots\Modules\Builder build
/var/www/html/skillslab/content/themes/skillslab/page.php11
2
include
/var/www/html/skillslab/wp/wp-includes/template-loader.php106
1
require_once
/var/www/html/skillslab/wp/wp-blog-header.php19
0
require
/var/www/html/skillslab/index.php17
/var/www/html/skillslab/content/themes/skillslab/includes/layouts/booking.php
<h1 style="background:red; color:yellow; margin-top:40px;">Buchungsplattform</h1>
 
<?php
$productId = $_GET['product_id'];
$product = wc_get_product($productId);
$slotTypeName = get_post_meta($productId, 'skl_product_slot_type', true);
 
if (!$slotTypeName) {
    throw new \Exception("Could not find parameter 'skl_product_slot_type'");
}
 
$slotType = \Skillslab\Models\SlotType::getByName($slotTypeName);
 
if (!$slotType) {
    throw new \Exception(sprintf('Invalid Slot Type %s', $slotTypeName));
}
 
$slots = $slotType->getSlots();
?>
 
 
 
<h2>Product: <?= $product->get_name() ?></h2>
<?php $cartController = new \Skillslab\Shop\CartController();
// $cartController->addToCart($productId, 3, null);
// $cartController->removeFromCart('db8e1af0cb3aca1ae2d0018624204529');
?>
 
 
 
<h3>Slots für Typ <?= $slotType->get('name') ?></h3>
 
<?php foreach ($slots as $slot): ?>
 
  <h4>SLOT: <?= $slot
    ->get('startDate')
    ->format('d.m.Y H:i:s') ?> - <?= $slot
   ->get('endDate')
   ->format('d.m.Y H:i:s') ?></h4>
 
Arguments
  1. "Could not find parameter 'skl_product_slot_type'"
    
/var/www/html/skillslab/content/themes/skillslab/class/src/Modules/Builder.php
            print $content;
 
 
 
            wp_reset_postdata();
        }
    }
 
    private function getModuleHtml($layout, $variables)
    {
        $fileName = sprintf('%s.php', $layout);
        $filePath = sprintf('%s/%s/%s', get_template_directory(), $this->layoutDir, $fileName);
 
        if (!file_exists($filePath)) {
            print 'MODULE LAYOUT NOT FOUND IN: ' . $filePath;
            return;
        }
        extract($variables);
 
        include($filePath);
    }
 
    private function getDebugHtml($layout, $variables)
    {
        if (!isset($_GET['debug-modules'])) {
            return;
        }
        printf("<div>");
        print '<pre>';
        print_r($variables);
        print '</pre>';
        printf("</div>");
    }
 
    private function getModules()
    {
        return \get_field($this->acfModulesFieldKey) ?: [];
    }
 
    private function getLayoutName($module)
/var/www/html/skillslab/content/themes/skillslab/class/src/Modules/Builder.php
    private $moduleClassName = 'module';
    private $layoutDir = './';
 
    public function build()
    {
        $modules = $this->getModules();
 
        foreach ($modules as $module) {
            $layout = $this->getLayoutName($module);
            $variables = $module;
            unset($variables[$this->acfLayoutFieldKey]);
            $variables['layout'] = $layout;
 
            $baseClassName = $this->moduleClassName;
            $layoutClassName = $baseClassName . "--" . $layout;
 
            ob_start();
            printf("<div class=\"%s %s\">\n", $baseClassName, $layoutClassName);
            $this->getDebugHtml($layout, $variables);
            $this->getModuleHtml($layout, $variables);
 
            print("</div>\n");
            $content = ob_get_clean();
 
            print $content;
 
 
 
            wp_reset_postdata();
        }
    }
 
    private function getModuleHtml($layout, $variables)
    {
        $fileName = sprintf('%s.php', $layout);
        $filePath = sprintf('%s/%s/%s', get_template_directory(), $this->layoutDir, $fileName);
 
        if (!file_exists($filePath)) {
            print 'MODULE LAYOUT NOT FOUND IN: ' . $filePath;
            return;
Arguments
  1. "booking"
    
  2. array:1 [
      "layout" => "booking"
    ]
    
/var/www/html/skillslab/content/themes/skillslab/page.php
<?php
get_header();
?>
    <?php
    $Modules = new \Probots\Modules\Builder;
    $Modules
        ->setModulesFieldKey('modules')
        ->setLayoutFieldKey('acf_fc_layout')
        ->setModuleClassName('layout')
        ->setLayoutSubDirectory('includes/layouts');
    $Modules->build();
    ?>
<?php
get_footer();
 
/var/www/html/skillslab/wp/wp-includes/template-loader.php
            }
 
            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/html/skillslab/content/themes/skillslab/page.php"
    
/var/www/html/skillslab/wp/wp-blog-header.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/html/skillslab/wp/wp-includes/template-loader.php"
    
/var/www/html/skillslab/index.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/wp-blog-header.php' );
Arguments
  1. "/var/www/html/skillslab/wp/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.37 (centos) OpenSSL/1.1.1c"
REQUEST_URI
"/buchung/"
USER
"apache"
HOME
"/usr/share/httpd"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/buchung/"
REMOTE_PORT
"56900"
SCRIPT_FILENAME
"/var/www/html/skillslab/index.php"
SERVER_ADMIN
"root@localhost"
CONTEXT_DOCUMENT_ROOT
"/var/www/html/skillslab"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/var/www/html/skillslab"
REMOTE_ADDR
"3.81.28.10"
SERVER_PORT
"443"
SERVER_ADDR
"193.46.209.70"
SERVER_NAME
"skills-lab.com"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"skills-lab.com"
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/)"
proxy-nokeepalive
"1"
SSL_SESSION_RESUMED
"Resumed"
SSL_SESSION_ID
"ce2a5d4b09c6a676d36f07807a261a1741fc7b0e68e7281aeea665f1b49299e8"
SSL_SERVER_A_SIG
"sha256WithRSAEncryption"
SSL_SERVER_A_KEY
"rsaEncryption"
SSL_SERVER_I_DN
"CN=COMODO RSA Domain Validation Secure Server CA,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB"
SSL_SERVER_S_DN
"CN=www.skills-lab.com,OU=COMODO SSL,OU=Domain Control Validated"
SSL_SERVER_V_END
"Sep 27 23:59:59 2020 GMT"
SSL_SERVER_V_START
"Sep 28 00:00:00 2017 GMT"
SSL_SERVER_M_SERIAL
"8EEA5F51E65031129373717E61534FBE"
SSL_SERVER_M_VERSION
"3"
SSL_CLIENT_VERIFY
"NONE"
SSL_CIPHER_ALGKEYSIZE
"128"
SSL_CIPHER_USEKEYSIZE
"128"
SSL_CIPHER_EXPORT
"false"
SSL_CIPHER
"ECDHE-RSA-AES128-GCM-SHA256"
SSL_COMPRESS_METHOD
"NULL"
SSL_SECURE_RENEG
"true"
SSL_PROTOCOL
"TLSv1.2"
SSL_VERSION_LIBRARY
"OpenSSL/1.1.1c"
SSL_VERSION_INTERFACE
"mod_ssl/2.4.37"
SSL_SERVER_SAN_DNS_1
"skills-lab.com"
SSL_SERVER_SAN_DNS_0
"www.skills-lab.com"
SSL_SERVER_I_DN_CN
"COMODO RSA Domain Validation Secure Server CA"
SSL_SERVER_I_DN_O
"COMODO CA Limited"
SSL_SERVER_I_DN_L
"Salford"
SSL_SERVER_I_DN_ST
"Greater Manchester"
SSL_SERVER_I_DN_C
"GB"
SSL_SERVER_S_DN_CN
"www.skills-lab.com"
SSL_SERVER_S_DN_OU_1
"COMODO SSL"
SSL_SERVER_S_DN_OU
"Domain Control Validated"
SSL_TLS_SNI
"skills-lab.com"
HTTPS
"on"
UNIQUE_ID
"XwHhTzRxunSsGqiNS2qAVgAAAIw"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"skills-lab.com"
REDIRECT_HTTPS
"on"
REDIRECT_UNIQUE_ID
"XwHhTzRxunSsGqiNS2qAVgAAAIw"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1593958735.0848
REQUEST_TIME
1593958735
ENVIRONMENT
"production"
DEBUG
"false"
SSL
"true"
LIVE_RELOAD
"false"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_NAME
"skills_lab"
DB_USER
"skillslab"
DB_PASSWORD
"XfrYhrAZef1"
WP_THEME_NAME
"skillslab"
WP_TABLE_PREFIX
"wp_"
WP_MEDIA_URL
"https://skills-lab.com/media"
SMTP_AUTH
"false"
SMTP_SECURE
"false"
SMTP_HOST
"postoffice.anton-paar.com"
SMTP_PORT
"25"
SMTP_USER
"false"
SMTP_PASS
"false"
SMTP_FROM_EMAIL
"noreply@skills-lab.com"
SMTP_FROM_NAME
"skills.lab"
TAGMANAGER
"GTM-PTKGWJR"
BUGHERD
"null"
GOOGLE_MAPS
"null"
Key Value
ENVIRONMENT
"production"
DEBUG
"false"
SSL
"true"
LIVE_RELOAD
"false"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_NAME
"skills_lab"
DB_USER
"skillslab"
DB_PASSWORD
"XfrYhrAZef1"
WP_THEME_NAME
"skillslab"
WP_TABLE_PREFIX
"wp_"
WP_MEDIA_URL
"https://skills-lab.com/media"
SMTP_AUTH
"false"
SMTP_SECURE
"false"
SMTP_HOST
"postoffice.anton-paar.com"
SMTP_PORT
"25"
SMTP_USER
"false"
SMTP_PASS
"false"
SMTP_FROM_EMAIL
"noreply@skills-lab.com"
SMTP_FROM_NAME
"skills.lab"
TAGMANAGER
"GTM-PTKGWJR"
BUGHERD
"null"
GOOGLE_MAPS
"null"
0. Whoops\Handler\PrettyPageHandler