Whoops \ Exception \ ErrorException (E_RECOVERABLE_ERROR)
Object of class WP_Error could not be converted to string Whoops\Exception\ErrorException thrown with message "Object of class WP_Error could not be converted to string" Stacktrace: #8 Whoops\Exception\ErrorException in /var/www/maurisse/selfieproject.pl/public/wp-content/themes/selfieproject/parts/nav-menu-category.php:8 #7 Whoops\Run:handleError in /var/www/maurisse/selfieproject.pl/public/wp-content/themes/selfieproject/parts/nav-menu-category.php:8 #6 require in /var/www/maurisse/selfieproject.pl/public/wp-includes/template.php:772 #5 load_template in /var/www/maurisse/selfieproject.pl/public/wp-includes/template.php:716 #4 locate_template in /var/www/maurisse/selfieproject.pl/public/wp-includes/general-template.php:204 #3 get_template_part in /var/www/maurisse/selfieproject.pl/public/wp-content/themes/selfieproject/archive-porada.php:53 #2 include in /var/www/maurisse/selfieproject.pl/public/wp-includes/template-loader.php:106 #1 require_once in /var/www/maurisse/selfieproject.pl/public/wp-blog-header.php:19 #0 require in /var/www/maurisse/selfieproject.pl/public/index.php:17
Stack frames (9)
8
Whoops
\
Exception
\
ErrorException
/
parts
/
nav-menu-category.php
8
7
Whoops
\
Run
handleError
/
parts
/
nav-menu-category.php
8
6
require
/
var
/
www
/
maurisse
/
selfieproject.pl
/
public
/
wp-includes
/
template.php
772
5
load_template
/
var
/
www
/
maurisse
/
selfieproject.pl
/
public
/
wp-includes
/
template.php
716
4
locate_template
/
var
/
www
/
maurisse
/
selfieproject.pl
/
public
/
wp-includes
/
general-template.php
204
3
get_template_part
/
archive-porada.php
53
2
include
/
var
/
www
/
maurisse
/
selfieproject.pl
/
public
/
wp-includes
/
template-loader.php
106
1
require_once
/
var
/
www
/
maurisse
/
selfieproject.pl
/
public
/
wp-blog-header.php
19
0
require
/
var
/
www
/
maurisse
/
selfieproject.pl
/
public
/
index.php
17
/
var
/
www
/
maurisse
/
selfieproject.pl
/
public
/
wp-content
/
themes
/
selfieproject
/
parts
/
nav-menu-category.php
<ul class="tabs steps grid-x" data-tabs id="tabs-front">
    <?php if (!empty(TERMS_LIST)): ?>
 
        <?php for ($i = 0; $i < count(TERMS_LIST); $i++):
            $item = get_term(pll_get_term(TERMS_LIST[ $i ])); ?>
 
            <li class="tabs-title auto cell <?php echo (get_query_var('term') == $item->slug) ? 'is-active' : ''; ?>">
                <a href="<?php echo get_term_link($item->term_id); ?>" aria-selected="true">
                    <h5 class="subtitle-step">
 
                        <?php if ($item->term_id == SOS || $item->term_id == ANTIACNE) : ?>
                            <span style="color:#E63E4B">S.O.S.</span>
                        <?php elseif ($item->term_id == BODY) : ?>
                            <span style="color:#61aeab"><?php echo $item->name; ?></span>
                        <?php else: ?>
                            <?php echo pll__('Krok') . " " . ($i + 1); ?>
                        <?php endif ?>
 
                    </h5>
 
                    <?php if ($item->term_id == BODY) : ?>
                        <h3 class="title-step title-step-<?php echo $i + 1; ?>">Body Stories</h3>
                    <?php else: ?>
                        <h3 class="title-step title-step-<?php echo $i + 1; ?>"><?php echo $item->name; ?></h3>
                    <?php endif; ?>
 
                </a>
            </li>
        <?php endfor;?>
 
    <?php endif; ?>
</ul>
/
var
/
www
/
maurisse
/
selfieproject.pl
/
public
/
wp-content
/
themes
/
selfieproject
/
parts
/
nav-menu-category.php
<ul class="tabs steps grid-x" data-tabs id="tabs-front">
    <?php if (!empty(TERMS_LIST)): ?>
 
        <?php for ($i = 0; $i < count(TERMS_LIST); $i++):
            $item = get_term(pll_get_term(TERMS_LIST[ $i ])); ?>
 
            <li class="tabs-title auto cell <?php echo (get_query_var('term') == $item->slug) ? 'is-active' : ''; ?>">
                <a href="<?php echo get_term_link($item->term_id); ?>" aria-selected="true">
                    <h5 class="subtitle-step">
 
                        <?php if ($item->term_id == SOS || $item->term_id == ANTIACNE) : ?>
                            <span style="color:#E63E4B">S.O.S.</span>
                        <?php elseif ($item->term_id == BODY) : ?>
                            <span style="color:#61aeab"><?php echo $item->name; ?></span>
                        <?php else: ?>
                            <?php echo pll__('Krok') . " " . ($i + 1); ?>
                        <?php endif ?>
 
                    </h5>
 
                    <?php if ($item->term_id == BODY) : ?>
                        <h3 class="title-step title-step-<?php echo $i + 1; ?>">Body Stories</h3>
                    <?php else: ?>
                        <h3 class="title-step title-step-<?php echo $i + 1; ?>"><?php echo $item->name; ?></h3>
                    <?php endif; ?>
 
                </a>
            </li>
        <?php endfor;?>
 
    <?php endif; ?>
