if ($container->has(General::class)) { $data[ 'general' ] = $container->get(General::class) ->getData(); $data[ 'configuration' ] = $container->get(Configuration::class) ->getData(); $data[ 'complectation' ] = $container->get(Complectation::class) ->getData(); $data[ 'params' ] = $container->get(Parameter::class) ->getData(); $data[ 'im_methods' ] = $container->get(ImplementationMethods::class) ->getData(); $data[ 'maintenance' ] = $container->get(Maintenance::class) ->getData(); $data[ 'relations' ] = $container->get(Relations::class) ->getData(); // Modify breadcrumbs $breadcrumbs = bcn_display(true); $product_cat = get_the_terms( get_the_ID(), 'category-product' )[0]; $additional_pages = get_field('breadcrumbs_additional', 'term_' . $product_cat->term_id ); if( $additional_pages ){ $exploder = '<div class="breadcrumbs__item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">'; $breadcrumbs_html = ''; foreach( $additional_pages as $page ){ $breadcrumbs_html .= '<div class="breadcrumbs__item" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem"><a class="breadcrumbs__link p-breadcrumbs" href="'. get_the_permalink( $page->ID ) .'" itemprop="item"><span itemprop="name">'. $page->post_title .'</span></a><meta itemprop="position" content="2"></div>'; } //var_dump( $product_cat ); $breadcrumbs_arr = explode( $exploder, $breadcrumbs ); $breadcrumbs_arr[1] .= $breadcrumbs_html; // $breadcrumbs;
"Trying to access array offset on false"
if ($container->has(General::class)) { $data[ 'general' ] = $container->get(General::class) ->getData(); $data[ 'configuration' ] = $container->get(Configuration::class) ->getData(); $data[ 'complectation' ] = $container->get(Complectation::class) ->getData(); $data[ 'params' ] = $container->get(Parameter::class) ->getData(); $data[ 'im_methods' ] = $container->get(ImplementationMethods::class) ->getData(); $data[ 'maintenance' ] = $container->get(Maintenance::class) ->getData(); $data[ 'relations' ] = $container->get(Relations::class) ->getData(); // Modify breadcrumbs $breadcrumbs = bcn_display(true); $product_cat = get_the_terms( get_the_ID(), 'category-product' )[0]; $additional_pages = get_field('breadcrumbs_additional', 'term_' . $product_cat->term_id ); if( $additional_pages ){ $exploder = '<div class="breadcrumbs__item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">'; $breadcrumbs_html = ''; foreach( $additional_pages as $page ){ $breadcrumbs_html .= '<div class="breadcrumbs__item" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem"><a class="breadcrumbs__link p-breadcrumbs" href="'. get_the_permalink( $page->ID ) .'" itemprop="item"><span itemprop="name">'. $page->post_title .'</span></a><meta itemprop="position" content="2"></div>'; } //var_dump( $product_cat ); $breadcrumbs_arr = explode( $exploder, $breadcrumbs ); $breadcrumbs_arr[1] .= $breadcrumbs_html; // $breadcrumbs;
2
"Trying to access array offset on false"
"/home/ekonow/ekonow.ru/www/wp-content/themes/tutmee/single-tovar.php"
38
} 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; }
"/home/ekonow/ekonow.ru/www/wp-content/themes/tutmee/single-tovar.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'; }
"/home/ekonow/ekonow.ru/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';
"/home/ekonow/ekonow.ru/www/wp-blog-header.php"
Key | Value |
pvc_visits | array:1 [ 0 => "1758034663b2849" ] |
Key | Value |
SERVER_SOFTWARE | "Apache/2.4.54 (Debian)"
|
REQUEST_URI | "/products/ultrazvukovoy-uvlazhnitel-vozduha-gt-1-0/"
|
PHP_FCGI_MAX_REQUESTS | "3000"
|
PHPRC | "/home/ekonow/etc/php"
|
PWD | "/usr/lib/cgi-bin"
|
SHLVL | "0"
|
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
ORIG_SCRIPT_NAME | "/cgi-wrapper/php"
|
ORIG_PATH_TRANSLATED | "/home/ekonow/ekonow.ru/www/index.php"
|
ORIG_PATH_INFO | "/index.php"
|
ORIG_SCRIPT_FILENAME | "/usr/lib/cgi-bin/php"
|
CONTENT_LENGTH | "0"
|
SCRIPT_NAME | "/index.php"
|
QUERY_STRING | "" |
REQUEST_METHOD | "GET"
|
SERVER_PROTOCOL | "HTTP/1.0"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
REDIRECT_URL | "/index.php"
|
REMOTE_PORT | "51168"
|
SCRIPT_FILENAME | "/home/ekonow/ekonow.ru/www/index.php"
|
SERVER_ADMIN | "support@netangels.ru"
|
CONTEXT_DOCUMENT_ROOT | "/usr/lib/cgi-bin/"
|
CONTEXT_PREFIX | "/cgi-wrapper/"
|
REQUEST_SCHEME | "http"
|
DOCUMENT_ROOT | "/home/ekonow/ekonow.ru/www/"
|
REMOTE_ADDR | "216.73.216.121"
|
SERVER_PORT | "80"
|
SERVER_ADDR | "127.0.0.1"
|
SERVER_NAME | "ekonow.ru"
|
SERVER_SIGNATURE | "<address>Apache/2.4.54 (Debian) Server at ekonow.ru Port 80</address>\n"
|
HTTP_COOKIE | "pvc_visits[0]=1758034663b2849"
|
HTTP_REFERER | "https://ekonow.ru/products/ultrazvukovoy-uvlazhnitel-vozduha-gt-1-0"
|
HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
HTTP_ACCEPT | "*/*"
|
HTTP_CONNECTION | "close"
|
HTTP_X_FORWARDED_PROTO | "https"
|
HTTP_X_REAL_IP | "216.73.216.121"
|
HTTP_HOST | "ekonow.ru"
|
HTTPS | "on"
|
REDIRECT_STATUS | "200"
|
REDIRECT_HANDLER | "application/x-httpd-php"
|
REDIRECT_HTTP_AUTHORIZATION | "" |
REDIRECT_HTTPS | "on"
|
REDIRECT_REDIRECT_STATUS | "200"
|
REDIRECT_REDIRECT_HTTP_AUTHORIZATION | "" |
REDIRECT_REDIRECT_HTTPS | "on"
|
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1757948264.0019
|
REQUEST_TIME | 1757948264
|
argv | [] |
argc | 0
|
Key | Value |
PHP_FCGI_MAX_REQUESTS | "3000"
|
PHPRC | "/home/ekonow/etc/php"
|
PWD | "/usr/lib/cgi-bin"
|
SHLVL | "0"
|
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
ORIG_SCRIPT_NAME | "/cgi-wrapper/php"
|
ORIG_PATH_TRANSLATED | "/home/ekonow/ekonow.ru/www/index.php"
|
ORIG_PATH_INFO | "/index.php"
|
ORIG_SCRIPT_FILENAME | "/usr/lib/cgi-bin/php"
|
CONTENT_LENGTH | "0"
|
SCRIPT_NAME | "/index.php"
|
REQUEST_URI | "/products/ultrazvukovoy-uvlazhnitel-vozduha-gt-1-0/"
|
QUERY_STRING | "" |
REQUEST_METHOD | "GET"
|
SERVER_PROTOCOL | "HTTP/1.0"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
REDIRECT_URL | "/index.php"
|
REMOTE_PORT | "51168"
|
SCRIPT_FILENAME | "/home/ekonow/ekonow.ru/www/index.php"
|
SERVER_ADMIN | "support@netangels.ru"
|
CONTEXT_DOCUMENT_ROOT | "/usr/lib/cgi-bin/"
|
CONTEXT_PREFIX | "/cgi-wrapper/"
|
REQUEST_SCHEME | "http"
|
DOCUMENT_ROOT | "/home/ekonow/ekonow.ru/www/"
|
REMOTE_ADDR | "216.73.216.121"
|
SERVER_PORT | "80"
|
SERVER_ADDR | "127.0.0.1"
|
SERVER_NAME | "ekonow.ru"
|
SERVER_SOFTWARE | "Apache/2.4.54 (Debian)"
|
SERVER_SIGNATURE | "<address>Apache/2.4.54 (Debian) Server at ekonow.ru Port 80</address>\n"
|
HTTP_COOKIE | "pvc_visits[0]=1758034663b2849"
|
HTTP_REFERER | "https://ekonow.ru/products/ultrazvukovoy-uvlazhnitel-vozduha-gt-1-0"
|
HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
HTTP_ACCEPT | "*/*"
|
HTTP_CONNECTION | "close"
|
HTTP_X_FORWARDED_PROTO | "https"
|
HTTP_X_REAL_IP | "216.73.216.121"
|
HTTP_HOST | "ekonow.ru"
|
HTTPS | "on"
|
REDIRECT_STATUS | "200"
|
REDIRECT_HANDLER | "application/x-httpd-php"
|
REDIRECT_HTTP_AUTHORIZATION | "" |
REDIRECT_HTTPS | "on"
|
REDIRECT_REDIRECT_STATUS | "200"
|
REDIRECT_REDIRECT_HTTP_AUTHORIZATION | "" |
REDIRECT_REDIRECT_HTTPS | "on"
|
FCGI_ROLE | "RESPONDER"
|