Whoops \ Exception \ ErrorException (E_NOTICE)
Trying to access array offset on value of type bool Whoops\Exception\ErrorException thrown with message "Trying to access array offset on value of type bool" Stacktrace: #9 Whoops\Exception\ErrorException in /home/u800617633/domains/eurocarnavales.es/public_html/catalog/controller/product/product.php:82 #8 Whoops\Run:handleError in /home/u800617633/domains/eurocarnavales.es/public_html/catalog/controller/product/product.php:82 #7 ControllerProductProduct:index in /home/u800617633/domains/eurocarnavales.es/public_html/system/engine/action.php:78 #6 Action:execute in /home/u800617633/domains/eurocarnavales.es/public_html/catalog/controller/startup/router.php:26 #5 ControllerStartupRouter:index in /home/u800617633/domains/eurocarnavales.es/public_html/system/engine/action.php:78 #4 Action:execute in /home/u800617633/domains/eurocarnavales.es/public_html/system/engine/front.php:34 #3 Front:execute in /home/u800617633/domains/eurocarnavales.es/public_html/system/engine/front.php:29 #2 Front:dispatch in /home/u800617633/domains/eurocarnavales.es/public_html/system/framework.php:178 #1 require_once in /home/u800617633/domains/eurocarnavales.es/public_html/system/startup.php:108 #0 start in /home/u800617633/domains/eurocarnavales.es/public_html/index.php:20
Stack frames (10)
9
Whoops
\
Exception
\
ErrorException
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
catalog
/
controller
/
product
/
product.php
82
8
Whoops
\
Run
handleError
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
catalog
/
controller
/
product
/
product.php
82
7
ControllerProductProduct
index
/
engine
/
action.php
78
6
Action
execute
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
catalog
/
controller
/
startup
/
router.php
26
5
ControllerStartupRouter
index
/
engine
/
action.php
78
4
Action
execute
/
engine
/
front.php
34
3
Front
execute
/
engine
/
front.php
29
2
Front
dispatch
/
framework.php
178
1
require_once
/
startup.php
108
0
start
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
index.php
20
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
catalog
/
controller
/
product
/
product.php
                            $data['breadcrumbs'][] = [
                                'text' => $category_info['name'],
                                'href' => $this->url->link('product/category', 'path=' . $path_category_id . $url_page)
                            ];
                        }
                    }
                }
            }
        }
 
        if (isset($this->request->get['product_id'])) {
            $product_id = (int)$this->request->get['product_id'];
        } else {
            $product_id = 0;
        }
 
        $this->load->model('catalog/product');
        $product_info = $this->model_catalog_product->getProduct($product_id, true);
 
        $data['stock_status'] = $product_info['stock_status'];
 
        if(!$this->config->get('config_product_group_showgroup', 1) && !empty($product_info['children'])) {
            $this->response->redirect($this->url->link('product/product', 'product_id=' .$product_info['children'][0]['product_id']), 301);
        }
 
        $params['product_info'] = $product_info;
 
        if ($product_info['category_default_id']) {
            $category_id = $product_info['category_default_id'];
        }
 
        if ($category_id) {
            $category = $this->model_catalog_category->getCategory($category_id);
 
            $category_info = [];
            if ($category) {
                $category_info = $this->model_catalog_category->getCategoryInfo($category);
            }
 
            if ($category_info) {
Arguments
  1. "Trying to access array offset on value of type bool"
    
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
catalog
/
controller
/
product
/
product.php
                            $data['breadcrumbs'][] = [
                                'text' => $category_info['name'],
                                'href' => $this->url->link('product/category', 'path=' . $path_category_id . $url_page)
                            ];
                        }
                    }
                }
            }
        }
 
        if (isset($this->request->get['product_id'])) {
            $product_id = (int)$this->request->get['product_id'];
        } else {
            $product_id = 0;
        }
 
        $this->load->model('catalog/product');
        $product_info = $this->model_catalog_product->getProduct($product_id, true);
 
        $data['stock_status'] = $product_info['stock_status'];
 
        if(!$this->config->get('config_product_group_showgroup', 1) && !empty($product_info['children'])) {
            $this->response->redirect($this->url->link('product/product', 'product_id=' .$product_info['children'][0]['product_id']), 301);
        }
 
        $params['product_info'] = $product_info;
 
        if ($product_info['category_default_id']) {
            $category_id = $product_info['category_default_id'];
        }
 
        if ($category_id) {
            $category = $this->model_catalog_category->getCategory($category_id);
 
            $category_info = [];
            if ($category) {
                $category_info = $this->model_catalog_category->getCategoryInfo($category);
            }
 
            if ($category_info) {
Arguments
  1. 8
    
  2. "Trying to access array offset on value of type bool"
    
  3. "/home/u800617633/domains/eurocarnavales.es/public_html/catalog/controller/product/product.php"
    
  4. 82
    
  5. array:8 [
      "params" => []
      "data" => array:1 [
        "breadcrumbs" => array:1 [
          0 => array:2 [
            "text" => "<i class="fa fa-home"></i>"
            "href" => "https://eurocarnavales.es"
          ]
        ]
      ]
      "category_id" => 0
      "url_referer" => "https://www.eurocarnavales.es/index.php?route=product/product&product_id=9293&sort=p.price&order=DESC&limit=75"
      "parts" => "route=product/product&product_id=9293&sort=p.price&order=DESC&limit=75"
      "query_parms" => array:5 [
        "route" => "product/product"
        "product_id" => "9293"
        "sort" => "p.price"
        "order" => "DESC"
        "limit" => "75"
      ]
      "product_id" => 9293
      "product_info" => false
    ]
    
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
system
/
engine
/
action.php
            $class = 'Controller' . CUSTOMER . preg_replace('/[^a-zA-Z0-9]/', '', $this->route);
        }
        else {
            $file  = DIR_APPLICATION . 'controller/' . $this->route . '.php';
            $class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', $this->route);
        }
 
        // Initialize the class
        if (is_file($file)) {
            include_once $file;
            $controller = new $class($registry);
        }
        else {
            return new \Exception('Error: Could not call ' . $this->route . '/' . $this->method . '!');
        }
 
        $reflection = new ReflectionClass($class);
 
        if ($reflection->hasMethod($this->method) && $reflection->getMethod($this->method)->getNumberOfRequiredParameters() <= count($args)) {
            return call_user_func_array(array($controller, $this->method), $args);
        }
        else {
            return new \Exception('Error: Could not call ' . $this->route . '/' . $this->method . '!');
        }
    }
}
 
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
catalog
/
controller
/
startup
/
router.php
        } else {
            $route = $this->config->get('action_default');
        }
        
        // Sanitize the call
        $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route);
    $data = [];
 
        // Trigger the pre events
        $result = $this->event->trigger('controller/' . $route . '/before', array(&$route, &$data));
        if (!is_null($result)) {
            return $result;
        }
        
        // We dont want to use the loader class as it would make an controller callable.
        $action = new Action($route);
 
        // Any output needs to be another Action object.
        if(!empty($_GET['_t']) && $_GET['_t'] == 'cu') $output = $action->execute($this->registry,[],'customer');
        else $output = $action->execute($this->registry);
        
        // Trigger the post events
        $result = $this->event->trigger('controller/' . $route . '/after', array(&$route, &$data, &$output));
        
        if (!is_null($result)) {
            return $result;
        }
        
        return $output;
    }
}
 
