Whoops \ Exception \ ErrorException (E_WARNING)
Undefined variable $pointData Whoops\Exception\ErrorException thrown with message "Undefined variable $pointData" Stacktrace: #8 Whoops\Exception\ErrorException in /home/domains/wiemczymoddycham.pl/wp/wp-content/themes/aviva/header.php:22 #7 Whoops\Run:handleError in /home/domains/wiemczymoddycham.pl/wp/wp-content/themes/aviva/header.php:22 #6 require_once in /home/domains/wiemczymoddycham.pl/wp/wp-includes/template.php:730 #5 load_template in /home/domains/wiemczymoddycham.pl/wp/wp-includes/template.php:676 #4 locate_template in /home/domains/wiemczymoddycham.pl/wp/wp-includes/general-template.php:48 #3 get_header in /home/domains/wiemczymoddycham.pl/wp/wp-content/themes/aviva/single-article.php:1 #2 include in /home/domains/wiemczymoddycham.pl/wp/wp-includes/template-loader.php:106 #1 require_once in /home/domains/wiemczymoddycham.pl/wp/wp-blog-header.php:19 #0 require in /home/domains/wiemczymoddycham.pl/wp/index.php:17
Stack frames (9):
8 Whoops\Exception\ErrorException
…/­header.php22
7 Whoops\Run handleError
…/­header.php22
6 require_once
/­home/­domains/­wiemczymoddycham.pl/­wp/­wp-includes/­template.php730
5 load_template
/­home/­domains/­wiemczymoddycham.pl/­wp/­wp-includes/­template.php676
4 locate_template
/­home/­domains/­wiemczymoddycham.pl/­wp/­wp-includes/­general-template.php48
3 get_header
…/­single-article.php1
2 include
/­home/­domains/­wiemczymoddycham.pl/­wp/­wp-includes/­template-loader.php106
1 require_once
/­home/­domains/­wiemczymoddycham.pl/­wp/­wp-blog-header.php19
0 require
/­home/­domains/­wiemczymoddycham.pl/­wp/­index.php17
/home/domains/wiemczymoddycham.pl/wp/wp-content/themes/aviva/header.php
            $data = json_decode($res->getBody()->getContents(), true);
            if (isset($data['data'])) {
                $_REQUEST['point'] = $pointData = $data['data'];
            }
        } catch (Exception $e) {
        }
        ?>
    <?php } ?>
 
    <?php if ($pointData) { ?>
        <title><?= $pointData['city'] ?> <?= $pointData['formatted_address'] ?> - <?php bloginfo('name'); ?></title>
        <meta name="description" content="<?php bloginfo('description'); ?>">
        <meta name="keywords"
              content="aviva, ubezpieczenia, ubezpieczenia na życie, smog, alert smogowy, zanieczyszczenie powietrza, zdrowie, życie, jakość powietrza, złe warunki">
        <meta property="og:url" content="<?php the_permalink(); ?><?= $pointData['slug'] ?>/"/>
        <meta property="og:type" content="website"/>
        <meta property="og:title"
              content="<?= $pointData['city'] ?> <?= $pointData['formatted_address'] ?> - <?php bloginfo('name'); ?>"/>
 
        <meta property="og:description" content="<?php bloginfo('description'); ?>"/>
/home/domains/wiemczymoddycham.pl/wp/wp-content/themes/aviva/header.php
            $data = json_decode($res->getBody()->getContents(), true);
            if (isset($data['data'])) {
                $_REQUEST['point'] = $pointData = $data['data'];
            }
        } catch (Exception $e) {
        }
        ?>
    <?php } ?>
 
    <?php if ($pointData) { ?>
        <title><?= $pointData['city'] ?> <?= $pointData['formatted_address'] ?> - <?php bloginfo('name'); ?></title>
        <meta name="description" content="<?php bloginfo('description'); ?>">
        <meta name="keywords"
              content="aviva, ubezpieczenia, ubezpieczenia na życie, smog, alert smogowy, zanieczyszczenie powietrza, zdrowie, życie, jakość powietrza, złe warunki">
        <meta property="og:url" content="<?php the_permalink(); ?><?= $pointData['slug'] ?>/"/>
        <meta property="og:type" content="website"/>
        <meta property="og:title"
              content="<?= $pointData['city'] ?> <?= $pointData['formatted_address'] ?> - <?php bloginfo('name'); ?>"/>
 
        <meta property="og:description" content="<?php bloginfo('description'); ?>"/>
/home/domains/wiemczymoddycham.pl/wp/wp-includes/template.php
		// 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;
	}
}
 
