Whoops \ Exception \ ErrorException (E_WARNING)
Undefined array key 1 Whoops\Exception\ErrorException thrown with message "Undefined array key 1" Stacktrace: #8 Whoops\Exception\ErrorException in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-includes/media.php:71 #7 Whoops\Run:handleError in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-includes/media.php:71 #6 image_constrain_size_for_editor in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-includes/media.php:268 #5 image_downsize in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-includes/media.php:970 #4 wp_get_attachment_image_src in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-includes/media.php:1049 #3 wp_get_attachment_image in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-content/themes/movecloser/index.php:40 #2 include in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-includes/template-loader.php:106 #1 require_once in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-blog-header.php:19 #0 require in /home/noveo4/domains/biotaniqe.pl/public_html/public/index.php:17
Stack frames (9)
8
Whoops
\
Exception
\
ErrorException
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-includes
/
media.php
71
7
Whoops
\
Run
handleError
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-includes
/
media.php
71
6
image_constrain_size_for_editor
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-includes
/
media.php
268
5
image_downsize
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-includes
/
media.php
970
4
wp_get_attachment_image_src
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-includes
/
media.php
1049
3
wp_get_attachment_image
/
index.php
40
2
include
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-includes
/
template-loader.php
106
1
require_once
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-blog-header.php
19
0
require
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
index.php
17
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-includes
/
media.php
 *                              (like inserting into an editor). Default null.
 * @return int[] {
 *     An array of width and height values.
 *
 *     @type int $0 The maximum width in pixels.
 *     @type int $1 The maximum height in pixels.
 * }
 */
