Whoops! There was an error.
Error
Call to a member function date_i18n() on null
Error thrown with message "Call to a member function date_i18n() on null" Stacktrace: #7 Error in /opt/bitnami/apps/tedee-prod/htdocs/public/wp-content/themes/movecloser/partials/order-status/status-main.php:28 #6 require in /opt/bitnami/apps/tedee-prod/htdocs/public/wp-includes/template.php:724 #5 load_template in /opt/bitnami/apps/tedee-prod/htdocs/public/wp-includes/template.php:671 #4 locate_template in /opt/bitnami/apps/tedee-prod/htdocs/public/wp-includes/general-template.php:168 #3 get_template_part in /opt/bitnami/apps/tedee-prod/htdocs/public/wp-content/themes/movecloser/templates/template-order-status.php:21 #2 include in /opt/bitnami/apps/tedee-prod/htdocs/public/wp-includes/template-loader.php:78 #1 require_once in /opt/bitnami/apps/tedee-prod/htdocs/public/wp-blog-header.php:19 #0 require in /opt/bitnami/apps/tedee-prod/htdocs/public/index.php:17
Stack frames (8)
7
Error
…
/
partials
/
order-status
/
status-main.php
28
6
require
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
wp-includes
/
template.php
724
5
load_template
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
wp-includes
/
template.php
671
4
locate_template
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
wp-includes
/
general-template.php
168
3
get_template_part
…
/
templates
/
template-order-status.php
21
2
include
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
wp-includes
/
template-loader.php
78
1
require_once
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
wp-blog-header.php
19
0
require
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
index.php
17
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
wp-content
/
themes
/
movecloser
/
partials
/
order-status
/
status-main.php
 
//vd($order->get_formatted_order_total());
 
get_header(); ?>
 
<div class="order-status">
    <div class="grid-container">
 
        <div class="order-status__header-row">
            <div class="order-status__id">
                <h2 class="header--24-36"><?= pll__('status_id'); ?> <?= $data['id']; ?></h2>
            </div>
            <div class="order-status__status-info">
                <div class="order-status__status">
                    <h5 class="body--14-24"><?= pll__('status_order_status'); ?></h5>
                    <p class="header--24-36"><?= $data['status']; ?></p>
                </div>
                <div class="order-status__date">
                    <h5><?= pll__('status_order_date'); ?></h5>
                    <p class="header--24-36"><?= $data['date_created']->date_i18n(); ?></p>
                </div>
                <div class="order-status__payment-method">
                    <h5><?= pll__('status_payment_method'); ?></h5>
                    <p class="header--24-36"><?= $data['payment_method_title']; ?></p>
                </div>
            </div>
        </div>
 
        <div class="order-status__order-row">
            <div class="order-status__products">
                <?php foreach ($data['line_items'] as $product_item):
                    $product_data = $product_item->get_data(); ?>
 
                    <div class="product-item">
                        <h2 class="product-item__title header--24-36"><?= $product_data['name']; ?></h2>
                        <p class="product-item__description body--14-24">##description</p>
                        <p class="product-item__quantity body--14-24"><span><?= pll__('status_amount'); ?></span> x<?= $product_data['quantity']; ?></p>
                    </div>
 
                <?php endforeach; ?>
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
wp-includes
/
template.php
        /*
         * This use of extract() cannot be removed. There are many possible ways that
         * templates could depend on variables that it creates existing, and no way to
         * detect and deprecate it.
         *
         * Passing the EXTR_SKIP flag is the safest option, ensuring globals and
         * function variables cannot be overwritten.
         */
        // phpcs:ignore WordPress.PHP.DontExtract.extract_extract
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    if ( $require_once ) {
        require_once( $_template_file );
    } else {
        require( $_template_file );
    }
}
 
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
wp-includes
/
template.php
function locate_template( $template_names, $load = false, $require_once = true ) {
    $located = '';
    foreach ( (array) $template_names as $template_name ) {
        if ( ! $template_name ) {
            continue;
        }
        if ( file_exists( STYLESHEETPATH . '/' . $template_name ) ) {
            $located = STYLESHEETPATH . '/' . $template_name;
            break;
        } elseif ( file_exists( TEMPLATEPATH . '/' . $template_name ) ) {
            $located = TEMPLATEPATH . '/' . $template_name;
            break;
        } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
            $located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
            break;
        }
    }
 
    if ( $load && '' != $located ) {
        load_template( $located, $require_once );
    }
 
    return $located;
}
 
/**
 * Require the template file with WordPress environment.
 *
 * The globals are set up for the template file to ensure that the WordPress
 * environment is available from within the function. The query variables are
 * also available.
 *
 * @since 1.5.0
 *
 * @global array      $posts
 * @global WP_Post    $post
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query
 * @global WP_Rewrite $wp_rewrite
 * @global wpdb       $wpdb
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
wp-includes
/
general-template.php
    $templates = array();
    $name      = (string) $name;
    if ( '' !== $name ) {
        $templates[] = "{$slug}-{$name}.php";
    }
 
    $templates[] = "{$slug}.php";
 
    /**
     * Fires before a template part is loaded.
     *
     * @since 5.2.0
     *
     * @param string   $slug      The slug name for the generic template.
     * @param string   $name      The name of the specialized template.
     * @param string[] $templates Array of template files to search for, in order.
     */
    do_action( 'get_template_part', $slug, $name, $templates );
 
    locate_template( $templates, true, false );
}
 
