Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined offset: 1 Whoops\Exception\ErrorException thrown with message "Undefined offset: 1" Stacktrace: #3 Whoops\Exception\ErrorException in /var/www/clients/client1/web1/web/controller/class/controller/controller.php:645 #2 Whoops\Run:handleError in /var/www/clients/client1/web1/web/controller/class/controller/controller.php:645 #1 CO\SYSTEM\CONTROLLER:_loadConfigFromCache in /var/www/clients/client1/web1/web/controller/class/controller/controller.php:116 #0 CO\SYSTEM\CONTROLLER:init in /var/www/clients/client1/web1/web/index.php:11
Stack frames (4)
3
Whoops\Exception\ErrorException
/var/www/clients/client1/web1/web/controller/class/controller/controller.php645
2
Whoops\Run handleError
/var/www/clients/client1/web1/web/controller/class/controller/controller.php645
1
CO\SYSTEM\CONTROLLER _loadConfigFromCache
/var/www/clients/client1/web1/web/controller/class/controller/controller.php116
0
CO\SYSTEM\CONTROLLER init
/var/www/clients/client1/web1/web/index.php11
/var/www/clients/client1/web1/web/controller/class/controller/controller.php
                    $ret = true;
                }
            }
            return $ret;
        }
    }

    private function _loadConfigFromCache() {
        if ($this->getMemcached()) {
            $memcacheD = new \Memcached();
            if ($memcacheD->addServer($this->getMemcached()->host, $this->getMemcached()->port)) {
                if ($memcacheD->get('controller_config_1') !== false and $memcacheD->get('controller_config_2') !== false) {
                    CONTROLLER\CONFIG::setClasses($memcacheD->get('controller_config_1'));
                    $this->_config = $memcacheD->get('controller_config_2');
                    return false;
                }
            }
        } else {
            $config = file('tmp/cache/config.php');
            $decoded = urldecode($config[1]);
            try {
                $unserialized = unserialize($decoded);
                CONTROLLER\CONFIG::setClasses($unserialized);
            } catch (\Exception $e) {
                if (file_exists('/tmp/cache/config.php')) {
                    unlink('/tmp/cache/config.php');
                }
                return false;
//                \CO\SYSTEM\HTTP\HEADER::redirect('/');
            }
            try {
                $this->_config = unserialize(urldecode($config[2]));

            } catch (\Exception $e) {
                if (file_exists('/tmp/cache/config.php')) {
                    unlink('/tmp/cache/config.php');
                }
                return false;
            }
//            var_dump('from-filecache');
/var/www/clients/client1/web1/web/controller/class/controller/controller.php
                    $ret = true;
                }
            }
            return $ret;
        }
    }

    private function _loadConfigFromCache() {
        if ($this->getMemcached()) {
            $memcacheD = new \Memcached();
            if ($memcacheD->addServer($this->getMemcached()->host, $this->getMemcached()->port)) {
                if ($memcacheD->get('controller_config_1') !== false and $memcacheD->get('controller_config_2') !== false) {
                    CONTROLLER\CONFIG::setClasses($memcacheD->get('controller_config_1'));
                    $this->_config = $memcacheD->get('controller_config_2');
                    return false;
                }
            }
        } else {
            $config = file('tmp/cache/config.php');
            $decoded = urldecode($config[1]);
            try {
                $unserialized = unserialize($decoded);
                CONTROLLER\CONFIG::setClasses($unserialized);
            } catch (\Exception $e) {
                if (file_exists('/tmp/cache/config.php')) {
                    unlink('/tmp/cache/config.php');
                }
                return false;
//                \CO\SYSTEM\HTTP\HEADER::redirect('/');
            }
            try {
                $this->_config = unserialize(urldecode($config[2]));

            } catch (\Exception $e) {
                if (file_exists('/tmp/cache/config.php')) {
                    unlink('/tmp/cache/config.php');
                }
                return false;
            }
//            var_dump('from-filecache');
/var/www/clients/client1/web1/web/controller/class/controller/controller.php
        ini_set('xdebug.var_display_max_children', '-1');
        ini_set('xdebug.var_display_max_depth', '-1');
        session_start();
        spl_autoload_register(array($this, '_autoload'));
        $this->_timer = new TIMER();
        $this->_timer->add('CONTROLLER::init start');
//    var_dump($this->_configLoadedFromCache());
        ERROR::init();
//        if ($this->_useConfigCache()) {
//            $this->_loadConfigFromCache();
//            if (CONTROLLER::getInstance()
//                          ->getConfig() == NULL) {
//                die("A rendszer nincs konfigurálva.");
//            }
//        } else {
//            $this->_generateConfigFromConfigFile();
//            $this->_storeConfigToCache();
//        }
        if ($this->_useConfigCache()) {
            if ($this->_loadConfigFromCache() == false) {
                $this->_generateConfigFromConfigFile();
                $this->_storeConfigToCache();
            }
//            if (CONTROLLER::getInstance()
//                    ->getConfig() == NULL) {
//                die("A rendszer nincs konfigurálva.");
//            }
        } else {
            $this->_generateConfigFromConfigFile();
            $this->_storeConfigToCache();
        }
        RESPONSE::init();
        REQUEST_HANDLER::init();
        $this->_timer->add('CONTROLLER::init end');
        $this->handleControllerOrModuleRedirects();
        \CO\HELPER\POST::initByRawRequestBody();

    }

    private function handleControllerOrModuleRedirects() {
/var/www/clients/client1/web1/web/index.php
<?php

require_once(__DIR__ .'/functions.php');
require_once(__DIR__ .'/controller/class/controller/controller.php');

require_once 'controller/class/domain/domain.php';

ini_set("session.cookie_domain", \CO\SYSTEM\DOMAIN::getDomainName(false, true));
$controller = new CO\SYSTEM\CONTROLLER();
//$controller->useMemcached('127.0.0.1', 11211);
$controller->init();
\CO\HELPER\DATETIME::setTimezoneOffset('+01:00');
$controller->execute();
 

Environment & details:

Key Value
config Array ( )
Key Value
requestParameters cimke/gulyas-istvan
page 5
empty
empty
empty
empty
Key Value
REDIRECT_SCRIPT_URL /cimke/gulyas-istvan
REDIRECT_SCRIPT_URI https://www.vehir.hu/cimke/gulyas-istvan
REDIRECT_TMP /var/www/clients/client1/web1/tmp
REDIRECT_TMPDIR /var/www/clients/client1/web1/tmp
REDIRECT_TEMP /var/www/clients/client1/web1/tmp
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI www.vehir.hu
REDIRECT_STATUS 200
SCRIPT_URL /cimke/gulyas-istvan
SCRIPT_URI https://www.vehir.hu/cimke/gulyas-istvan
TMP /var/www/clients/client1/web1/tmp
TMPDIR /var/www/clients/client1/web1/tmp
TEMP /var/www/clients/client1/web1/tmp
HTTPS on
SSL_TLS_SNI www.vehir.hu
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_IF_MODIFIED_SINCE Thu, 30 Nov 2023 04:27:14 GMT
HTTP_ACCEPT_ENCODING br,gzip
HTTP_HOST www.vehir.hu
HTTP_CONNECTION Keep-Alive
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE <address>Apache/2.4.18 (Ubuntu) Server at www.vehir.hu Port 443</address>
SERVER_SOFTWARE Apache/2.4.18 (Ubuntu)
SERVER_NAME www.vehir.hu
SERVER_ADDR 217.79.142.11
SERVER_PORT 443
REMOTE_ADDR 35.172.230.21
DOCUMENT_ROOT /var/www/vehir.hu/web
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/vehir.hu/web
SERVER_ADMIN webmaster@vehir.hu
SCRIPT_FILENAME /var/www/vehir.hu/web/index.php
REMOTE_PORT 49906
REDIRECT_URL /cimke/gulyas-istvan
REDIRECT_QUERY_STRING requestParameters=cimke/gulyas-istvan&page=5
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING requestParameters=cimke/gulyas-istvan&page=5
REQUEST_URI /cimke/gulyas-istvan?page=5
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1720998562.701
REQUEST_TIME 1720998562
empty
0. CO\SYSTEM\ERROR\Whoops\PrettyErrorLogger