Jump to content
Sign in to follow this  

[Варез] Ошибка vqcache

Recommended Posts

Всем привет!

Установил - {censored}

При открытии менеджера картинок ошибка:

Fatal error: Cannot redeclare ControllerCommonFileManager::connector() in /home/admin/web/site.com/public_html/vqmod/vqcache/vq2-admin_controller_common_filemanager.php on line 563

Код, начиная с 563 строки:

public function connector() {

include_once DIR_SYSTEM.'library/filemanager/elFinderConnector.class.php';

include_once DIR_SYSTEM.'library/filemanager/elFinder.class.php';

include_once DIR_SYSTEM.'library/filemanager/elFinderVolumeDriver.class.php';

include_once DIR_SYSTEM.'library/filemanager/elFinderVolumeLocalFileSystem.class.php';

if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {

$base = HTTPS_CATALOG."image/";

} else {

$base = HTTP_CATALOG."image/";


$this->config->set('config_error_display', 0);

$this->config->set('config_error_log', 0);

function access($attr, $path, $data, $volume) {

return strpos(basename($path), '.') === 0 // if file/folder begins with '.' (dot)

? !($attr == 'read' || $attr == 'write') // set read+write to false, other (locked+hidden) set to true

: null; // else elFinder decide it itself


$opts = array(

// 'debug' => true,

'roots' => array(


'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)

'path' => DIR_IMAGE.'data/', // path to files (REQUIRED)

'URL' => $base.'data/', // URL to files (REQUIRED)

'accessControl' => 'access', // disable and hide dot starting files (OPTIONAL)

'tmbPath' => DIR_IMAGE.'tmb/',

'fileMode' => 0777, // new files mode

'dirMode' => 0777, // new folders mode

'tmbURL' => $base.'tmb/',

'tmbBgColor' => 'transparent',

'tmbCrop' => 'false',

'copyOverwrite' => $this->config->get('pim_copyOverwrite'),

'uploadOverwrite' => $this->config->get('pim_uploadOverwrite'),

'uploadMaxSize' => ''.$this->config->get('pim_uploadMaxSize').'M',




$connector = new elFinderConnector(new elFinder($opts));



Edited by shoputils
varez link

Share this post

Link to post
Share on other sites

За поддержкой туда, где скачал.

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.


Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.