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/runcloud/webapps/canso-prod/web/app/themes/canso/single-lineup-sessions.php:66 #2 include in /home/runcloud/webapps/canso-prod/web/wp/wp-includes/template-loader.php:132 #1 require_once in /home/runcloud/webapps/canso-prod/web/wp/wp-blog-header.php:19 #0 require in /home/runcloud/webapps/canso-prod/web/index.php:5
Stack frames (4)
3
TypeError
…/web/app/themes/canso/single-lineup-sessions.php66
2
include
…/web/wp/wp-includes/template-loader.php132
1
require_once
…/web/wp/wp-blog-header.php19
0
require
…/web/index.php5
/home/runcloud/webapps/canso-prod/web/app/themes/canso/single-lineup-sessions.php
                            // get sponsor image
                            $sponsor_files = get_post_meta($id, 'files', true);
                            $sponsor_files = maybe_unserialize($sponsor_files);
                            if ($sponsor_files) {    
                                ?><script>console.log('sponsor files: ', <?php echo json_encode($sponsor_files); ?>);</script><?php
                            }
 
                            $sponsor_image_files = array_filter($sponsor_files, function ($file) {
                                return isset($file['file_type']) && stripos($file['file_type'], 'image') !== false;
                            });
 
                            $sponsor_pdf_files = array_filter($sponsor_files, function ($file) {
                                return isset($file['file_type']) && stripos($file['file_type'], 'pdf') !== false;
                            });
 
                            $sponsor_file = isset($sponsor_image_files[0]) ? $sponsor_image_files[0] : '';
                            $sponsor_image = $sponsor_file ? $sponsor_file['variants'][0]['url'] : '';
 
                            // If sponsor file has no variants, use the original url
                            if (!$sponsor_image && $sponsor_file['url']) {
                                $sponsor_image = $sponsor_file['url'];
                            }
 
                            $sponsor_label = 'Sponsored by';
                            if ($sponsor_file && isset($sponsor_file['label']) && $sponsor_file['label'] === 'Hosted by') {
                                $sponsor_label = 'Hosted by';
                            }
                            ?>
 
                            <div class='session-date-container'>
                                <div class='left-column'>
                                    <?php
                                    $first_session_start_date = strtotime(get_post_meta($id, 'startDate', true)) + $timezone;  
                                    $first_session_date = date('l j F', $first_session_start_date);  
                                    ?>
                                    <p class='session-date'><?php echo $first_session_date; ?></p>
                                    <p class='session-time'><?php echo date('H:i', $start_ts); ?>-<?php echo date('H:i', $end_ts); ?></p>
                                </div>
 
                                <div class='right-column'>
Arguments
  1. "Cannot access offset of type string on string"
    
/home/runcloud/webapps/canso-prod/web/wp/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;
}
 
/home/runcloud/webapps/canso-prod/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/runcloud/webapps/canso-prod/web/wp/wp-includes/template-loader.php"
    
/home/runcloud/webapps/canso-prod/web/index.php
<?php
 
/** WordPress view bootstrapper */
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
 
Arguments
  1. "/home/runcloud/webapps/canso-prod/web/wp/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.68 (Unix) OpenSSL/1.1.1f"
