TypeError
count(): Argument #1 ($value) must be of type Countable|array, string given TypeError thrown with message "count(): Argument #1 ($value) must be of type Countable|array, string given" Stacktrace: #12 TypeError in /home/borsainside-com/webapps/borsainside-com/releases/196/web/app/plugins/seowebbs-financial-popup/seowebbs-financial-popup.php:26 #11 {closure} in /home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/class-wp-hook.php:308 #10 WP_Hook:apply_filters in /home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/class-wp-hook.php:332 #9 WP_Hook:do_action in /home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/plugin.php:517 #8 do_action in /home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/script-loader.php:2194 #7 wp_enqueue_scripts in /home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/class-wp-hook.php:308 #6 WP_Hook:apply_filters in /home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/class-wp-hook.php:332 #5 WP_Hook:do_action in /home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/plugin.php:517 #4 do_action in /home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/general-template.php:3049 #3 wp_head in /home/borsainside-com/webapps/borsainside-com/releases/196/web/app/themes/borsainside/index.php:8 #2 include in /home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/template-loader.php:106 #1 require_once in /home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-blog-header.php:19 #0 require in /home/borsainside-com/webapps/borsainside-com/releases/196/web/index.php:6
12
TypeError
/home/borsainside-com/webapps/borsainside-com/releases/196/web/app/plugins/seowebbs-financial-popup/seowebbs-financial-popup.php26
11
{closure}
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/class-wp-hook.php308
10
WP_Hook apply_filters
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/class-wp-hook.php332
9
WP_Hook do_action
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/plugin.php517
8
do_action
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/script-loader.php2194
7
wp_enqueue_scripts
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/class-wp-hook.php308
6
WP_Hook apply_filters
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/class-wp-hook.php332
5
WP_Hook do_action
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/plugin.php517
4
do_action
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/general-template.php3049
3
wp_head
/index.php8
2
include
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/template-loader.php106
1
require_once
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-blog-header.php19
0
require
/home/borsainside-com/webapps/borsainside-com/releases/196/web/index.php6
/home/borsainside-com/webapps/borsainside-com/releases/196/web/app/plugins/seowebbs-financial-popup/seowebbs-financial-popup.php
 * Author URI: https://www.encodia.it
 * License: GPLv2 License
 * Version: 2.0.0
 */
 
define('SFP_PATH', dirname(__FILE__));
define('SFP_URL', plugin_dir_url(__FILE__));
 
require SFP_PATH . '/classes/FinancialPopup.php';
 
add_action(
    'wp_enqueue_scripts',
    function (): void {
 
        $plugin_data = get_plugin_data(__FILE__);
        $plugin_version = $plugin_data ? $plugin_data['Version'] : '';
 
        $popups = FinancialPopup::getPopups();
 
        if (count($popups) === 0) {
            return;
        }
 
        wp_enqueue_style('financial-popup', SFP_URL . 'css/financial-popup.css', [], $plugin_version, 'screen');
        wp_enqueue_script('financial-popup', SFP_URL . 'js/financial-popup.js', ['jquery'], $plugin_version, true);
 
        wp_localize_script(
            'financial-popup',
            'financial_popup',
            [
                'popups' => $popups,
            ]
        );
    }
);
 
