Whoops! There was an error.
TypeError
Cannot access offset of type string on string TypeError thrown with message "Cannot access offset of type string on string" Stacktrace: #3 TypeError in /www/ooginoog_568/public/wp-content/themes/ooginoog-child-theme/archive-library_pt.php:18 #2 include in /www/ooginoog_568/public/wp-includes/template-loader.php:132 #1 require_once in /www/ooginoog_568/public/wp-blog-header.php:19 #0 require in /www/ooginoog_568/public/index.php:17
3
TypeError
/www/ooginoog_568/public/wp-content/themes/ooginoog-child-theme/archive-library_pt.php18
2
include
/www/ooginoog_568/public/wp-includes/template-loader.php132
1
require_once
/www/ooginoog_568/public/wp-blog-header.php19
0
require
/www/ooginoog_568/public/index.php17
/www/ooginoog_568/public/wp-content/themes/ooginoog-child-theme/archive-library_pt.php
<?php get_header(); ?>
<?php get_template_part('template-parts/header-flexible-sections');
$taxonomy = 'library_cat';
$terms = get_terms( array(
    'taxonomy' => 'library_cat',
    'hide_empty' => false,
) );
?>
<?php if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) : ?>
<section class="library-archive">
    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                <div class="library-list">
                    <?php foreach ( $terms as $term ) : ?>
                        <?php
                        $image = get_field( 'image', 'term_' . $term->term_id );
                        $image = $image ? $image['url']: "";
                        $title = $term->name;
                        $description = $term->description;
                        $link = get_term_link( $term );
                        set_query_var( 'image', $image );
                        set_query_var( 'link', $link );
                        set_query_var( 'title', $title);
                        set_query_var( 'description', $description );
                        get_template_part( 'template-parts/loop-library' );
                        ?>
                    <?php endforeach; ?>
                </div>
            </div>
        </div>
    </div>
</section>
<?php endif; ?>
<?php get_template_part('template-parts/flexible-sections'); ?>
<?php get_footer(); ?>
 
Arguments
  1. "Cannot access offset of type string on string"
    
/www/ooginoog_568/public/wp-includes/template-loader.php
     */
    $template   = apply_filters( 'template_include', $template );
    $is_stringy = is_string( $template ) || ( is_object( $template ) && method_exists( $template, '__toString' ) );
    $template   = $is_stringy ? realpath( (string) $template ) : null;
    if (
        is_string( $template ) &&
        ( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) &&
        is_file( $template ) &&
        is_readable( $template )
    ) {
        /**
         * Fires immediately before including the template.
         *
         * @since 6.9.0
         *
         * @param string $template The path of the template about to be included.
         */
        do_action( 'wp_before_include_template', $template );
 
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
/www/ooginoog_568/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';
 
}
 
Arguments
  1. "/www/ooginoog_568/public/wp-includes/template-loader.php"
    
/www/ooginoog_568/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';
 
Arguments
  1. "/www/ooginoog_568/public/wp-blog-header.php"
    

Environment & details:

