Whoops! There was an error.
Error
Call to a member function have_posts() on null Error thrown with message "Call to a member function have_posts() on null" Stacktrace: #3 Error in /var/www/vhosts/erovaenergy.com/wp-content/themes/erova2020/page.php:51 #2 include in /var/www/vhosts/erovaenergy.com/wp-includes/template-loader.php:106 #1 require_once in /var/www/vhosts/erovaenergy.com/wp-blog-header.php:19 #0 require in /var/www/vhosts/erovaenergy.com/index.php:17
Stack frames (4)
3
Error
/page.php51
2
include
/var/www/vhosts/erovaenergy.com/wp-includes/template-loader.php106
1
require_once
/var/www/vhosts/erovaenergy.com/wp-blog-header.php19
0
require
/var/www/vhosts/erovaenergy.com/index.php17
/var/www/vhosts/erovaenergy.com/wp-content/themes/erova2020/page.php
          
          
          <?php
              
            global $post;
            
            $current_post = $post;
            
            if ( $post->post_parent ) { 
                 
                $siblings = new WP_Query( array(
                    'post_type' => 'page',
                    'order' => 'ASC',
                    'post_parent' => $post->post_parent,
                    'post__not_in'   => array( $post->ID )
                ) );
                
            }
        
            if ( $siblings->have_posts() ) :
        ?>
                
                <?php while ( $siblings->have_posts() ) : $siblings->the_post(); ?>
                
                <div class="cell small-12 medium-6">
                
                    <a href="<?php the_permalink()?>" class="card--product">
                        
                        <div class="card__inner">
                        
                            <span class="card__title"><?php the_title(); ?></span>
                        
                        </div>
                        
                    </a>
                    
                </div>
 
                
                <?php endwhile; wp_reset_postdata(); ?>
Arguments
  1. "Call to a member function have_posts() on null"
    
/var/www/vhosts/erovaenergy.com/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;
}
 
/var/www/vhosts/erovaenergy.com/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/vhosts/erovaenergy.com/wp-includes/template-loader.php"
    
/var/www/vhosts/erovaenergy.com/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 __DIR__ . '/wp-blog-header.php';
 
Arguments
  1. "/var/www/vhosts/erovaenergy.com/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.46 () OpenSSL/1.0.2k-fips"
REQUEST_URI
"/about-us/"
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
"/about-us/"
REMOTE_PORT
"34430"
SCRIPT_FILENAME
"/var/www/vhosts/erovaenergy.com/index.php"
SERVER_ADMIN
"root@localhost"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/erovaenergy.com"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/var/www/vhosts/erovaenergy.com"
REMOTE_ADDR
"34.237.52.11"
SERVER_PORT
"443"
SERVER_ADDR
"172.31.23.107"
SERVER_NAME
"erovaenergy.com"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"erovaenergy.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_TLS_SNI
"erovaenergy.com"
HTTPS
"on"
HTTP_AUTHORIZATION
""
UNIQUE_ID
"YJ@0Srg435MuOwqZm08ebAAAAAo"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"erovaenergy.com"
REDIRECT_HTTPS
"on"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_UNIQUE_ID
"YJ@0Srg435MuOwqZm08ebAAAAAo"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1621079114.4595
REQUEST_TIME
1621079114
empty
0. Whoops\Handler\PrettyPageHandler