Skip to content

Commit

Permalink
Исправление ошибки при работе с темой Journal 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ATropichev committed Nov 18, 2022
1 parent fb49840 commit c63b55b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions upload/export/exchange1c.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

ini_set('max_execution_time', 900);

// После установки темы JOURNAL 3 при попытке обращения к модулю выходит сообщение об ошибке
// Warning: Use of undefined constant VERSION ...
// Notice: Undefined variable: params in /var/www/storage/modification/system/library/db.php ...
// Чтобы определить переменную VERSION как номер текщей версии OpenCart
// находим в index.php соответствующую строку кода,
// например
// define('VERSION', '3.0.3.8');
// и выполняем её.
eval(reset(preg_grep('/VERSION/', file('../index.php'))));

// Configuration
require_once('../admin/config.php');

Expand Down

0 comments on commit c63b55b

Please sign in to comment.