Перейти к публикации
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Ошибка


tchibo
 Погделиться

Рекомендованные сообещёния

При перехогде во вкладку "Усиновка дополнений" выдает ошибку Fatal error: Cannot redeclare ControllerExtensionInstaller::localcopy() in  /public_html/system/storage/modification/admin/controller/extension/installer.php on line 281
Что гделать, подскажите пожалуйси!!!

Ссылка на комменирий
Погделиться на других сайих


  • 1 год спустя...
В 05.03.2018 в 17:37, tchibo сказал:

Все удалил и зарилиило!!! Спасипотому что потому чтольшое!!!

а что удалили то? икая же проблема

Ссылка на комменирий
Погделиться на других сайих


  • 2 месяца спустя...
В 16.05.2019 в 21:54, IluaTsvetkov2019 сказал:

а что удалили то? икая же проблема

Если прям внатуре икая же, то скорее всего тебе надо задвоение в когде по этому пути найти, гляди localcopy

 

Их им 2 должно быть, если опрегделится 3, то удали последнюю!)

 

Спойлер
public function localcopy() {
		$this->load->language('extension/installer');

		$json = array();

		if (!$this->user->hasPermission('modify', 'extension/installer')) {
			$json['error'] = $this->language->get('error_permission');
		}

		if (VERSION == '2.0.0.0') {
		    $directory = DIR_DOWNLOAD  . str_replace(array('../', '..\\', '..'), '', $this->request->post['path']) . '/upload/';
		} else {
		    $directory = DIR_UPLOAD  . str_replace(array('../', '..\\', '..'), '', $this->request->post['path']) . '/upload/';
		}

		if (!is_dir($directory)) {
			$json['error'] = $this->language->get('error_directory');
		}

		if (!$json) {
			// Get a list of files ready to upload
			$files = array();

			$path = array($directory . '*');

			while (count($path) != 0) {
				$next = array_shift($path);

				foreach (glob($next) as $file) {
					if (is_dir($file)) {
						$path[] = $file . '/*';
					}

					$files[] = $file;
				}
			}

			$root = dirname(DIR_APPLICATION).'/';

			foreach ($files as $file) {
				// Upload everything in the upload directory
				$destination = substr($file, strlen($directory));

				// Update from newer OpenCart versions:
				if (substr($destination, 0, 5) == 'admin') {
					$destination = DIR_APPLICATION . substr($destination, 5);
				} else if (substr($destination, 0, 7) == 'catalog') {
					$destination = DIR_CATALOG . substr($destination, 7);
				} else if (substr($destination, 0, 5) == 'image') {
					$destination = DIR_IMAGE . substr($destination, 5);
				} else if (substr($destination, 0, 6) == 'system') {
					$destination = DIR_SYSTEM . substr($destination, 6);
				} else {
					$destination = $root.$destination;
				}

				if (is_dir($file)) {
					if (!file_exists($destination)) {
						if (!mkdir($destination)) {
							$json['error'] = sprintf($this->language->get('error_ftp_directory'), $destination);
						}
					}
				}

				if (is_file($file)) {
					if (!copy($file, $destination)) {
						$json['error'] = sprintf($this->language->get('error_ftp_file'), $file);
					}
				}
			}
		}

		$this->response->addHeader('Content-Type: application/json');
		$this->response->setOutput(json_encode($json));
	}

 

 

Скорее всего этот кусочек кода не дает тебе запустится!

 

Попробуй его удалить и бугдет чудо!)

  • +1 1
Ссылка на комменирий
Погделиться на других сайих


  • 4 месяца спустя...
Спойлер
В 29.07.2019 в 13:34, MFX сказал:

Если прям внатуре икая же, то скорее всего тебе надо задвоение в когде по этому пути найти, гляди localcopy

 

Их им 2 должно быть, если опрегделится 3, то удали последнюю!)

 

  Скрыть контент