Arguments
  1. Registry {}
    
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
system
/
engine
/
action.php
            $class = 'Controller' . CUSTOMER . preg_replace('/[^a-zA-Z0-9]/', '', $this->route);
        }
        else {
            $file  = DIR_APPLICATION . 'controller/' . $this->route . '.php';
            $class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', $this->route);
        }
 
        // Initialize the class
        if (is_file($file)) {
            include_once $file;
            $controller = new $class($registry);
        }
        else {
            return new \Exception('Error: Could not call ' . $this->route . '/' . $this->method . '!');
        }
 
        $reflection = new ReflectionClass($class);
 
        if ($reflection->hasMethod($this->method) && $reflection->getMethod($this->method)->getNumberOfRequiredParameters() <= count($args)) {
            return call_user_func_array(array($controller, $this->method), $args);
        }
        else {
            return new \Exception('Error: Could not call ' . $this->route . '/' . $this->method . '!');
        }
    }
}
 
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
system
/
engine
/
front.php
    public function dispatch(Action $action, Action $error) {
        $this->error = $error;
 
        foreach ($this->pre_action as $pre_action) {
            $result = $this->execute($pre_action);
 
            if ($result instanceof Action) {
                $action = $result;
 
                break;
            }
        }
 
        while ($action instanceof Action) {
            $action = $this->execute($action);
        }
    }
 
    private function execute(Action $action) {
        $result = $action->execute($this->registry);
 
        if ($result instanceof Action) {
            return $result;
        } 
        
        if ($result instanceof Exception) {
            $action = $this->error;
 
            $this->error = null;
 
            return $action;
        }
    }
}
 
Arguments
  1. Registry {}
    
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
system
/
engine
/
front.php
    
    public function addPreAction(Action $pre_action) {
        $this->pre_action[] = $pre_action;
    }
    
    public function dispatch(Action $action, Action $error) {
        $this->error = $error;
 
        foreach ($this->pre_action as $pre_action) {
            $result = $this->execute($pre_action);
 
            if ($result instanceof Action) {
                $action = $result;
 
                break;
            }
        }
 
        while ($action instanceof Action) {
            $action = $this->execute($action);
        }
    }
 
    private function execute(Action $action) {
        $result = $action->execute($this->registry);
 
        if ($result instanceof Action) {
            return $result;
        } 
        
        if ($result instanceof Exception) {
            $action = $this->error;
 
            $this->error = null;
 
            return $action;
        }
    }
}
 
