/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
"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
8
"Trying to access array offset on value of type bool"
"/home/u800617633/domains/eurocarnavales.es/public_html/catalog/controller/product/product.php"
82
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=3093&page=4&sort=p.price&order=DESC&limit=18"
"parts" => "route=product/product&product_id=3093&page=4&sort=p.price&order=DESC&limit=18"
"query_parms" => array:6 [
"route" => "product/product"
"product_id" => "3093"
"page" => "4"
"sort" => "p.price"
"order" => "DESC"
"limit" => "18"
]
"product_id" => 3093
"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
/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
/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
/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
/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
"/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