REQUEST_URI
"/session/welcome-drinks-for-canso-leadership-summit-attendees-only/"
USER
"runcloud"
HOME
"/home/runcloud"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/session/welcome-drinks-for-canso-leadership-summit-attendees-only/"
REMOTE_PORT
"54118"
SCRIPT_FILENAME
"/home/runcloud/webapps/canso-prod/web/index.php"
SERVER_ADMIN
"you@example.com"
CONTEXT_DOCUMENT_ROOT
"/home/runcloud/webapps/canso-prod/web/"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/runcloud/webapps/canso-prod/web/"
REMOTE_ADDR
"18.97.14.91"
SERVER_PORT
"80"
SERVER_ADDR
"127.0.0.1"
SERVER_NAME
"canso.org"
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
"zstd, br, gzip"
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/)"
HTTP_CONNECTION
"close"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_FOR
"18.97.14.91"
HTTP_X_SERVER_ADDR
"178.62.231.199"
HTTP_HOST
"canso.org"
HTTP_AUTHORIZATION
""
HTTPS
"on"
REDIRECT_STATUS
"200"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1794667722.4878
REQUEST_TIME
1794667722
ACF_PRO_KEY
"b3JkZXJfaWQ9NTA3MTh8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE1LTAyLTI0IDE2OjM5OjA1"
ADMIN_COLUMNS_PRO_KEY
"93d36a90-7700-4e7b-891f-f1336fa12aa8"
AUTH_KEY
"generateme"
AUTH_SALT
"generateme"
DB_HOST
"127.0.0.1"
DB_NAME
"canso_prod_database"
DB_PASSWORD
"LAo9JY4s7z10jqmLPi6upED4aLQjRgFx"
DB_USER
"canso_prod"
DOS_CONTAINER
"canso"
DOS_ENDPOINT
"https://fra1.digitaloceanspaces.com"
DOS_KEY
"XY55QP4ND4Q7FQ3LWCQL"
DOS_SECRET
"0VUcYOXmktpgav690v0akA+HVH+A0aVBf00ikQAg60Y"
DOS_STORAGE_FILE_DELETE
"true"
DOS_STORAGE_FILE_ONLY
"true"
DOS_STORAGE_PATH
"/uploads"
DO_SPACES_ACCESS_KEY
"DO801GZRR2278RR7VLNU"
DO_SPACES_SECRET_KEY
"UoGNtsk+uEX3uIVMhh+h1Vc0JKqVX/CmXnD4bMO2fpk"
GRAPHQL_JWT_AUTH_SECRET_KEY
"MTlf_QVY5pBoO7wlmtVZXhKoK0D_V1FMdCsxdYIiwS6y7fcHuv7iWyrZe3JMHAriVGbpzu4otcSIy3P5Nld2Fw"
HUBSPOT_API_KEY
"pat-na1-d3178711-7708-4282-bf88-5a30ec1db4b1"
HUBSPOT_APP_CLIENT_ID
"8c186cb2-aed8-49f4-a45f-46a4f1207762"
HUBSPOT_APP_CLIENT_SECRET
"df649b75-fa5d-419e-8c05-e5ef76d5746d"
HUBSPOT_APP_REDIRECT_URL
"https://canso.org/wp-json/canso/v1/hubspot/auth"
HUBSPOT_USE_OAUTH2
"true"
LOGGED_IN_KEY
"generateme"
LOGGED_IN_SALT
"generateme"
NONCE_KEY
"generateme"
NONCE_SALT
"generateme"
OLD_FILES_PATH
"/home/runcloud/old/"
PRIVATE_UPLOAD_PATH
"/file"
PRIVATE_UPLOAD_URL_PATH
"https://canso.org/file"
SECURE_AUTH_KEY
"generateme"
SECURE_AUTH_SALT
"generateme"
TEST_NETWORK_EMAILS
"true"
TRACKS_API_URL
"https://cdsglobaltargetcount.azurewebsites.net/api/GlobalTargetCountTrigger"
UPLOAD_URL_PATH
"https://canso.fra1.digitaloceanspaces.com"
WP_ALL_EXPORT_PRO_KEY
"01503ee4e510b1fcf0e80f41d65e3dce"
WP_ALL_EXPORT_PRO_URL
"https://canso.org"
WP_ALL_IMPORT_PRO_KEY
"97cb50a1883ad6cfacfaa1ebfe26b3fe"
WP_ALL_IMPORT_PRO_URL
"https://canso.org"
WP_ENV
"production"
WP_HOME
"https://canso.org"
WP_PLUGIN_GF_KEY
"84d93766bc3f74815f28ec312b5699b8"
WP_SITEURL
"https://canso.org/wp"
Key Value
ACF_PRO_KEY
"b3JkZXJfaWQ9NTA3MTh8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE1LTAyLTI0IDE2OjM5OjA1"
ADMIN_COLUMNS_PRO_KEY
"93d36a90-7700-4e7b-891f-f1336fa12aa8"
AUTH_KEY
"generateme"
AUTH_SALT
"generateme"
DB_HOST
"127.0.0.1"
DB_NAME
"canso_prod_database"
DB_PASSWORD
"LAo9JY4s7z10jqmLPi6upED4aLQjRgFx"
DB_USER
"canso_prod"
DOS_CONTAINER
"canso"
DOS_ENDPOINT
"https://fra1.digitaloceanspaces.com"
DOS_KEY
"XY55QP4ND4Q7FQ3LWCQL"
DOS_SECRET
"0VUcYOXmktpgav690v0akA+HVH+A0aVBf00ikQAg60Y"
DOS_STORAGE_FILE_DELETE
"true"
DOS_STORAGE_FILE_ONLY
"true"
DOS_STORAGE_PATH
"/uploads"
DO_SPACES_ACCESS_KEY
"DO801GZRR2278RR7VLNU"
DO_SPACES_SECRET_KEY
"UoGNtsk+uEX3uIVMhh+h1Vc0JKqVX/CmXnD4bMO2fpk"
GRAPHQL_JWT_AUTH_SECRET_KEY
"MTlf_QVY5pBoO7wlmtVZXhKoK0D_V1FMdCsxdYIiwS6y7fcHuv7iWyrZe3JMHAriVGbpzu4otcSIy3P5Nld2Fw"
HUBSPOT_API_KEY
"pat-na1-d3178711-7708-4282-bf88-5a30ec1db4b1"
HUBSPOT_APP_CLIENT_ID
"8c186cb2-aed8-49f4-a45f-46a4f1207762"
HUBSPOT_APP_CLIENT_SECRET
"df649b75-fa5d-419e-8c05-e5ef76d5746d"
HUBSPOT_APP_REDIRECT_URL
"https://canso.org/wp-json/canso/v1/hubspot/auth"
HUBSPOT_USE_OAUTH2
"true"
LOGGED_IN_KEY
"generateme"
LOGGED_IN_SALT
"generateme"
NONCE_KEY
"generateme"
NONCE_SALT
"generateme"
OLD_FILES_PATH
"/home/runcloud/old/"
PRIVATE_UPLOAD_PATH
"/file"
PRIVATE_UPLOAD_URL_PATH
"https://canso.org/file"
SECURE_AUTH_KEY
"generateme"
SECURE_AUTH_SALT
"generateme"
TEST_NETWORK_EMAILS
"true"
TRACKS_API_URL
"https://cdsglobaltargetcount.azurewebsites.net/api/GlobalTargetCountTrigger"
UPLOAD_URL_PATH
"https://canso.fra1.digitaloceanspaces.com"
WP_ALL_EXPORT_PRO_KEY
"01503ee4e510b1fcf0e80f41d65e3dce"
WP_ALL_EXPORT_PRO_URL
"https://canso.org"
WP_ALL_IMPORT_PRO_KEY
"97cb50a1883ad6cfacfaa1ebfe26b3fe"
WP_ALL_IMPORT_PRO_URL
"https://canso.org"
WP_ENV
"production"
WP_HOME
"https://canso.org"
WP_PLUGIN_GF_KEY
"84d93766bc3f74815f28ec312b5699b8"
WP_SITEURL
"https://canso.org/wp"
0. Whoops\Handler\PrettyPageHandler