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 /home/stem-dev/webapps/stem-caa-co-uk/web/app/themes/stem/single-resource.php:85 #2 include in /home/stem-dev/webapps/stem-caa-co-uk/web/wp/wp-includes/template-loader.php:106 #1 require_once in /home/stem-dev/webapps/stem-caa-co-uk/web/wp/wp-blog-header.php:19 #0 require in /home/stem-dev/webapps/stem-caa-co-uk/web/index.php:6
Stack frames (4)
3
TypeError
/web/app/themes/stem/single-resource.php85
2
include
/web/wp/wp-includes/template-loader.php106
1
require_once
/web/wp/wp-blog-header.php19
0
require
/web/index.php6
/home/stem-dev/webapps/stem-caa-co-uk/web/app/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"
    
/home/stem-dev/webapps/stem-caa-co-uk/web/wp/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/stem-dev/webapps/stem-caa-co-uk/web/wp/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. "/home/stem-dev/webapps/stem-caa-co-uk/web/wp/wp-includes/template-loader.php"
    
/home/stem-dev/webapps/stem-caa-co-uk/web/index.php
<?php
/**
 * WordPress View Bootstrapper
 */
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
 
Arguments
  1. "/home/stem-dev/webapps/stem-caa-co-uk/web/wp/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.59 (Unix) OpenSSL/1.1.1f"
REQUEST_URI
"/resource/what-flies/"
USER
"stem-dev"
HOME
"/home/stem-dev"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/resource/what-flies/"
REMOTE_PORT
"36904"
SCRIPT_FILENAME
"/home/stem-dev/webapps/stem-caa-co-uk/web/index.php"
SERVER_ADMIN
"you@example.com"
CONTEXT_DOCUMENT_ROOT
"/home/stem-dev/webapps/stem-caa-co-uk/web/"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/stem-dev/webapps/stem-caa-co-uk/web/"
REMOTE_ADDR
"18.119.130.19"
SERVER_PORT
"80"
SERVER_ADDR
"127.0.0.1"
SERVER_NAME
"stem.caa.co.uk"
SERVER_SIGNATURE
""
LD_LIBRARY_PATH
"/RunCloud/Packages/apache2-rc/lib"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_FOR
"18.119.130.19"
HTTP_X_SERVER_ADDR
"138.68.145.173"
HTTP_HOST
"stem.caa.co.uk"
HTTP_AUTHORIZATION
""
HTTPS
"on"
REDIRECT_STATUS
"200"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1715371606.9955
REQUEST_TIME
1715371606
DB_NAME
"stem_caa"
DB_USER
"stem_caa"
DB_PASSWORD
"8qrlpHD0"
WP_ENV
"production"
WP_HOME
"https://stem.caa.co.uk"
WP_SITEURL
"https://stem.caa.co.uk/wp"
WP_DEBUG_LOG
"/web/app/debug.log"
AUTH_KEY
"vShSSX=3N#}a3bgUh[[?&/Ro1px/R(p=5LL;NFRfZVS7oU-^9=f6pcM@NX3Js>KX"
SECURE_AUTH_KEY
"lvf:#Ncj9OWI)r7L1}rWWaCU|_5q1QF7A]oJcfw0PGc%@6a=/Gxs5*PwTFPe,;dl"
LOGGED_IN_KEY
"W5A!<iW*PRV&w?vR}8zf#_jb5mm`Q6U|zV(aglmE8]h8n[/!=HV[u@Ovf[-FkH|%"
NONCE_KEY
"-HPO85$R<A5^mt&h4[dgA.^V=T&Z}.]sLB*Ub0N6xs`LShLY8/Ho7]M?ogNRxp/<"
AUTH_SALT
"9zN*tbU,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