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 /nas/content/live/stemcaaprd/wp-content/themes/stem/single-resource.php:87 #2 include in /nas/content/live/stemcaaprd/wp-includes/template-loader.php:125 #1 require_once in /nas/content/live/stemcaaprd/wp-blog-header.php:19 #0 require in /nas/content/live/stemcaaprd/index.php:17
Stack frames (4)
3
TypeError
/single-resource.php87
2
include
/nas/content/live/stemcaaprd/wp-includes/template-loader.php125
1
require_once
/nas/content/live/stemcaaprd/wp-blog-header.php19
0
require
/nas/content/live/stemcaaprd/index.php17
/nas/content/live/stemcaaprd/wp-content/themes/stem/single-resource.php
                                <?= get_field("difficulty")["label"]; ?>
                            </div>
                            <div class="cell small-12 medium-1 detail materials">
                                <h2><img src="<?= THEME_URI; ?>/images/icons/materials.svg">Materials</h2>
 
                                <?= get_field("materials"); ?>
                            </div>
                            <div class="cell small-12 medium-1 detail teacher-pack">
                                <h2>Teacher Pack</h2>
 
                                <?= get_field("teacher_pack") ? "YES" : "NO"; ?>
                            </div>
                            <div class="cell small-12 medium-1 detail links">
                                <h2>Links</h2>
 
                                <?php if (have_rows("links")) :
                                    while (have_rows("links")) :
                                        the_row();
                                        $link = get_sub_field("link"); ?>
                                        <a href="<?= $link["url"]; ?>" target="<?= $link["target"] ?>"><?= $link["title"]; ?></a>
                                    <?php endwhile;
                                endif; ?>
 
                                <?php if (get_field("credits")) : ?>
                                    Credit: <?= get_field("credits"); ?>    
                                <?php endif; ?>    
                            </div>
                        </div>
                    </div>
                </div>
            </article>
            
        </div>
                
        <?php endwhile;
    endif; ?>
 
</div>
 
<?php get_footer(); ?>
Arguments
  1. "Cannot access offset of type string on string"
    