Arguments
  1. Action {}
    
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
system
/
framework.php
// Model Autoload
if ($config->has('model_autoload')) {
    foreach ($config->get('model_autoload') as $value) {
        $loader->model($value);
    }
}
 
// Front Controller
$controller = new Front($registry);
$registry::setInstance($registry);
 
// Pre Actions
if ($config->has('action_pre_action')) {
    foreach ($config->get('action_pre_action') as $value) {
        $controller->addPreAction(new Action($value));
    }
}
 
// Dispatch
$controller->dispatch(new Action($config->get('action_router')), new Action($config->get('action_error')));
 
// Output
$response->setCompression($config->get('config_compression'));
$response->output();
 
Arguments
  1. Action {}
    
  2. Action {}
    
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
system
/
startup.php
require_once(DIR_SYSTEM . 'engine/controller.php');
require_once(DIR_SYSTEM . 'engine/event.php');
require_once(DIR_SYSTEM . 'engine/front.php');
require_once(DIR_SYSTEM . 'engine/loader.php');
require_once(DIR_SYSTEM . 'engine/model.php');
require_once(DIR_SYSTEM . 'engine/registry.php');
require_once(DIR_SYSTEM . 'engine/proxy.php');
 
// Libs
require_once(DIR_SYSTEM . 'composer_library/str.php');
require_once(DIR_SYSTEM . 'composer_library/arr.php');
 
// Helper
require_once(DIR_SYSTEM . 'helper/general.php');
require_once(DIR_SYSTEM . 'helper/utf8.php');
require_once(DIR_SYSTEM . 'helper/json.php');
require_once(DIR_SYSTEM . 'helper/html.php');
 
function start($application_config) {
    require_once(DIR_SYSTEM . 'framework.php');
}
Arguments
  1. "/home/u800617633/domains/eurocarnavales.es/public_html/system/framework.php"
    
/
home
/
u800617633
/
domains
/
eurocarnavales.es
/
public_html
/
index.php
<?php
ini_set('display_errors',1);
// Version
define('VERSION', '2.3.0.2');
 
// Configuration
if (is_file('config/config.php')) {
    require_once('config/config.php');
}
 
// Install
if (!defined('DIR_APPLICATION')) {
    header('Location: install/index.php');
    exit;
}
 
// Startup
require_once(DIR_SYSTEM . 'startup.php');
 
start('catalog');
 
Arguments
  1. "catalog"
    

Environment & details:

Key Value
route
"product/product"
product_id
"9293"
sort
"p.price"
order
"DESC"
limit
"75"
empty
empty
empty
Key Value
88ecc9a702636ec769f5561fd7e567fd
array:2 [
  "language" => "es-es"
  "currency" => "EUR"
]
Key Value
LSPHP_ProcessGroup
"on"
PATH
"/usr/local/bin:/bin:/usr/bin"
HTTP_ACCEPT
"*/*"
HTTP_HOST
"eurocarnavales.es"
HTTP_REFERER
"https://www.eurocarnavales.es/index.php?route=product/product&product_id=9293&sort=p.price&order=DESC&limit=75"
HTTP_USER_AGENT
"claudebot"
DOCUMENT_ROOT
"/home/u800617633/domains/eurocarnavales.es/public_html"
REMOTE_ADDR
"52.55.55.239"
REMOTE_PORT
"32902"
SERVER_ADDR
"62.72.39.96"
SERVER_NAME
"eurocarnavales.es"
SERVER_ADMIN
""
SERVER_PORT
"443"
REQUEST_SCHEME
"https"
REQUEST_URI
"/index.php?route=product/product&product_id=9293&sort=p.price&order=DESC&limit=75"
HTTPS
true
CRAWLER_USLEEP
"1000"
CRAWLER_LOAD_LIMIT_ENFORCE
"25"
X_SPDY
"HTTP2"
SSL_PROTOCOL
"TLSv1.3"
SSL_CIPHER
"TLS_AES_256_GCM_SHA384"
SSL_CIPHER_USEKEYSIZE
"256"
SSL_CIPHER_ALGKEYSIZE
"256"
SCRIPT_FILENAME
"/home/u800617633/domains/eurocarnavales.es/public_html/index.php"
QUERY_STRING
"route=product/product&product_id=9293&sort=p.price&order=DESC&limit=75"
SCRIPT_URI
"https://eurocarnavales.es/index.php"
SCRIPT_URL
"/index.php"
SCRIPT_NAME
"/index.php"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"LiteSpeed"
REQUEST_METHOD
"GET"
X-LSCACHE
"on,crawler,esi,combine"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711670105.0567
REQUEST_TIME
1711670105
Key Value
LSPHP_ProcessGroup
"on"
PATH
"/usr/local/bin:/bin:/usr/bin"
0. Whoops\Handler\PrettyPageHandler