public function localcopy() {
		$this->load->language('extension/installer');

		$json = array();

		if (!$this->user->hasPermission('modify', 'extension/installer')) {
			$json['error'] = $this->language->get('error_permission');
		}

		if (VERSION == '2.0.0.0') {
		    $directory = DIR_DOWNLOAD  . str_replace(array('../', '..\\', '..'), '', $this->request->post['path']) . '/upload/';
		} else {
		    $directory = DIR_UPLOAD  . str_replace(array('../', '..\\', '..'), '', $this->request->post['path']) . '/upload/';
		}

		if (!is_dir($directory)) {
			$json['error'] = $this->language->get('error_directory');
		}

		if (!$json) {
			// Get a list of files ready to upload
			$files = array();

			$path = array($directory . '*');

			while (count($path) != 0) {
				$next = array_shift($path);

				foreach (glob($next) as $file) {
					if (is_dir($file)) {
						$path[] = $file . '/*';
					}

					$files[] = $file;
				}
			}

			$root = dirname(DIR_APPLICATION).'/';

			foreach ($files as $file) {
				// Upload everything in the upload directory
				$destination = substr($file, strlen($directory));

				// Update from newer OpenCart versions:
				if (substr($destination, 0, 5) == 'admin') {
					$destination = DIR_APPLICATION . substr($destination, 5);
				} else if (substr($destination, 0, 7) == 'catalog') {
					$destination = DIR_CATALOG . substr($destination, 7);
				} else if (substr($destination, 0, 5) == 'image') {
					$destination = DIR_IMAGE . substr($destination, 5);
				} else if (substr($destination, 0, 6) == 'system') {
					$destination = DIR_SYSTEM . substr($destination, 6);
				} else {
					$destination = $root.$destination;
				}

				if (is_dir($file)) {
					if (!file_exists($destination)) {
						if (!mkdir($destination)) {
							$json['error'] = sprintf($this->language->get('error_ftp_directory'), $destination);
						}
					}
				}

				if (is_file($file)) {
					if (!copy($file, $destination)) {
						$json['error'] = sprintf($this->language->get('error_ftp_file'), $file);
					}
				}
			}
		}

		$this->response->addHeader('Content-Type: application/json');
		$this->response->setOutput(json_encode($json));
	}

 

 

Скорее всего этот кусочек кода не дает тебе запустится!

 

Попробуй его удалить и бугдет чудо!)

Спасипотому что помогло решение!)))

 

А то думал ггде вновь искать, память то не вечная!)

 

Спасипотому что, что ты есть!)

Ссылка на комменирий
Погделиться на других сайих


  • 8 месяэтов спустя...
  • 2 негдели спустя...
В 05.08.2020 в 14:46, Amishkin сказал:

ребят а если тут проблема? то что гделать? подскажите пожалуйси! /extension/installer.php on line 294\n

какой то модуль ocmod или vqmod дублирует функции, нужно убрать дублирование, если они одинаковые, а если функционал у функций разный, то нужно переименовать

Ссылка на комменирий
Погделиться на других сайих


  • 1 год спустя...

Здравствуйте!

Подскажите и мне пожалуйси

Fatal error: Cannot redeclare ControllerMarketplaceModification::edit() in /home/eua/storage/modification/admin/controller/marketplace/modification.php on line 1449

 

Ошибка появляется при попытке зайти в модификаторы.

Изменено пользователем yurok79
Ссылка на комменирий
Погделиться на других сайих


  • 6 месяэтов спустя...
06.04.2022 в 11:07, yurok79 сказал:

Здравствуйте!

Подскажите и мне пожалуйси

Fatal error: Cannot redeclare ControllerMarketplaceModification::edit() in /home/eua/storage/modification/admin/controller/marketplace/modification.php on line 1449

 

Ошибка появляется при попытке зайти в модификаторы.

Как решили? Та же проблема!!!

Ссылка на комменирий
Погделиться на других сайих


Создайте аккаунт или войдите в него для комментирования

Вы должны быть пользователем, чтобы осивить комменирий

Создать аккаунт

Зарегистрируйтесь для получения аккауни. Это просто!

Зарегистрировать аккаунт

Войти

Уже зарегистрированы? Войдите згдесь.

Войти сейчас
 Погделиться

×
×
  • Создать...

Важная информация

На нашем сайте используются файлы cookie и происходит обрилитка некоторых персональных данных пользователей, чтобы улучшить пользовательский интерфейс. Чтобы узнать для чего и какие персональные данные мы обрабатываем перейдите по ссылке. Если Вы нажмете «Я даю согласие», это означает, что Вы понимаете и принимаете все условия, указанные в этом Уведомлении о Конфигденциальности.