Post by Noa Cohen » Sat May 02, 2020 8:01 pm

ik heb een opencart website. een multistore met opencart 3 , journal 2
Destijds zijn er allemaal modules voor multi mercandants verwerkt in mijn website.
Door een ongeluk ben ik maanden niet met die website bezig geweest , maar nu ik bijna werkeloos thuis zit door corona, dacht ik ga er weer mee bezig .
ik zag dat journal drie ook uit is . dus heb een backup gemaakt van mijn oude website , en dacht installeer 3 . dat ging goed behalve , dat mijn website dan niet meer werkt met de mercandant modules . dus hup weer terug naar mijn back up .
nu krijg ik deze melding:
Waarschuwing : required_once (/ home / person1q / public_html / system / library / journal3 / vendor / __ autoload.php): kan stream niet openen: bestand of directory in / home / person1q / public_html / vqmod / vqcache / vq2-_home_person1q_noa1_modification_system_engine_router niet. php on line 57
Fatale fout : required_once (): Mislukt openen vereist '/home/person1q/public_html/system/library/journal3/vendor/__autoload.php' (include_path = '.: / opt / alt / php70 / usr / share / pear ') in /home/person1q/public_html/vqmod/vqcache/vq2-_home_person1q_noa1_modification_system_engine_router.php op regel 57

ik heb regel bekeken, en het gekke is op mijn oude back up , staat deze map er niet eens bij , als ik mijn website terug zet dan staan er opeens twee mappen meer , ik heb ook de inhoud bekeken. maar het lijkt erop dat hij toch nog zoekt naar journal 3 .
<?php
final class Router {
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 \VQMod::modCheck(DIR_APPLICATION . 'model/journal2/journal2.php');
}
self::$IS_ADMIN = defined('JOURNAL_IS_ADMIN');

self::$IS_JOURNAL = ($config->get('config_theme') === 'theme_default' || $config->get('config_theme') === 'default') && ($config->get('config_template') === 'journal2' || $config->get('theme_default_directory') === 'journal2');

}

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


// Journal Theme Modification
define('JOURNAL2_INSTALLED', true);

require_once \VQMod::modCheck(DIR_SYSTEM . 'library/journal3/vendor/__autoload.php');

$env = DIR_SYSTEM . '../.env';

if (is_file($env)) {
$lines = file($env);

foreach ($lines as $line) {
$line = trim($line);

if ($line[0] === '#') {
continue;
}

$line = explode('=', $line);

if (count($line) === 2) {
$value = trim($line[1]);

if ($value === 'true') {
$value = true;
}

if ($value === 'false') {
$value = false;
}

define(trim($line[0]), $value);
}
}
}

if (!defined('JOURNAL3_ENV')) {
define('JOURNAL3_ENV', 'production');
}

if (!defined('JOURNAL3_CACHE')) {
define('JOURNAL3_CACHE', true);
}

$this->execute(new Action('journal3/startup'));
// End Journal Theme Modification

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

private function execute($action) {
// oc22 fix
if (defined('VERSION') && version_compare(VERSION, '2.2', '>=')) {
$result = $action->execute($this->registry);

if ($result instanceof Action) {
return $result;
}

if ($result instanceof Exception) {
$action = $this->error;

$this->error = null;

return $action;
}

return;
}

if (method_exists($action, 'getFile')) {
if (file_exists($action->getFile())) {
require_once(\VQMod::modCheck($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;
}
}
?>

er staat helemaal niks in
home / person1q / public_html / system / library / journal3 / vendor / __ autoload.php

: die bestaat niet eens in mijn oude website ( backup van gisteren).
wie kan mijn helpen , kan nu niet bij mijn website komen . of wie kan mijn uitleggen wat ik kan doen of wat dit betekent.
bedankt , groetjes noa

Newbie

Posts

Joined
Sun Apr 16, 2017 1:41 am

Post by Noa Cohen » Sat May 02, 2020 8:24 pm

het is mijn al gelukt .
er werden steeds twee bestanden na het uploaden van mijn backup toegevoegd: blijkbaar voegt hij deze automatisch toe als je website wilt oproepen.
vq2-_home_person1q_noa1_modification_system_engine_router.php
vq2-_home_person1q_noa1_modification_system_library_cache.php

in deze heb deze regels verwijderd en voila hij doet het :
// Journal Theme Modification
define('JOURNAL3_INSTALLED', true);

require_once \VQMod::modCheck(DIR_SYSTEM . 'library/journal3/vendor/__autoload.php');

$env = DIR_SYSTEM . '../.env';

if (is_file($env)) {
$lines = file($env);

foreach ($lines as $line) {
$line = trim($line);

if ($line[0] === '#') {
continue;
}

$line = explode('=', $line);

if (count($line) === 2) {
$value = trim($line[1]);

if ($value === 'true') {
$value = true;
}

if ($value === 'false') {
$value = false;
}

define(trim($line[0]), $value);
}
}
}

if (!defined('JOURNAL3_ENV')) {
define('JOURNAL3_ENV', 'production');
}

if (!defined('JOURNAL3_CACHE')) {
define('JOURNAL3_CACHE', true);
}

$this->execute(new Action('journal3/startup'));
// End Journal Theme Modification

best een beetje trots , langzaam , heel langzaam begin ik iets meer te durven en doen en snappen. op naar nog honderd stappen.. hahaha
groetjes noa

Newbie

Posts

Joined
Sun Apr 16, 2017 1:41 am

Post by psxgamer » Tue May 05, 2020 7:08 am

Neem contact met de support van Digital Atelier.

Journal 3 is een totaal nieuwe template. Die kan je niet zomaar bovenop Journal 2 installeren. Is echt beginnen vanaf scratch.

Active Member

Posts

Joined
Tue Apr 13, 2010 4:14 am
Who is online

Users browsing this forum: No registered users and 45 guests