/home/domains/wiemczymoddycham.pl/wp/wp-includes/template.php
			$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, $args );
	}
 
	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
/home/domains/wiemczymoddycham.pl/wp/wp-includes/general-template.php
 
	$templates = array();
	$name      = (string) $name;
	if ( '' !== $name ) {
		$templates[] = "header-{$name}.php";
	}
 
	$templates[] = 'header.php';
 
	if ( ! locate_template( $templates, true, true, $args ) ) {
		return false;
	}
}
 
/**
 * Load footer template.
 *
 * Includes the footer template for a theme or if a name is specified then a
 * specialised footer will be included.
 *
/home/domains/wiemczymoddycham.pl/wp/wp-content/themes/aviva/single-article.php
<?php get_header(); ?>
 
<?php
$post_title = $post->post_title;
$post_subtitle = get_field('shortcopy');
$post_imgsrc = get_the_post_thumbnail_url($post->ID);
$post_content = wpautop($post->post_content);
$post_footer = get_field('post_footer');
 
// if last post - get link to first post
if (get_previous_post(false)) {
    $post_prev_url = get_permalink(get_previous_post(false)->ID);
    $post_prev_description = get_previous_post(false)->post_title;
} else {
    $latest_post = get_posts(array(
            'posts_per_page'   => 1,
            'post_type'        => 'article'
    ));
    $post_prev_url = get_permalink($latest_post[0]->ID);
    $post_prev_description = $latest_post[0]->post_title;
/home/domains/wiemczymoddycham.pl/wp/wp-includes/template-loader.php
	/**
	 * 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;
}
 
/home/domains/wiemczymoddycham.pl/wp/wp-blog-header.php
	$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';
 
}
 
/home/domains/wiemczymoddycham.pl/wp/index.php
 
/**
 * 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';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE nginx/1.14.2
REQUEST_URI /artykuly/szosty-artykul/
HOSTNAME wiemczymoddycham.pl
PHP_INI_DIR /usr/local/etc/php
HOME /home/domains
PHP_LDFLAGS -Wl,-O1 -pie
PHP_CFLAGS -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_VERSION 8.0.12
GPG_KEYS 1729F83938DA44E27BA0F4D3DBDB397470D12172 BFDDD28642824F8118EF77909B67A5C12229118F
PHP_CPPFLAGS -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_ASC_URL https://www.php.net/distributions/php-8.0.12.tar.xz.asc
PHP_URL https://www.php.net/distributions/php-8.0.12.tar.xz
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPS autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PWD /var/www/html
PHP_SHA256 a501017b3b0fd3023223ea25d98e87369b782f8a82310c4033d7ea6a989fea0a
USER domains
HTTP_CACHE_CONTROL no-cache, max-age=0
HTTP_HOST www.wiemczymoddycham.pl
HTTP_X_FORWARDED_FOR 54.144.55.253, 23.48.215.71
HTTP_VIA 1.1 v1-akamaitech.net(ghost) (AkamaiGHost), 1.1 akamai.net(ghost) (AkamaiGHost)
HTTP_AKAMAI_ORIGIN_HOP 2
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION keep-alive
HTTP_TE chunked;q=1.0
HTTP_X_AKAMAI_CONFIG_LOG_DETAIL true
HTTP_CLIENT_REP atk=\"\";dos=\"\";scn=\"\";scp=\"\"
HTTP_X_EDGECONNECT_SESSION_ID 6a2ad01761b0b5204914ce9
HTTP_PRAGMA no-cache
HTTP_REAL_CLIENT_IP 54.144.55.253
HTTP_IF_MODIFIED_SINCE Sun, 26 Sep 2021 19:56:05 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/)
SCRIPT_FILENAME /home/domains/wiemczymoddycham.pl/docroot/index.php
REDIRECT_STATUS 200
SERVER_NAME wiemczymoddycham.pl
SERVER_PORT 443
SERVER_ADDR 141.95.1.121
REMOTE_PORT 35044
REMOTE_ADDR 23.215.131.69
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /home/domains/wiemczymoddycham.pl/docroot
DOCUMENT_URI /index.php
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1638970657.1857
REQUEST_TIME 1638970657
empty
0. Whoops\Handler\PrettyPageHandler