TypeError
array_map(): Argument #2 ($array) must be of type array, null given TypeError thrown with message "array_map(): Argument #2 ($array) must be of type array, null given" Stacktrace: #4 TypeError in /home/runcloud/webapps/canso-prod/web/app/themes/canso/single-network-post.php:19 #3 array_map in /home/runcloud/webapps/canso-prod/web/app/themes/canso/single-network-post.php:19 #2 include in /home/runcloud/webapps/canso-prod/web/wp/wp-includes/template-loader.php:106 #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 (5)
4
TypeError
/web/app/themes/canso/single-network-post.php19
3
array_map
/web/app/themes/canso/single-network-post.php19
2
include
/web/wp/wp-includes/template-loader.php106
1
require_once
/web/wp/wp-blog-header.php19
0
require
/web/index.php5
/home/runcloud/webapps/canso-prod/web/app/themes/canso/single-network-post.php
  1. <?php get_header(); ?>
  2. <?php if( have_posts() ) : while( have_posts() ) : the_post(); global $post; ?>
  3. <section class="bg-white">
  4. <article <?php post_class(); ?>>
  5. <?= view('networks.banner'); ?>
  6. <?= is_authorised_to_read_network() ? view('app.submenu', ['menu' => get_menu_id_by_name('myCANSO Menu'), 'width' => 11]) : ''; ?>
  7. <div class="grid-container pd-v-3">
  8. <div class="grid-x grid-margin-x align-center">
  9. <div class="small-12 medium-10 cell">
  10. <h4><?= implode(', ', wp_list_pluck(array_map('get_post', get_field('networks')), 'post_title')); ?></h4>
  11. <h1><?php the_title(); ?></h1>
  12. <div class="grid-x align-<?= apply_filters( 'display_published_date', true, $post ) ? 'justify' : 'right'; ?> border-bottom mg-v-1">
  13. <?php if ( apply_filters( 'display_published_date', true, $post ) ) : ?>
  14. <div class="icon-label">
  15. <i class="fal fa-clock"></i>
  16. <span><?php the_date('d/m/Y'); ?></span>
  17. </div>
  18. <?php endif; ?>
  19. </div>
  20. <?php if( is_authorised_to_read_network() ) : ?>
Arguments
  1. "array_map(): Argument #2 ($array) must be of type array, null given"
    
/home/runcloud/webapps/canso-prod/web/app/themes/canso/single-network-post.php
<?php get_header(); ?>
 
<?php if( have_posts() ) : while( have_posts() ) : the_post(); global $post; ?>
    
    <section class="bg-white">
        
        <article <?php post_class(); ?>>
            
            <?= view('networks.banner'); ?>
            
            <?= is_authorised_to_read_network() ? view('app.submenu', ['menu' => get_menu_id_by_name('myCANSO Menu'), 'width' => 11]) : ''; ?>
            
            <div class="grid-container pd-v-3">
            
                <div class="grid-x grid-margin-x align-center">
    
                    <div class="small-12 medium-10 cell">
                        
                        <h4><?= implode(', ', wp_list_pluck(array_map('get_post', get_field('networks')), 'post_title')); ?></h4>
                    
                        <h1><?php the_title(); ?></h1>
                        
                        <div class="grid-x align-<?= apply_filters( 'display_published_date', true, $post ) ? 'justify' : 'right'; ?> border-bottom mg-v-1">
                            
                            <?php if ( apply_filters( 'display_published_date', true, $post ) ) : ?>
                            
                                <div class="icon-label">
                        
                                    <i class="fal fa-clock"></i>
                                    
                                    <span><?php the_date('d/m/Y'); ?></span>
                                        
                                </div>
                                
                            <?php endif; ?>
                            
                        </div>
                        
                        <?php if( is_authorised_to_read_network() ) : ?>
                            
/home/runcloud/webapps/canso-prod/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;
}
 
Arguments
  1. "/home/runcloud/webapps/canso-prod/web/app/themes/canso/single-network-post.php"
    