</ul>
/
var
/
www
/
maurisse
/
selfieproject.pl
/
public
/
wp-includes
/
template.php
        /*
         * This use of extract() cannot be removed. There are many possible ways that
         * templates could depend on variables that it creates existing, and no way to
         * detect and deprecate it.
         *
         * Passing the EXTR_SKIP flag is the safest option, ensuring globals and
         * function variables cannot be overwritten.
         */
        // 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;
    }
}
 
/
var
/
www
/
maurisse
/
selfieproject.pl
/
public
/
wp-includes
/
template.php
function locate_template( $template_names, $load = false, $require_once = true, $args = array() ) {
    $located = '';
    foreach ( (array) $template_names as $template_name ) {
        if ( ! $template_name ) {
            continue;
        }
        if ( file_exists( STYLESHEETPATH . '/' . $template_name ) ) {
            $located = STYLESHEETPATH . '/' . $template_name;
            break;
        } elseif ( file_exists( TEMPLATEPATH . '/' . $template_name ) ) {
            $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
 * also available.
 *
 * @since 1.5.0
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @global array      $posts
 * @global WP_Post    $post          Global post object.
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query      WordPress Query object.
 * @global WP_Rewrite $wp_rewrite    WordPress rewrite component.
/
var
/
www
/
maurisse
/
selfieproject.pl
/
public
/
wp-includes
/
general-template.php
    if ( '' !== $name ) {
        $templates[] = "{$slug}-{$name}.php";
    }
 
    $templates[] = "{$slug}.php";
 
    /**
     * Fires before an attempt is made to locate and load a template part.
     *
     * @since 5.2.0
     * @since 5.5.0 The `$args` parameter was added.
     *
     * @param string   $slug      The slug name for the generic template.
     * @param string   $name      The name of the specialized template.
     * @param string[] $templates Array of template files to search for, in order.
     * @param array    $args      Additional arguments passed to the template.
     */
    do_action( 'get_template_part', $slug, $name, $templates, $args );
 
    if ( ! locate_template( $templates, true, false, $args ) ) {
        return false;
    }
}
 
/**
 * Display search form.
 *
 * Will first attempt to locate the searchform.php file in either the child or
 * the parent, then load it. If it doesn't exist, then the default search form
 * will be displayed. The default search form is HTML, which will be displayed.
 * There is a filter applied to the search form HTML in order to edit or replace
 * it. The filter is {@see 'get_search_form'}.
 *
 * This function is primarily used by themes which want to hardcode the search
 * form into the sidebar and also by the search widget in WordPress.
 *
 * There is also an action that is called whenever the function is run called,
 * {@see 'pre_get_search_form'}. This can be useful for outputting JavaScript that the
 * search relies on or various formatting that applies to the beginning of the
 * search. To give a few examples of what it can be used for.
/
var
/
www
/
maurisse
/
selfieproject.pl
/
public
/
wp-content
/
themes
/
selfieproject
/
archive-porada.php
                </h3>
                <p><?php echo wp_trim_words($porady_banner_bottom->post_content, 20, '...'); ?></p>
                <p class="btn-read-more"><?php pll_e('CZYTAJ WIĘCEJ');?></p>
            </a>
        </div>
 
    </div>
  </div>
 
</div>
 
<div class="grid-container">
  <header class="text-center title title-porada">
    <h2>
      <span><?php pll_e('Wybierz krok i zobacz porady');?></span>
    </h2>
  </header>
</div>
 
<?php get_template_part('parts/nav', 'menu-category'); ?>
 
<div class="grid-container">
  <div class="grid-x grid-margin-x porady">
 
    <div class="clearing-thumbs small-block-grid-4" data-clearing>
 
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
            <?php get_template_part('parts/loop', 'archive-grid'); ?>
 
        <?php endwhile; ?>
 
        <?php endif; ?>
 
    </div>
 
  </div>
</div>
 
<?php get_footer(); ?>
/
var
/
www
/
maurisse
/
selfieproject.pl
/
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;
}
 
/
var
/
www
/
maurisse
/
selfieproject.pl
/
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';
 
}
 
/
var
/
www
/
maurisse
/
selfieproject.pl
/
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 nginx/1.10.3
REQUEST_URI /porada/
USER www-data
HOME /var/www
HTTP_CONNECTION Keep-Alive
HTTP_HOST selfieproject.de
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Thu, 01 Dec 2022 12:51:50 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/)
REDIRECT_STATUS 200
SERVER_NAME selfieproject.de
SERVER_PORT 443
SERVER_ADDR 51.255.37.252
REMOTE_PORT 34614
REMOTE_ADDR 34.232.62.64
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /var/www/maurisse/selfieproject.de/public
DOCUMENT_URI /index.php
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /var/www/maurisse/selfieproject.de/public/index.php
PATH_INFO
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1680366703.8788
REQUEST_TIME 1680366703
empty
0. Whoops\Handler\PrettyPageHandler