/**
 * Display search form.
 *
 * Will first attempt to locate the searchform.php file in either the child or
 * the parent, then load it. If it doesn't exist, then the default search form
 * will be displayed. The default search form is HTML, which will be displayed.
 * There is a filter applied to the search form HTML in order to edit or replace
 * it. The filter is {@see 'get_search_form'}.
 *
 * This function is primarily used by themes which want to hardcode the search
 * form into the sidebar and also by the search widget in WordPress.
 *
 * There is also an action that is called whenever the function is run called,
 * {@see 'pre_get_search_form'}. This can be useful for outputting JavaScript that the
 * search relies on or various formatting that applies to the beginning of the
 * search. To give a few examples of what it can be used for.
 *
 * @since 2.7.0
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
wp-content
/
themes
/
movecloser
/
templates
/
template-order-status.php
 
/*
 * Template Name: Woocommerce - Order Status
 */
 
use APP\Classes\OrderStatusFront;
 
$status = new OrderStatusFront();
 
$order = $_GET['order'] ?? null;
$key = $_GET['key'] ?? null;
 
if (!$status->checkOrderKey($order, $key)){
    get_template_part('partials/order-status/status', 'error');
    return;
}
 
$order = new WC_Order( $order );
set_query_var('order', $order);
get_template_part('partials/order-status/status', 'main');
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
wp-includes
/
template-loader.php
    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;
 
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
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( dirname( __FILE__ ) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
/
opt
/
bitnami
/
apps
/
tedee-prod
/
htdocs
/
public
/
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-blog-header.php' );
 

Environment & details:

empty
empty
empty
Key Value
wmc_current_currency EUR
wmc_current_currency_old EUR
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /pl/order-review-page/
PHP_PATH /opt/bitnami/php/bin/php
FREETDSLOCALES /opt/bitnami/common/etc/locales.conf
FREETDSCONF /opt/bitnami/common/etc/freetds.conf
OPENSSL_ENGINES /opt/bitnami/common/lib/engines
OPENSSL_CONF /opt/bitnami/common/openssl/openssl.cnf
SSL_CERT_FILE /opt/bitnami/common/openssl/certs/curl-ca-bundle.crt
CURL_CA_BUNDLE /opt/bitnami/common/openssl/certs/curl-ca-bundle.crt
LDAPCONF /opt/bitnami/common/etc/openldap/ldap.conf
GS_LIB /opt/bitnami/common/share/ghostscript/fonts
MAGICK_CODER_MODULE_PATH /opt/bitnami/common/lib/ImageMagick-6.9.8/modules-Q16/coders
MAGICK_CONFIGURE_PATH /opt/bitnami/common/lib/ImageMagick-6.9.8/config-Q16:/opt/bitnami/common/
MAGICK_HOME /opt/bitnami/common
PATH /opt/bitnami/frameworks/laravel/app/Console:/opt/bitnami/frameworks/cakephp/bin:/opt/bitnami/frameworks/codeigniter/bin:/opt/bitnami/frameworks/symfony/bin:/opt/bitnami/frameworks/zendframework/app/Console:/opt/bitnami/git/bin:/opt/bitnami/varnish/bin:/opt/bitnami/sqlite/bin:/opt/bitnami/php/bin:/opt/bitnami/mysql/bin:/opt/bitnami/letsencrypt/:/opt/bitnami/apache2/bin:/opt/bitnami/common/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
USER daemon
HOME /usr/sbin
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /pl/order-review-page/
REMOTE_PORT 28708
SCRIPT_FILENAME /opt/bitnami/apps/tedee-prod/htdocs/public/index.php
SERVER_ADMIN [email protected]
CONTEXT_DOCUMENT_ROOT /opt/bitnami/apps/tedee-prod/htdocs/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /opt/bitnami/apps/tedee-prod/htdocs/public
REMOTE_ADDR 162.158.78.152
SERVER_PORT 80
SERVER_ADDR 10.132.0.3
SERVER_NAME tedee.com
SERVER_SIGNATURE
LD_LIBRARY_PATH /opt/bitnami/sqlite/lib:/opt/bitnami/mysql/lib:/opt/bitnami/apache2/lib:/opt/bitnami/common/lib:/opt/bitnami/sqlite/lib:/opt/bitnami/mysql/lib:/opt/bitnami/apache2/lib:/opt/bitnami/common/lib:/opt/bitnami/git/lib:/opt/bitnami/varnish/lib:/opt/bitnami/varnish/lib/varnish:/opt/bitnami/varnish/lib/varnish/vmods:/opt/bitnami/sqlite/lib:/opt/bitnami/mysql/lib:/opt/bitnami/apache2/lib:/opt/bitnami/common/lib:/opt/bitnami/common/lib64
HTTP_CF_REQUEST_ID 08950450ba0000cf60ef224000000001
HTTP_CDN_LOOP cloudflare
HTTP_CF_CONNECTING_IP 3.232.129.123
HTTP_IF_MODIFIED_SINCE Fri, 27 Nov 2020 00:50:30 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_CF_VISITOR {\"scheme\":\"https\"}
HTTP_X_FORWARDED_PROTO https
HTTP_CF_RAY 629b6ffacd1ecf60-IAD
HTTP_X_FORWARDED_FOR 3.232.129.123
HTTP_CF_IPCOUNTRY US
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION Keep-Alive
HTTP_HOST tedee.com
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1614696626.602
REQUEST_TIME 1614696626
HTTPS on
empty
0. Whoops\Handler\PrettyPageHandler