TypeError
array_key_exists(): Argument #2 ($array) must be of type array, bool given TypeError thrown with message "array_key_exists(): Argument #2 ($array) must be of type array, bool given" Stacktrace: #5 TypeError in /var/www/fastuser/data/www/cybertorrent.pro/25327be6be125af26d26d2de473ad5a3/sape.php:1228 #4 SAPE_client:_set_data in /var/www/fastuser/data/www/cybertorrent.pro/25327be6be125af26d26d2de473ad5a3/sape.php:537 #3 SAPE_base:_load_data in /var/www/fastuser/data/www/cybertorrent.pro/25327be6be125af26d26d2de473ad5a3/sape.php:636 #2 SAPE_client:__construct in /var/www/fastuser/data/www/cybertorrent.pro/library/includes/page_footer.php:35 #1 require in /var/www/fastuser/data/www/cybertorrent.pro/library/includes/functions.php:1977 #0 print_page in /var/www/fastuser/data/www/cybertorrent.pro/viewtopic.php:799
Stack frames (6)
5
TypeError
/25327be6be125af26d26d2de473ad5a3/sape.php1228
4
SAPE_client _set_data
/25327be6be125af26d26d2de473ad5a3/sape.php537
3
SAPE_base _load_data
/25327be6be125af26d26d2de473ad5a3/sape.php636
2
SAPE_client __construct
/library/includes/page_footer.php35
1
require
/library/includes/functions.php1977
0
print_page
/viewtopic.php799
/var/www/fastuser/data/www/cybertorrent.pro/25327be6be125af26d26d2de473ad5a3/sape.php
        return '/code.php?user=' . _SAPE_USER . '&host=' . $this->_host;
    }
 
    protected function _set_data($data)
    {
        if ($this->_ignore_case) {
            $this->_links = array_change_key_case($data);
        } else {
            $this->_links = $data;
        }
        if (isset($this->_links['__sape_delimiter__'])) {
            $this->_links_delimiter = $this->_links['__sape_delimiter__'];
        }
        // определяем кодировку кеша
        if (isset($this->_links['__sape_charset__'])) {
            $this->_sape_charset = $this->_links['__sape_charset__'];
        } else {
            $this->_sape_charset = '';
        }
        if (@array_key_exists($this->_request_uri, $this->_links) && is_array($this->_links[$this->_request_uri])) {
            $this->_links_page = $this->_links[$this->_request_uri];
        } else {
            if (isset($this->_links['__sape_new_url__']) && strlen($this->_links['__sape_new_url__'])) {
                if ($this->_is_our_bot || $this->_force_show_code) {
                    $this->_links_page = $this->_links['__sape_new_url__'];
                }
            }
        }
 
        if (@array_key_exists($this->_request_uri, $this->_links['__sape_teasers__']) && is_array($this->_links['__sape_teasers__'][$this->_request_uri])) {
            $this->_teasers_page = $this->_links['__sape_teasers__'][$this->_request_uri];
        }
 
        //Есть ли обязательный вывод
        if (isset($this->_links['__sape_page_obligatory_output__'])) {
            $this->_page_obligatory_output = $this->_links['__sape_page_obligatory_output__'];
        }
 
        // Есть ли флаг блочных ссылок
        if (isset($this->_links['__sape_show_only_block__'])) {
Arguments
  1. "array_key_exists(): Argument #2 ($array) must be of type array, bool given"
    
/var/www/fastuser/data/www/cybertorrent.pro/25327be6be125af26d26d2de473ad5a3/sape.php
                            $data_new = @serialize($hash);
                            if ($data_new) {
                                $data = $data_new;
                            }
 
                            $this->_write($this->_db_file, $data);
                            break;
                        }
                    }
                }
            }
        }
 
        // Убиваем PHPSESSID
        if (strlen(session_id())) {
            $session            = session_name() . '=' . session_id();
            $this->_request_uri = str_replace(array('?' . $session, '&' . $session), '', $this->_request_uri);
        }
 
        $this->_set_data(@unserialize($data));
 
        return true;
    }
 
    protected function _return_obligatory_page_content()
    {
        $s_globals = new SAPE_globals();
 
        $html = '';
        if (isset($this->_page_obligatory_output) && !empty($this->_page_obligatory_output)
            && false == $s_globals->page_obligatory_output_shown()
        ) {
            $s_globals->page_obligatory_output_shown(true);
            $html = $this->_page_obligatory_output;
        }
 
        return $html;
    }
 
    /**
/var/www/fastuser/data/www/cybertorrent.pro/25327be6be125af26d26d2de473ad5a3/sape.php
{
 
    protected $_links_delimiter = '';
    protected $_links           = array();
    protected $_links_page      = array();
    protected $_teasers_page    = array();
 
    protected $_user_agent         = 'SAPE_Client PHP';
    protected $_show_only_block    = false;
    protected $_block_tpl          = '';
    protected $_block_tpl_options  = array();
    protected $_block_uri_idna     = array();
    protected $_return_links_calls;
    protected $_teasers_css_showed = false;
 
    public function __construct($options = null)
    {
        parent::__construct($options);
 
        $this->_load_data();
    }
 
    /**
     * Обработка html для массива ссылок
     *
     * @param string     $html
     * @param null|array $options
     *
     * @return string
     */
    protected function _return_array_links_html($html, $options = null)
    {
 
        if (empty($options)) {
            $options = array();
        }
 
        // если запрошена определенная кодировка, и известна кодировка кеша, и они разные, конвертируем в заданную
        if (
            strlen($this->_charset) > 0
/var/www/fastuser/data/www/cybertorrent.pro/library/includes/page_footer.php
    echo $client_lnk->build_links(); 
 
    
if (!defined('BLOCK_FILE'))
include_once($_SERVER['DOCUMENT_ROOT'].'/putslinkshere/mainlink.php');
$o['USERNAME'] = '88D26BB7517D8C0F4C196662EE0938C6';
 
 
// код Маинлинка
    */ 
     // sape
 
if (!defined('_SAPE_USER'))
define('_SAPE_USER', '25327be6be125af26d26d2de473ad5a3');
require_once(realpath($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php'));
$o = array();
$o['multi_site'] = true; //Указывает скрипту наличие нескольких сайтов
$o['charset'] = 'utf-8';
$o['force_show_code'] = true;
$sape = new SAPE_client($o);
 
echo $sape->return_links();
 
if (!defined('BB_ROOT')) {
    die(basename(__FILE__));
}
 
global $bb_cfg, $userdata, $template, $DBS, $lang;
 
if (!empty($template)) {
    $template->assign_vars([
        'SIMPLE_FOOTER' => !empty($gen_simple_header),
        'POWERED' => 'Fueled by <a target="_blank" href="https://github.com/torrentpier/torrentpier">TorrentPier</a> &copy; 2005-' . date('Y'),
        'SHOW_ADMIN_LINK' => (IS_ADMIN && !defined('IN_ADMIN')),
        'ADMIN_LINK_HREF' => 'admin/index.php',
    ]);
 
    $template->set_filenames(['page_footer' => 'page_footer.tpl']);
    $template->pparse('page_footer');
}
/var/www/fastuser/data/www/cybertorrent.pro/library/includes/functions.php
 *          'no_footer'
 */
function print_page($args, $type = '', $mode = '')
{
    global $template, $gen_simple_header;
 
    $tpl = (is_array($args) && !empty($args['tpl'])) ? $args['tpl'] : $args;
    $tpl = ($type === 'admin') ? ADMIN_TPL_DIR . $tpl : $tpl;
 
    $gen_simple_header = (is_array($args) && !empty($args['simple']) or $type === 'simple') ? true : $gen_simple_header;
 
    if ($mode !== 'no_header') {
        require(PAGE_HEADER);
    }
 
    $template->set_filenames(['body' => $tpl]);
    $template->pparse('body');
 
    if ($mode !== 'no_footer') {
        require(PAGE_FOOTER);
    }
}
 
function caching_output($enabled, $mode, $cache_var_name, $ttl = 300)
{
    if (!$enabled || !CACHE('bb_cache')->used) {
        return;
    }
 
    if ($mode == 'send') {
        if ($cached_contents = CACHE('bb_cache')->get($cache_var_name)) {
            exit($cached_contents);
        }
    } elseif ($mode == 'store') {
        if ($output = ob_get_contents()) {
            CACHE('bb_cache')->set($cache_var_name, $output, $ttl);
        }
    }
}
 
Arguments
  1. "/var/www/fastuser/data/www/cybertorrent.pro/library/includes/page_footer.php"
    
/var/www/fastuser/data/www/cybertorrent.pro/viewtopic.php
 
        if (!IS_GUEST) {
            $notify_user = bf($userdata['user_opt'], 'user_opt', 'user_notify');
 
            $template->assign_vars(['QR_NOTIFY_CHECKED' => ($notify_user) ? ($notify_user && $is_watching_topic) : $is_watching_topic]);
        }
    }
}
 
foreach ($is_auth as $name => $is) {
    $template->assign_vars([strtoupper($name) => $is]);
}
 
$template->assign_vars(['PG_ROW_CLASS' => $pg_row_class ?? 'row1']);
 
if (IS_ADMIN) {
    $template->assign_vars(['U_LOGS' => "admin/admin_log.php?t=$topic_id&amp;db={$bb_cfg['log_days_keep']}"]);
}
 
print_page('viewtopic.tpl');
 

Environment & details:

Key Value
t
"2805"
empty
empty
empty
empty
Key Value
HTTP_HOST
"cybertorrent.pro"
HTTP_X_REAL_IP
"34.204.176.71"
HTTP_X_FORWARDED_FOR
"34.204.176.71"
HTTP_X_FORWARDED_PORT
"80"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_CONNECTION
"close"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_ACCEPT_ENCODING
"br,gzip"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
SERVER_SIGNATURE
"<address>Apache/2.4.52 (Ubuntu) Server at cybertorrent.pro Port 80</address>\n"
SERVER_SOFTWARE
"Apache/2.4.52 (Ubuntu)"
SERVER_NAME
"cybertorrent.pro"
SERVER_ADDR
"127.0.0.1"
SERVER_PORT
"80"
REMOTE_ADDR
"34.204.176.71"
DOCUMENT_ROOT
"/var/www/fastuser/data/www/cybertorrent.pro"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/var/www/fastuser/data/www/cybertorrent.pro"
SERVER_ADMIN
"admin@cybertorrent.pro"
SCRIPT_FILENAME
"/var/www/fastuser/data/www/cybertorrent.pro/viewtopic.php"
REMOTE_PORT
"59094"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"t=2805"
REQUEST_URI
"/viewtopic.php?t=2805"
SCRIPT_NAME
"/viewtopic.php"
PHP_SELF
"/viewtopic.php"
REQUEST_TIME_FLOAT
1730972554.8761
REQUEST_TIME
1730972554
HTTP_REFERER
""
APP_ENV
"local"
APP_CRON_ENABLED
"false"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"powertracker"
DB_USERNAME
"powertracker"
DB_PASSWORD
"UbSuGN2RsZuefgHJ"
Key Value
APP_ENV
"local"
APP_CRON_ENABLED
"false"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"powertracker"
DB_USERNAME
"powertracker"
DB_PASSWORD
"UbSuGN2RsZuefgHJ"
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\PlainTextHandler