function image_constrain_size_for_editor( $width, $height, $size = 'medium', $context = null ) {
    global $content_width;
 
    $_wp_additional_image_sizes = wp_get_additional_image_sizes();
 
    if ( ! $context ) {
        $context = is_admin() ? 'edit' : 'display';
    }
 
    if ( is_array( $size ) ) {
        $max_width  = $size[0];
        $max_height = $size[1];
    } elseif ( 'thumb' === $size || 'thumbnail' === $size ) {
        $max_width  = (int) get_option( 'thumbnail_size_w' );
        $max_height = (int) get_option( 'thumbnail_size_h' );
        // Last chance thumbnail size defaults.
        if ( ! $max_width && ! $max_height ) {
            $max_width  = 128;
            $max_height = 96;
        }
    } elseif ( 'medium' === $size ) {
        $max_width  = (int) get_option( 'medium_size_w' );
        $max_height = (int) get_option( 'medium_size_h' );
 
    } elseif ( 'medium_large' === $size ) {
        $max_width  = (int) get_option( 'medium_large_size_w' );
        $max_height = (int) get_option( 'medium_large_size_h' );
 
        if ( (int) $content_width > 0 ) {
            $max_width = min( (int) $content_width, $max_width );
        }
    } elseif ( 'large' === $size ) {
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-includes
/
media.php
 *                              (like inserting into an editor). Default null.
 * @return int[] {
 *     An array of width and height values.
 *
 *     @type int $0 The maximum width in pixels.
 *     @type int $1 The maximum height in pixels.
 * }
 */
function image_constrain_size_for_editor( $width, $height, $size = 'medium', $context = null ) {
    global $content_width;
 
    $_wp_additional_image_sizes = wp_get_additional_image_sizes();
 
    if ( ! $context ) {
        $context = is_admin() ? 'edit' : 'display';
    }
 
    if ( is_array( $size ) ) {
        $max_width  = $size[0];
        $max_height = $size[1];
    } elseif ( 'thumb' === $size || 'thumbnail' === $size ) {
        $max_width  = (int) get_option( 'thumbnail_size_w' );
        $max_height = (int) get_option( 'thumbnail_size_h' );
        // Last chance thumbnail size defaults.
        if ( ! $max_width && ! $max_height ) {
            $max_width  = 128;
            $max_height = 96;
        }
    } elseif ( 'medium' === $size ) {
        $max_width  = (int) get_option( 'medium_size_w' );
        $max_height = (int) get_option( 'medium_size_h' );
 
    } elseif ( 'medium_large' === $size ) {
        $max_width  = (int) get_option( 'medium_large_size_w' );
        $max_height = (int) get_option( 'medium_large_size_h' );
 
        if ( (int) $content_width > 0 ) {
            $max_width = min( (int) $content_width, $max_width );
        }
    } elseif ( 'large' === $size ) {
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-includes
/
media.php
            $info = wp_getimagesize( $thumbfile );
 
            if ( $info ) {
                $img_url         = str_replace( $img_url_basename, wp_basename( $thumbfile ), $img_url );
                $width           = $info[0];
                $height          = $info[1];
                $is_intermediate = true;
            }
        }
    }
 
    if ( ! $width && ! $height && isset( $meta['width'], $meta['height'] ) ) {
        // Any other type: use the real image.
        $width  = $meta['width'];
        $height = $meta['height'];
    }
 
    if ( $img_url ) {
        // We have the actual image size, but might need to further constrain it if content_width is narrower.
        list( $width, $height ) = image_constrain_size_for_editor( $width, $height, $size );
 
        return array( $img_url, $width, $height, $is_intermediate );
    }
 
    return false;
}
 
/**
 * Registers a new image size.
 *
 * @since 2.9.0
 *
 * @global array $_wp_additional_image_sizes Associative array of additional image sizes.
 *
 * @param string     $name   Image size identifier.
 * @param int        $width  Optional. Image width in pixels. Default 0.
 * @param int        $height Optional. Image height in pixels. Default 0.
 * @param bool|array $crop   {
 *     Optional. Image cropping behavior. If false, the image will be scaled (default).
 *     If true, image will be cropped to the specified dimensions using center positions.
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-includes
/
media.php
 * Retrieves an image to represent an attachment.
 *
 * @since 2.5.0
 *
 * @param int          $attachment_id Image attachment ID.
 * @param string|int[] $size          Optional. Image size. Accepts any registered image size name, or an array of
 *                                    width and height values in pixels (in that order). Default 'thumbnail'.
 * @param bool         $icon          Optional. Whether the image should fall back to a mime type icon. Default false.
 * @return array|false {
 *     Array of image data, or boolean false if no image is available.
 *
 *     @type string $0 Image source URL.
 *     @type int    $1 Image width in pixels.
 *     @type int    $2 Image height in pixels.
 *     @type bool   $3 Whether the image is a resized image.
 * }
 */
function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon = false ) {
    // Get a thumbnail or intermediate image if there is one.
    $image = image_downsize( $attachment_id, $size );
    if ( ! $image ) {
        $src = false;
 
        if ( $icon ) {
            $src = wp_mime_type_icon( $attachment_id );
 
            if ( $src ) {
                /** This filter is documented in wp-includes/post.php */
                $icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/media' );
 
                $src_file               = $icon_dir . '/' . wp_basename( $src );
                list( $width, $height ) = wp_getimagesize( $src_file );
            }
        }
 
        if ( $src && $width && $height ) {
            $image = array( $src, $width, $height, false );
        }
    }
    /**
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-includes
/
media.php
 *
 *     @type string       $src      Image attachment URL.
 *     @type string       $class    CSS class name or space-separated list of classes.
 *                                  Default `attachment-$size_class size-$size_class`,
 *                                  where `$size_class` is the image size being requested.
 *     @type string       $alt      Image description for the alt attribute.
 *     @type string       $srcset   The 'srcset' attribute value.
 *     @type string       $sizes    The 'sizes' attribute value.
 *     @type string|false $loading  The 'loading' attribute value. Passing a value of false
 *                                  will result in the attribute being omitted for the image.
 *                                  Defaults to 'lazy', depending on wp_lazy_loading_enabled().
 *     @type string       $decoding The 'decoding' attribute value. Possible values are
 *                                  'async' (default), 'sync', or 'auto'. Passing false or an empty
 *                                  string will result in the attribute being omitted.
 * }
 * @return string HTML img element or empty string on failure.
 */
function wp_get_attachment_image( $attachment_id, $size = 'thumbnail', $icon = false, $attr = '' ) {
    $html  = '';
    $image = wp_get_attachment_image_src( $attachment_id, $size, $icon );
 
    if ( $image ) {
        list( $src, $width, $height ) = $image;
 
        $attachment = get_post( $attachment_id );
        $hwstring   = image_hwstring( $width, $height );
        $size_class = $size;
 
        if ( is_array( $size_class ) ) {
            $size_class = implode( 'x', $size_class );
        }
 
        $default_attr = array(
            'src'   => $src,
            'class' => "attachment-$size_class size-$size_class",
            'alt'   => trim( strip_tags( get_post_meta( $attachment_id, '_wp_attachment_image_alt', true ) ) ),
        );
 
        /**
         * Filters the context in which wp_get_attachment_image() is used.
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-content
/
themes
/
movecloser
/
index.php
$args = array(
    'posts_per_page' => -1,
    'tax_query' => array(
        array(
            'taxonomy' => 'categoryproduct',
            'field' => 'term_id',
            'terms' => $page_object->term_id,
        )
    )
);
$posts = new WP_Query($args);
$posts = $posts->posts;
?>
 
 
 
<?php if( get_field('category_image', $page_object) ): ?>
 
    <div class="row main-banner">
        <?php echo wp_get_attachment_image(get_field('category_image', $page_object), array(1920), "", array( "class" => "img-responsive" )); ?>
    </div>
<?php else: ?>
    <div class="container">
        <div class="row">
            <div class="col-md-2 col-xs-1"></div>
            <div class="col-md-8 col-xs-10">
                <div class="row-article-products-header"><h2><?php echo $page_object->name; ?></h2></div>
            </div>
            <div class="col-md-2 col-xs-1"></div>
        </div>
    </div>
<?php endif; ?>
 
 
    <div class="container">
        <div class="row">
            <?php foreach ($posts as $post): ?>
                <div class="col-md-4">
                    <div class="product-box">
                        <a href="<?php echo get_permalink($post->ID);?>">
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
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;
}
 
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
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 __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
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 __DIR__ . '/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE LiteSpeed
REQUEST_URI /categoryproduct/terapia-sluzem-slimaka-odmladzanie/
PATH /usr/local/bin:/usr/bin:/bin
LD_PRELOAD /usr/local/lib/h88/av.so
PHP_INI_SCAN_DIR :/etc/configs/users/noveo4/php/www.biotaniqe.pl/
HTTP_ACCEPT */*
HTTP_HOST biotaniqe.pl
HTTP_USER_AGENT claudebot
DOCUMENT_ROOT /home/noveo4/domains/biotaniqe.pl/public_html/public/
REMOTE_ADDR 18.209.31.38
REMOTE_PORT 41474
SERVER_ADDR 195.78.66.221
SERVER_NAME biotaniqe.pl
SERVER_ADMIN webmaster@biotaniqe.pl
SERVER_PORT 443
REQUEST_SCHEME https
REDIRECT_URL /categoryproduct/terapia-sluzem-slimaka-odmladzanie/
REDIRECT_REQUEST_METHOD GET
HTTPS on
HTTP_AUTHORIZATION
REDIRECT_STATUS 200
X_SPDY HTTP2
SSL_PROTOCOL TLSv1.3
SSL_CIPHER TLS_AES_256_GCM_SHA384
SSL_CIPHER_USEKEYSIZE 256
SSL_CIPHER_ALGKEYSIZE 256
SCRIPT_FILENAME /home/noveo4/domains/biotaniqe.pl/public_html/public/index.php
QUERY_STRING
SCRIPT_URI https://biotaniqe.pl/categoryproduct/terapia-sluzem-slimaka-odmladzanie/
SCRIPT_URL /categoryproduct/terapia-sluzem-slimaka-odmladzanie/
SCRIPT_NAME /index.php
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
X-LSCACHE on
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711727146.6629
REQUEST_TIME 1711727146
Key Value
PATH /usr/local/bin:/usr/bin:/bin
LD_PRELOAD /usr/local/lib/h88/av.so
PHP_INI_SCAN_DIR :/etc/configs/users/noveo4/php/www.biotaniqe.pl/
0. Whoops\Handler\PrettyPageHandler