Key Value
query_vars
array:1 [
  "post_type" => "library_pt"
]
query_string
"post_type=library_pt"
request
"bibliotheek"
matched_rule
"bibliotheek/?$"
matched_query
"post_type=library_pt"
did_permalink
true
Key Value
query
array:1 [
  "post_type" => "library_pt"
]
query_vars
array:9 [
  "post_type" => "library_pt"
  "fields" => "all"
  "cache_results" => true
  "update_post_term_cache" => true
  "lazy_load_term_meta" => true
  "update_post_meta_cache" => true
  "posts_per_page" => 10
  "comments_per_page" => "50"
  "order" => "DESC"
]
tax_query
WP_Tax_Query {#9938}
meta_query
WP_Meta_Query {#9944}
queried_object
WP_Post_Type {#8675}
request
"""
SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID\n
\t\t\t\t\t FROM wp_posts  JOIN wp_icl_translations wpml_translations\n
\t\t\t\t\t\t\tON wp_posts.ID = wpml_translations.element_id\n
\t\t\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', wp_posts.post_type) \n
\t\t\t\t\t WHERE 1=1  AND ((wp_posts.post_type = 'library_pt' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled'))) AND ( ( ( wpml_translations.language_code = 'en' OR (\n
\t\t\t\t\twpml_translations.language_code = 'nl'\n
\t\t\t\t\tAND wp_posts.post_type IN ( 'post','page' )\n
\t\t\t\t\tAND ( ( \n
\t\t\t( SELECT COUNT(element_id)\n
\t\t\t  FROM wp_icl_translations\n
\t\t\t  WHERE trid = wpml_translations.trid\n
\t\t\t  AND language_code = 'en'\n
\t\t\t) = 0\n
\t\t\t ) OR ( \n
\t\t\t( SELECT COUNT(element_id)\n
\t\t\t\tFROM wp_icl_translations t2\n
\t\t\t\tJOIN wp_posts p ON p.id = t2.element_id\n
\t\t\t\tWHERE t2.trid = wpml_translations.trid\n
\t\t\t\tAND t2.language_code = 'en'\n
                AND (\n
                    p.post_status = 'publish' OR p.post_status = 'private' OR \n
                    ( p.post_type='attachment' AND p.post_status = 'inherit' )\n
                )\n
\t\t\t) = 0 ) ) \n
\t\t\t\t) ) AND wp_posts.post_type  IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','agenda_pt','news_pt','library_pt','faq_pt' )  ) OR wp_posts.post_type  NOT  IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','agenda_pt','news_pt','library_pt','faq_pt' )  )\n
\t\t\t\t\t \n
\t\t\t\t\t ORDER BY wp_posts.post_date DESC\n
\t\t\t\t\t LIMIT 0, 10
"""
current_post
-1
current_comment
-1
is_archive
true
is_post_type_archive
true
empty
empty
empty
empty
Key Value
wp-wpml_current_language
"en"
empty
Key Value
SERVER_SOFTWARE
"nginx/1.31.3"
REQUEST_URI
"/en/bibliotheek/"
USER
"ooginoog"
HOME
"/www/ooginoog_568"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CF_WORKER
"kinsta.cloud"
HTTP_KI_REQUEST_COLO
"185"
HTTP_KI_BOT_CATEGORY
"aggressive_crawler"
HTTP_KI_AI_CRAWLER
"yes"
HTTP_KI_REALIP
"216.73.217.84"
HTTP_X_KINSTA_EDGE_LB
"KCW"
HTTP_X_KINSTA_EDGE_INCOMINGIP
"216.73.217.84"
HTTP_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_KI_REQUEST_METAL
"74"
HTTP_CF_DEVICE_TYPE
"desktop"
HTTP_CF_CONNECTING_IP
"216.73.217.84"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_CF_RAY
"a31dd1ccaa43891a-CMH"
HTTP_KI_UA_LOWERCASED
"mozilla/5.0 applewebkit/537.36 (khtml, like gecko; compatible; claudebot/1.0; +claudebot@anthropic.com)"
HTTP_KI_VBOT_CATEGORY
"AI Crawler"
HTTP_CDN_LOOP
"cloudflare; loops=1; subreqs=1"
HTTP_CF_EW_VIA
"15"
HTTP_X_USE_CUSTOM_EC_TTL
"true"
HTTP_X_FORWARDED_FOR
"216.73.217.84"
SCRIPT_FILENAME
"/www/ooginoog_568/public/index.php"
REDIRECT_STATUS
"200"
WP_ENVIRONMENT_TYPE
"production"
KINSTA_CACHE_ZONE
"KINSTAWP"
SERVER_NAME
"ver-ooginoog.nl"
SERVER_PORT
"443"
SERVER_ADDR
"10.0.3.68"
REMOTE_PORT
""
REMOTE_ADDR
"216.73.217.84"
GATEWAY_INTERFACE
"CGI/1.1"
HTTP_HOST
"ver-ooginoog.nl"
HTTPS
"on"
SERVER_PROTOCOL
"HTTP/2.0"
DOCUMENT_ROOT
"/www/ooginoog_568/public"
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
1787862473.9759
REQUEST_TIME
1787862473
empty
0. Whoops\Handler\PrettyPageHandler