Whoops \ Exception \ ErrorException (E_WARNING)
foreach() argument must be of type array|object, string given Whoops\Exception\ErrorException thrown with message "foreach() argument must be of type array|object, string given" Stacktrace: #4 Whoops\Exception\ErrorException in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-content/themes/movecloser/page-templates/page-product-list.php:71 #3 Whoops\Run:handleError in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-content/themes/movecloser/page-templates/page-product-list.php:71 #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 (5)
4
Whoops
\
Exception
\
ErrorException
/
page-templates
/
page-product-list.php
71
3
Whoops
\
Run
handleError
/
page-templates
/
page-product-list.php
71
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-content
/
themes
/
movecloser
/
page-templates
/
page-product-list.php
        />
    </div>
    <?php endif;
 
endif; ?>
 
<?php if (get_field('is_alternative_title')): ?>
    <div class="container">
        <div class="row row-article-products-header">
            <div class="col-xs-12">
                <h1><?php the_field('alternative_title'); ?></h1>
            </div>
        </div>
    </div>
<?php endif; ?>
 
<?php $posts = get_field('product_list'); ?>
    <div class="container">
        <div class="row">
            <?php foreach ($posts as $post): ?>
                <div class="col-sm-6 col-md-4">
                    <div class="product-box">
                        <a href="<?php echo get_permalink($post->ID); ?>">
                            <div class="product-box-img">
                                <div class="product-box-img__bg"
                                     style="background-image: url(<?php echo get_the_post_thumbnail_url($post->ID, 'product-list'); ?>)"></div>
                            </div>
                            <?php if (get_field('is_alt_title', $post->ID)):?>
                                <h4><?php echo strip_tags(get_field('alt_title', $post->ID),'<br><br/>'); ?></h4>
                            <?php else:?>
                                <h4><?php echo $post->post_title; ?></h4>
                            <?php endif;?>
                            <div class="product-description"><?php the_field('opis_krotki_na_liscie_produktow', $post->ID); ?></div>
                            <button class="btn-product">
                                <?php pll_e("Dowiedz się więcej");?>
                            </button>
                        </a>
                    </div>
                </div>
            <?php endforeach; ?>
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-content
/
themes
/
movecloser
/
page-templates
/
page-product-list.php
        />
    </div>
    <?php endif;
 
endif; ?>
 
<?php if (get_field('is_alternative_title')): ?>
    <div class="container">
        <div class="row row-article-products-header">
            <div class="col-xs-12">
                <h1><?php the_field('alternative_title'); ?></h1>
            </div>
        </div>
    </div>
<?php endif; ?>
 
<?php $posts = get_field('product_list'); ?>
    <div class="container">
        <div class="row">
            <?php foreach ($posts as $post): ?>
                <div class="col-sm-6 col-md-4">
                    <div class="product-box">
                        <a href="<?php echo get_permalink($post->ID); ?>">
                            <div class="product-box-img">
                                <div class="product-box-img__bg"
                                     style="background-image: url(<?php echo get_the_post_thumbnail_url($post->ID, 'product-list'); ?>)"></div>
                            </div>
                            <?php if (get_field('is_alt_title', $post->ID)):?>
                                <h4><?php echo strip_tags(get_field('alt_title', $post->ID),'<br><br/>'); ?></h4>
                            <?php else:?>
                                <h4><?php echo $post->post_title; ?></h4>
                            <?php endif;?>
                            <div class="product-description"><?php the_field('opis_krotki_na_liscie_produktow', $post->ID); ?></div>
                            <button class="btn-product">
                                <?php pll_e("Dowiedz się więcej");?>
                            </button>
                        </a>
                    </div>
                </div>
            <?php endforeach; ?>
/
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 /bazy/
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.pelleter.noveo4.hekko24.pl/
HTTP_ACCEPT */*
HTTP_HOST biotaniqe.pl
HTTP_USER_AGENT claudebot
DOCUMENT_ROOT /home/noveo4/domains/biotaniqe.pl/public_html/public/
REMOTE_ADDR 3.80.173.25
REMOTE_PORT 60900
SERVER_ADDR 195.78.66.221
SERVER_NAME biotaniqe.pl
SERVER_ADMIN webmaster@biotaniqe.pl
SERVER_PORT 443
REQUEST_SCHEME https
REDIRECT_URL /bazy/
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/bazy/
SCRIPT_URL /bazy/
SCRIPT_NAME /index.php
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
X-LSCACHE on
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711707902.2423
REQUEST_TIME 1711707902
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.pelleter.noveo4.hekko24.pl/
0. Whoops\Handler\PrettyPageHandler