add_action(
    'wp_footer',
    function (): void {
        echo FinancialPopup::getPopup();
Arguments
  1. "count(): Argument #1 ($value) must be of type Countable|array, string given"
    
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/class-wp-hook.php
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args                           = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
            $priority                                 = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 == $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level                      = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/plugin.php
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    if ( empty( $arg ) ) {
        $arg[] = '';
    } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
        // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
        $arg[0] = $arg[0][0];
    }
 
    $wp_filter[ $hook_name ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Calls the callback functions that have been added to an action hook, specifying arguments in an array.
 *
 * @since 2.1.0
 *
 * @see do_action() This function is identical, but the arguments passed to the
 *                  functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_actions        Stores the number of times each action was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the action to be executed.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
 */
function do_action_ref_array( $hook_name, $args ) {
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/script-loader.php
     * @since 2.8.0
     */
    do_action( 'wp_print_footer_scripts' );
}
 
/**
 * Wrapper for do_action( 'wp_enqueue_scripts' ).
 *
 * Allows plugins to queue scripts for the front end using wp_enqueue_script().
 * Runs first in wp_head() where all is_home(), is_page(), etc. functions are available.
 *
 * @since 2.8.0
 */
function wp_enqueue_scripts() {
    /**
     * Fires when scripts and styles are enqueued.
     *
     * @since 2.8.0
     */
    do_action( 'wp_enqueue_scripts' );
}
 
/**
 * Prints the styles queue in the HTML head on admin pages.
 *
 * @since 2.8.0
 *
 * @global bool $concatenate_scripts
 *
 * @return array
 */
function print_admin_styles() {
    global $concatenate_scripts;
 
    $wp_styles = wp_styles();
 
    script_concat_settings();
    $wp_styles->do_concat = $concatenate_scripts;
    $wp_styles->do_items( false );
 
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/class-wp-hook.php
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args                           = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
            $priority                                 = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 == $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level                      = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/plugin.php
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    if ( empty( $arg ) ) {
        $arg[] = '';
    } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
        // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
        $arg[0] = $arg[0][0];
    }
 
    $wp_filter[ $hook_name ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Calls the callback functions that have been added to an action hook, specifying arguments in an array.
 *
 * @since 2.1.0
 *
 * @see do_action() This function is identical, but the arguments passed to the
 *                  functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_actions        Stores the number of times each action was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the action to be executed.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
 */
function do_action_ref_array( $hook_name, $args ) {
/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/general-template.php
     * @param string $before           The HTML to output before the date.
     * @param string $after            The HTML to output after the date.
     */
    echo apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );
}
 
/**
 * Fires the wp_head action.
 *
 * See {@see 'wp_head'}.
 *
 * @since 1.2.0
 */
function wp_head() {
    /**
     * Prints scripts or data in the head tag on the front end.
     *
     * @since 1.5.0
     */
    do_action( 'wp_head' );
}
 
/**
 * Fires the wp_footer action.
 *
 * See {@see 'wp_footer'}.
 *
 * @since 1.5.1
 */
function wp_footer() {
    /**
     * Prints scripts or data before the closing body tag on the front end.
     *
     * @since 1.5.1
     */
    do_action( 'wp_footer' );
}
 
/**
 * Fires the wp_body_open action.
/home/borsainside-com/webapps/borsainside-com/releases/196/web/app/themes/borsainside/index.php
<!doctype html>
<html <?php
language_attributes(); ?>>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <?php
    wp_head(); ?>
  <!-- Favicon -->
  <link rel="apple-touch-icon" sizes="180x180" href="https://static.borsainside.com/favicon/apple-touch-icon.png">
  <link rel="icon" type="image/png" sizes="32x32" href="https://static.borsainside.com/favicon/favicon-32x32.png">
  <link rel="icon" type="image/png" sizes="16x16" href="https://static.borsainside.com/favicon/favicon-16x16.png">
  <link rel="manifest" href="https://static.borsainside.com/favicon/site.webmanifest">
  <link rel="mask-icon" href="https://static.borsainside.com/favicon/safari-pinned-tab.svg" color="#5bbad5">
  <meta name="msapplication-TileColor" content="#da532c">
  <meta name="theme-color" content="#ffffff">
</head>
 
<body <?php
body_class(env('WP_ENV') === 'development' ? 'debug-screens' : ''); ?>>
<?php
wp_body_open(); ?>
<?php
do_action('get_header'); ?>
 
<div id="app" class="flex flex-col min-h-screen">
    <?php
    echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?>
</div><!-- #app -->
 
<?php
do_action('get_footer'); ?>
<?php
wp_footer(); ?>
</body>
</html>
 
/home/borsainside-com/webapps/borsainside-com/releases/196/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/borsainside-com/webapps/borsainside-com/releases/196/web/app/themes/borsainside/index.php"
    
/home/borsainside-com/webapps/borsainside-com/releases/196/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/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-includes/template-loader.php"
    
/home/borsainside-com/webapps/borsainside-com/releases/196/web/index.php
<?php
/**
 * WordPress View Bootstrapper
 */
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
 
Arguments
  1. "/home/borsainside-com/webapps/borsainside-com/releases/196/web/wp/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"nginx/1.21.4"
REQUEST_URI
"/mercati_usa/wall-street-chiusura-negativa-male-i-ciclici-ed-i-titoli-high-tech-28-01-2010/"
USER
"borsainside-com"
HOME
"/home/borsainside-com"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"www.borsainside.com"
HTTP_ACCEPT_ENCODING
"br,gzip"
HTTP_IF_MODIFIED_SINCE
"Thu, 01 Dec 2022 19:15:26 GMT"
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/)"
REDIRECT_STATUS
"200"
SERVER_NAME
"www.borsainside.com"
SERVER_PORT
"443"
SERVER_ADDR
"10.19.0.6"
REMOTE_PORT
"37282"
REMOTE_ADDR
"34.229.131.158"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
REQUEST_SCHEME
"https"
SERVER_PROTOCOL
"HTTP/1.1"
DOCUMENT_URI
"/index.php"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
""
DOCUMENT_ROOT
"/home/borsainside-com/webapps/borsainside-com/current/web"
SCRIPT_FILENAME
"/home/borsainside-com/webapps/borsainside-com/releases/196/web/index.php"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1685525089.5188
REQUEST_TIME
1685525089
DB_NAME
"borsainside_com"
DB_USER
"borsainside_com"
DB_PASSWORD
"******************************************"
DB_HOST
"localhost"
DB_PREFIX
"wp_"
WP_ENV
"development"
WP_HOME
"https://www.borsainside.com"
WP_SITEURL
"https://www.borsainside.com/wp"
WP_DEBUG_LOG
"/home/borsainside-com/webapps/borsainside-com/logs/debug.log"
AUTH_KEY
"****************************************************************"
SECURE_AUTH_KEY
"****************************************************************"
LOGGED_IN_KEY
"****************************************************************"
NONCE_KEY
"****************************************************************"
AUTH_SALT
"****************************************************************"
SECURE_AUTH_SALT
"****************************************************************"
LOGGED_IN_SALT
"****************************************************************"
NONCE_SALT
"****************************************************************"
WP_POST_REVISIONS
"1"
DISABLE_WP_CRON
"true"
ACF_PRO_KEY
"b3JkZXJfaWQ9ODc1NTJ8dHlwZT1wZXJzb25hbHxkYXRlPTIwMTYtMDgtMTMgMDk6Mjc6NTM="
RANK_MATH_PRO_API
"71ce2d77eb3521772f195885c1880c11"
DO_SPACES_ACCESS_KEY
"BXO2WELUOLS5KXEOBQ6L"
DO_SPACES_SECRET_KEY
"YItHEpv0K7D1wB0U4oT1e1u7QLC0RG9bMzF0Te29wDM"
WP_ROCKET_KEY
"9c734113"
WP_ROCKET_EMAIL
"davide.prevosto@encodia.it"
WP_ROCKET_WHITE_LABEL_FOOTPRINT
"true"
WP_ROCKET_WHITE_LABEL_ACCOUNT
"true"
MEDIA_TRASH
"true"
Key Value
DB_NAME
"borsainside_com"
DB_USER
"borsainside_com"
DB_PASSWORD
"******************************************"
DB_HOST
"localhost"
DB_PREFIX
"wp_"
WP_ENV
"development"
WP_HOME
"https://www.borsainside.com"
WP_SITEURL
"https://www.borsainside.com/wp"
WP_DEBUG_LOG
"/home/borsainside-com/webapps/borsainside-com/logs/debug.log"
AUTH_KEY
"****************************************************************"
SECURE_AUTH_KEY
"****************************************************************"
LOGGED_IN_KEY
"****************************************************************"
NONCE_KEY
"****************************************************************"
AUTH_SALT
"****************************************************************"
SECURE_AUTH_SALT
"****************************************************************"
LOGGED_IN_SALT
"****************************************************************"
NONCE_SALT
"****************************************************************"
WP_POST_REVISIONS
"1"
DISABLE_WP_CRON
"true"
ACF_PRO_KEY
"b3JkZXJfaWQ9ODc1NTJ8dHlwZT1wZXJzb25hbHxkYXRlPTIwMTYtMDgtMTMgMDk6Mjc6NTM="
RANK_MATH_PRO_API
"71ce2d77eb3521772f195885c1880c11"
DO_SPACES_ACCESS_KEY
"BXO2WELUOLS5KXEOBQ6L"
DO_SPACES_SECRET_KEY
"YItHEpv0K7D1wB0U4oT1e1u7QLC0RG9bMzF0Te29wDM"
WP_ROCKET_KEY
"9c734113"
WP_ROCKET_EMAIL
"davide.prevosto@encodia.it"
WP_ROCKET_WHITE_LABEL_FOOTPRINT
"true"
WP_ROCKET_WHITE_LABEL_ACCOUNT
"true"
MEDIA_TRASH
"true"
0. Whoops\Handler\PrettyPageHandler