Post by Emi » Mon Apr 30, 2018 9:21 pm

Hola, a ver si alguien puede ayudar.

Acabo de instalar una version limpia de OC 2.3.0.2, todo Ok.

El problema es que le instalo un Theme siguiendo las instrucciones que trae, pero al darle a instalar aparece el mensaje:

Journal Installation Error
Make sure you have uploaded all Journal files to your server and successfully replaced system/engine/front.php file.

Lo que pasa es que al sustituir el archivo front.php aparece el siguiente mensaje:

Fatal error: Call to a member function get() on a non-object in /home/s15f5219/public_html/mundocomics.es/system/engine/front.php on line 45


Os dejo dicho archivo completo que trae el theme:

<?php
final class Front {
protected $registry;
protected $pre_action = array();
protected $error;

/* Journal2 Theme modification */
public static $IS_INSTALLER = false;
public static $IS_JOURNAL = false;
public static $IS_OC2 = false;
public static $IS_ADMIN = false;
/* End of Journal2 Theme modification */

public function __construct($registry) {
$this->registry = $registry;
}

public function addPreAction($pre_action) {
$this->pre_action[] = $pre_action;
}

public function dispatch($action, $error) {
$this->error = $error;

foreach ($this->pre_action as $pre_action) {
$result = $this->execute($pre_action);

if ($result) {
$action = $result;

break;
}
}

/* Journal2 Theme modification */
if (defined('HTTP_OPENCART')) {
self::$IS_INSTALLER = true;
} else if (defined('VERSION')) {
global $config;
self::$IS_OC2 = version_compare(VERSION, '2', '>=');
if (file_exists(DIR_APPLICATION . 'model/journal2/journal2.php')) {
require_once DIR_APPLICATION . 'model/journal2/journal2.php';
}
self::$IS_ADMIN = defined('JOURNAL_IS_ADMIN');
self::$IS_JOURNAL = $config->get('config_template') === 'journal2' || $config->get('theme_default_directory') === 'journal2';
}

require_once(DIR_SYSTEM . 'journal2/startup.php');
/* End of Journal2 Theme modification */

while ($action) {
$action = $this->execute($action);
}
}

private function execute($action) {
if (method_exists($action, 'getFile')) {
if (file_exists($action->getFile())) {
require_once($action->getFile());

$class = $action->getClass();

$controller = new $class($this->registry);

if (is_callable(array($controller, $action->getMethod()))) {
$action = call_user_func_array(array($controller, $action->getMethod()), $action->getArgs());
} else {
$action = $this->error;

$this->error = '';
}
} else {
$action = $this->error;

$this->error = '';
}
} else {
$result = $action->execute($this->registry);

if (is_object($result)) {
$action = $result;
} elseif ($result === false) {
$action = $this->error;

$this->error = '';
} else {
$action = false;
}
}

return $action;
}
}
?>


Creo que la linea 45 es esta:

self::$IS_JOURNAL = $config->get('config_template') === 'journal2' || $config->get('theme_default_directory') ===

Alguien puede ayudarme?

saludos,

E.

Emi
Active Member

Posts

Joined
Sun Nov 02, 2014 9:08 pm

Post by Emi » Tue May 01, 2018 8:01 pm

Hola, lo borré todo, volvi a instalar OC y el theme pero una versión actualizada y parece que ya funciona.

saludos,

E.

Emi
Active Member

Posts

Joined
Sun Nov 02, 2014 9:08 pm
Who is online

Users browsing this forum: No registered users and 37 guests