/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
Key Value
PHPSESSID
"5be85afb650c6f31804fcf7fd5e4cc67"
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.65 (Unix) OpenSSL/1.1.1f"
REQUEST_URI
"/member-contributions/to70-safety-in-the-air-begins-with-quality-on-the-ground-atm-safety-whitepaper/"
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
"/member-contributions/to70-safety-in-the-air-begins-with-quality-on-the-ground-atm-safety-whitepaper/"
REMOTE_PORT
"42956"
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
"216.73.216.94"
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_COOKIE
"PHPSESSID=5be85afb650c6f31804fcf7fd5e4cc67"
HTTP_PRIORITY
"u=0, i"
HTTP_ACCEPT_ENCODING
"gzip, deflate, br, zstd"
HTTP_SEC_FETCH_DEST
"document"
HTTP_SEC_FETCH_USER
"?1"
HTTP_SEC_FETCH_MODE
"navigate"
HTTP_SEC_FETCH_SITE
"none"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_UPGRADE_INSECURE_REQUESTS
"1"
HTTP_SEC_CH_UA_PLATFORM
"\"Windows\""
HTTP_SEC_CH_UA_MOBILE
"?0"
HTTP_SEC_CH_UA
"\"Chromium\";v=\"130\", \"HeadlessChrome\";v=\"130\", \"Not?A_Brand\";v=\"99\""
HTTP_CACHE_CONTROL
"no-cache"
HTTP_PRAGMA
"no-cache"
HTTP_CONNECTION
"close"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_FOR
"216.73.216.94"
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
1754856190.932
REQUEST_TIME
1754856190
DB_NAME
"canso_prod_database"
DB_USER
"canso_prod"
DB_PASSWORD
"Jft#Y_SC@ZoQP~PxTSf7q+Vz_#lPe@~J"
WP_ENV
"production"
WP_HOME
"https://canso.org"
WP_SITEURL
"https://canso.org/wp"
AUTH_KEY
"generateme"
SECURE_AUTH_KEY
"generateme"
LOGGED_IN_KEY
"generateme"
NONCE_KEY
"generateme"
AUTH_SALT
"generateme"
SECURE_AUTH_SALT
"generateme"
LOGGED_IN_SALT
"generateme"
NONCE_SALT
"generateme"
ADMIN_COLUMNS_PRO_KEY
"93d36a90-7700-4e7b-891f-f1336fa12aa8"
ACF_PRO_KEY
"b3JkZXJfaWQ9NTA3MTh8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE1LTAyLTI0IDE2OjM5OjA1"
WP_ALL_IMPORT_PRO_KEY
"97cb50a1883ad6cfacfaa1ebfe26b3fe"
WP_ALL_IMPORT_PRO_URL
"https://canso.org"
WP_ALL_EXPORT_PRO_KEY
"01503ee4e510b1fcf0e80f41d65e3dce"
WP_ALL_EXPORT_PRO_URL
"https://canso.org"
WP_PLUGIN_GF_KEY
"84d93766bc3f74815f28ec312b5699b8"
DOS_STORAGE_FILE_ONLY
"true"
DOS_STORAGE_FILE_DELETE
"true"
DOS_CONTAINER
"canso"
DOS_ENDPOINT
"https://fra1.digitaloceanspaces.com"
DOS_STORAGE_PATH
"/uploads"
DOS_KEY
"XY55QP4ND4Q7FQ3LWCQL"
DOS_SECRET
"0VUcYOXmktpgav690v0akA+HVH+A0aVBf00ikQAg60Y"
UPLOAD_URL_PATH
"https://canso.fra1.digitaloceanspaces.com"
PRIVATE_UPLOAD_PATH
"/file"
PRIVATE_UPLOAD_URL_PATH
"https://canso.org/file"
HUBSPOT_API_KEY
"pat-na1-d3178711-7708-4282-bf88-5a30ec1db4b1"
HUBSPOT_USE_OAUTH2
"true"
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"
TRACKS_API_URL
"https://cdsglobaltargetcount.azurewebsites.net/api/GlobalTargetCountTrigger"
TEST_NETWORK_EMAILS
"true"
OLD_FILES_PATH
"/home/runcloud/old/"
DO_SPACES_ACCESS_KEY
"DO801GZRR2278RR7VLNU"
DO_SPACES_SECRET_KEY
"UoGNtsk+uEX3uIVMhh+h1Vc0JKqVX/CmXnD4bMO2fpk"
Key Value
DB_NAME
"canso_prod_database"
DB_USER
"canso_prod"
DB_PASSWORD
"Jft#Y_SC@ZoQP~PxTSf7q+Vz_#lPe@~J"
WP_ENV
"production"
WP_HOME
"https://canso.org"
WP_SITEURL
"https://canso.org/wp"
AUTH_KEY
"generateme"
SECURE_AUTH_KEY
"generateme"
LOGGED_IN_KEY
"generateme"
NONCE_KEY
"generateme"
AUTH_SALT
"generateme"
SECURE_AUTH_SALT
"generateme"
LOGGED_IN_SALT
"generateme"
NONCE_SALT
"generateme"
ADMIN_COLUMNS_PRO_KEY
"93d36a90-7700-4e7b-891f-f1336fa12aa8"
ACF_PRO_KEY
"b3JkZXJfaWQ9NTA3MTh8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE1LTAyLTI0IDE2OjM5OjA1"
WP_ALL_IMPORT_PRO_KEY
"97cb50a1883ad6cfacfaa1ebfe26b3fe"
WP_ALL_IMPORT_PRO_URL
"https://canso.org"
WP_ALL_EXPORT_PRO_KEY
"01503ee4e510b1fcf0e80f41d65e3dce"
WP_ALL_EXPORT_PRO_URL
"https://canso.org"
WP_PLUGIN_GF_KEY
"84d93766bc3f74815f28ec312b5699b8"
DOS_STORAGE_FILE_ONLY
"true"
DOS_STORAGE_FILE_DELETE
"true"
DOS_CONTAINER
"canso"
DOS_ENDPOINT
"https://fra1.digitaloceanspaces.com"
DOS_STORAGE_PATH
"/uploads"
DOS_KEY
"XY55QP4ND4Q7FQ3LWCQL"
DOS_SECRET
"0VUcYOXmktpgav690v0akA+HVH+A0aVBf00ikQAg60Y"
UPLOAD_URL_PATH
"https://canso.fra1.digitaloceanspaces.com"
PRIVATE_UPLOAD_PATH
"/file"
PRIVATE_UPLOAD_URL_PATH
"https://canso.org/file"
HUBSPOT_API_KEY
"pat-na1-d3178711-7708-4282-bf88-5a30ec1db4b1"
HUBSPOT_USE_OAUTH2
"true"
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"
TRACKS_API_URL
"https://cdsglobaltargetcount.azurewebsites.net/api/GlobalTargetCountTrigger"
TEST_NETWORK_EMAILS
"true"
OLD_FILES_PATH
"/home/runcloud/old/"
DO_SPACES_ACCESS_KEY
"DO801GZRR2278RR7VLNU"
DO_SPACES_SECRET_KEY
"UoGNtsk+uEX3uIVMhh+h1Vc0JKqVX/CmXnD4bMO2fpk"
0. Whoops\Handler\PrettyPageHandler