/nas/content/live/stemcaaprd/wp-includes/template-loader.php
 
    /**
     * 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 ) {
        /**
         * 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;
}
 
/nas/content/live/stemcaaprd/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. "/nas/content/live/stemcaaprd/wp-includes/template-loader.php"
    
/nas/content/live/stemcaaprd/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. "/nas/content/live/stemcaaprd/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"nginx"
REQUEST_URI
"/resource/what-flies/"
USER
"fpm200055"
HOME
"/home/fpm200055"
HTTP_RAWHOST
"stem.caa.co.uk"
QUERY_STRING
""
SERVER_PORT
"80"
HTTP_VIA
"1.1 squid-proxy-5b5d847c96-djbkv (squid/6.13), 1.1 pod-225612 (Varnish/trunk)"
HTTP_REFERER
"http://stem.caa.co.uk/resource/what-flies"
HTTP_X_IS_BOT
"1"
HTTP_CF_RAY
"9dbb636078a2c69c-LHR"
PHP_VALUE
"""
upload_max_filesize=50M;\n
post_max_size=100M;\n
"""
HTTPS
"off"
REMOTE_PORT
""
HTTP_X_UA_ORIGINAL
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])"
HTTP_X_WPE_REQUEST_ID
"1235da760cb36e8d8c73941038e9af0f"
PHP_ADMIN_VALUE
"""
newrelic.appname=stemcaaprd;\n
newrelic.browser_monitoring.auto_instrument=off;\n
newrelic.enabled=on;\n
newrelic.license=f5aff5719703ed1f23ca0451f6564508513fNRAL;\n
sendmail_path=/bin/sendmail-wrapper.sh cb1266651c48c04768406d1874f99f1387cb573b /usr/sbin/sendmail -t -i;\n
syslog.ident=phperr-stemcaaprd;\n
"""
SERVER_NAME
"stem.caa.co.uk"
PATH_INFO
""
SCRIPT_FILENAME
"/nas/content/live/stemcaaprd/index.php"
REDIRECT_STATUS
"200"
HTTP_X_CACHE_GROUP
"normal"
HTTP_CF_CONNECTING_IP
"10.1.166.155,216.73.216.24, 216.73.216.24"
HTTP_X_WORDPRESS_TYPE
"DEFAULT"
PATH_TRANSLATED
"/nas/content/live/stemcaaprd/index.php"
SYSLOG_IDENT
"phperr-stemcaaprd"
DOCUMENT_ROOT
"/nas/content/live/stemcaaprd"
SCRIPT_NAME
"/index.php"
CONTENT_TYPE
""
IS_WPE
"1"
GATEWAY_INTERFACE
"CGI/1.1"
REMOTE_ADDR
"216.73.216.24"
DOCUMENT_URI
"/index.php"
HTTP_HOST
"stem.caa.co.uk"
HTTP_X_FORWARDED_HOST
"stem.caa.co.uk"
HTTP_X_WPE_EDGE
"GES"
REQUEST_SCHEME
"http"
SERVER_ADDR
"127.0.0.1"
HTTP_WPE_READONLY
"on"
HTTP_CF_IPCOUNTRY
"US"
CONTENT_LENGTH
"0"
REQUEST_METHOD
"GET"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])"
HTTP_X_WPE_INSTALL_NAME
"stemcaaprd"
HTTP_ACCEPT_ENCODING
"gzip"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_X_WPENGINE_PHP_VERSION
"8.4"
SERVER_PROTOCOL
"HTTP/1.1"
HTTP_CDN_LOOP
"cloudflare; loops=1"
HTTP_CF_VISITOR
"{\"scheme\":\"http\"}"
HTTP_ACCEPT
"*/*"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1773408573.58
REQUEST_TIME
1773408573
Key Value
USER
"fpm200055"
HOME
"/home/fpm200055"
HTTP_RAWHOST
"stem.caa.co.uk"
QUERY_STRING
""
SERVER_PORT
"80"
HTTP_VIA
"1.1 squid-proxy-5b5d847c96-djbkv (squid/6.13), 1.1 pod-225612 (Varnish/trunk)"
HTTP_REFERER
"http://stem.caa.co.uk/resource/what-flies"
HTTP_X_IS_BOT
"1"
HTTP_CF_RAY
"9dbb636078a2c69c-LHR"
PHP_VALUE
"""
upload_max_filesize=50M;\n
post_max_size=100M;\n
"""
HTTPS
"off"
REMOTE_PORT
""
HTTP_X_UA_ORIGINAL
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])"
HTTP_X_WPE_REQUEST_ID
"1235da760cb36e8d8c73941038e9af0f"
PHP_ADMIN_VALUE
"""
newrelic.appname=stemcaaprd;\n
newrelic.browser_monitoring.auto_instrument=off;\n
newrelic.enabled=on;\n
newrelic.license=f5aff5719703ed1f23ca0451f6564508513fNRAL;\n
sendmail_path=/bin/sendmail-wrapper.sh cb1266651c48c04768406d1874f99f1387cb573b /usr/sbin/sendmail -t -i;\n
syslog.ident=phperr-stemcaaprd;\n
"""
SERVER_NAME
"stem.caa.co.uk"
PATH_INFO
""
SCRIPT_FILENAME
"/nas/content/live/stemcaaprd/index.php"
REDIRECT_STATUS
"200"
HTTP_X_CACHE_GROUP
"normal"
HTTP_CF_CONNECTING_IP
"10.1.166.155,216.73.216.24, 216.73.216.24"
HTTP_X_WORDPRESS_TYPE
"DEFAULT"
PATH_TRANSLATED
"/nas/content/live/stemcaaprd/index.php"
SYSLOG_IDENT
"phperr-stemcaaprd"
DOCUMENT_ROOT
"/nas/content/live/stemcaaprd"
SCRIPT_NAME
"/index.php"
CONTENT_TYPE
""
IS_WPE
"1"
SERVER_SOFTWARE
"nginx"
GATEWAY_INTERFACE
"CGI/1.1"
REMOTE_ADDR
"216.73.216.24"
DOCUMENT_URI
"/index.php"
REQUEST_URI
"/resource/what-flies/"
HTTP_HOST
"stem.caa.co.uk"
HTTP_X_FORWARDED_HOST
"stem.caa.co.uk"
HTTP_X_WPE_EDGE
"GES"
REQUEST_SCHEME
"http"
SERVER_ADDR
"127.0.0.1"
HTTP_WPE_READONLY
"on"
HTTP_CF_IPCOUNTRY
"US"
CONTENT_LENGTH
"0"
REQUEST_METHOD
"GET"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])"
HTTP_X_WPE_INSTALL_NAME
"stemcaaprd"
HTTP_ACCEPT_ENCODING
"gzip"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_X_WPENGINE_PHP_VERSION
"8.4"
SERVER_PROTOCOL
"HTTP/1.1"
HTTP_CDN_LOOP
"cloudflare; loops=1"
HTTP_CF_VISITOR
"{"scheme":"http"}"
HTTP_ACCEPT
"*/*"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1773408573.58
REQUEST_TIME
1773408573
0. Whoops\Handler\PrettyPageHandler