Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

помогите с модулем соц-сети followme153


dvi30011973

Recommended Posts

Помогите исправить ошибку.

Установил модуль соц-сети FollowMe153 и в админки когда я жму на [ Изменить ] выпадает ват такая ошибка:Fatal error: Call to a member function link() on a non-object in C:\xampp\htdocs\arle\admin\controller\module\followme.php on line 89

Помогите кто знает.Вот файл followme.php

<?php

// ------------------------------------------

// Follow Me Version 1.5.3

// For Opencart v1.5.1 / 1.5.2 / 1.5.3

// Original by KangDJ

// Updated by Lamiaa Ahmed (1.5.0)

// Updated by villagedefrance (1.5.1, 1.5.1 V2)

// Updated by HelderIM (1.5.1 V3)

// Updated by villagedefrance (1.5.3)

// Подготовлено специально для ***

// Перевод и адаптация модуля Marianna radiance.com.ua [email protected]

// ------------------------------------------

class ControllerModuleFollowMe extends Controller {

private $error = array();

private $_name = 'followme';

private $_version = '1.5.3';

public function index() {

$this->load->language('module/' . $this->_name);

$this->document->setTitle($this->language->get('heading_title'));

$this->data[$this->_name . '_version'] = $this->_version;

$this->load->model('setting/setting');

if (($this->request->server['REQUEST_METHOD'] == 'POST') && ($this->validate())) {

$this->model_setting_setting->editSetting($this->_name, $this->request->post);

$this->session->data['success'] = $this->language->get('text_success');

$this->redirect($this->url->link('extension/module', 'token=' . $this->session->data['token'],

'SSL'));

}

$this->data['heading_title'] = $this->language->get('heading_title');

$this->data['text_enabled'] = $this->language->get('text_enabled');

$this->data['text_disabled'] = $this->language->get('text_disabled');

$this->data['text_content_top'] = $this->language->get('text_content_top');

$this->data['text_content_bottom'] = $this->language->get('text_content_bottom');

$this->data['text_column_left'] = $this->language->get('text_column_left');

$this->data['text_column_right'] = $this->language->get('text_column_right');

$this->data['text_module_settings'] = $this->language->get('text_module_settings');

$this->data['entry_header'] = $this->language->get('entry_header');

$this->data['entry_title'] = $this->language->get('entry_title');

$this->data['entry_icon'] = $this->language->get('entry_icon');

$this->data['entry_box'] = $this->language->get('entry_box');

$this->data['entry_yes'] = $this->language->get('entry_yes');

$this->data['entry_no'] = $this->language->get('entry_no');

$this->data['entry_facebook'] = $this->language->get('entry_facebook');

$this->data['entry_twitter'] = $this->language->get('entry_twitter');

$this->data['entry_google'] = $this->language->get('entry_google');

$this->data['entry_odnoklassniki'] = $this->language->get('entry_odnoklassniki');

$this->data['entry_vkontakte'] = $this->language->get('entry_vkontakte');

$this->data['entry_youtube'] = $this->language->get('entry_youtube');

$this->data['entry_facebook_usage'] = $this->language->get('entry_facebook_usage');

$this->data['entry_twitter_usage'] = $this->language->get('entry_twitter_usage');

$this->data['entry_gplus_usage'] = $this->language->get('entry_gplus_usage');

$this->data['entry_odnoklassniki_usage'] = $this->language->get('entry_odnoklassniki_usage');

$this->data['entry_vkontakte_usage'] = $this->language->get('entry_vkontakte_usage');

$this->data['entry_youtube_usage'] = $this->language->get('entry_youtube_usage');

$this->data['entry_template'] = $this->language->get('entry_template');

$this->data['entry_layout'] = $this->language->get('entry_layout');

$this->data['entry_position'] = $this->language->get('entry_position');

$this->data['entry_status'] = $this->language->get('entry_status');

$this->data['entry_sort_order'] = $this->language->get('entry_sort_order');

$this->data['button_save'] = $this->language->get('button_save');

$this->data['button_cancel'] = $this->language->get('button_cancel');

$this->data['button_add_module'] = $this->language->get('button_add_module');

$this->data['button_remove'] = $this->language->get('button_remove');

if (isset($this->error['warning'])) {

$this->data['error_warning'] = $this->error['warning'];

} else {

$this->data['error_warning'] = '';

}

$this->data['breadcrumbs'] = array();

$this->data['breadcrumbs'][] = array(

'text' => $this->language->get('text_home'),

'href' => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),

'separator' => false

);

$this->data['breadcrumbs'][] = array(

'text' => $this->language->get('text_module'),

'href' => $this->url->link('extension/module', 'token=' . $this->session->data['token'],

'SSL'),

'separator' => ' :: '

);

$this->data['breadcrumbs'][] = array(

'text' => $this->language->get('heading_title'),

'href' => $this->url->link('module/' . $this->_name, 'token=' . $this->session->data['token'],

'SSL'),

'separator' => ' :: '

);

$this->data['action'] = $this->url->link('module/' . $this->_name, 'token=' . $this->session->data['token'],

'SSL');

$this->data['cancel'] = $this->url->link('extension/module', 'token=' . $this->session->data['token'],

'SSL');

$this->data['templates'] = array();

$directories = glob(DIR_CATALOG . 'view/theme/*', GLOB_ONLYDIR);

foreach ($directories as $directory) {

$this->data['templates'][] = basename($directory);

}

if (isset($this->request->post['config_template'])) {

$this->data['config_template'] = $this->request->post['config_template'];

} else {

$this->data['config_template'] = $this->config->get('config_template');

}

$this->load->model('localisation/language');

$languages = $this->model_localisation_language->getLanguages();

foreach ($languages as $language) {

if (isset($this->request->post[$this->_name . '_title' . $language['language_id']])) {

$this->data[$this->_name . '_title' . $language['language_id']] = $this->request->post

[$this->_name . '_title' . $language['language_id']];

} else {

$this->data[$this->_name . '_title' . $language['language_id']] = $this->config->get($this-

>_name . '_title' . $language['language_id']);

}

}

$this->data['languages'] = $languages;

if (isset($this->request->post[$this->_name . '_header'])) {

$this->data[$this->_name . '_header'] = $this->request->post[$this->_name . '_header'];

} else {

$this->data[$this->_name . '_header'] = $this->config->get( $this->_name . '_header' );

}

if (isset($this->request->post[$this->_name . '_title'])) {

$this->data[$this->_name . '_title'] = $this->request->post[$this->_name . '_title'];

} else {

$this->data[$this->_name . '_title'] = $this->config->get($this->_name . '_title' );

}

if (isset($this->request->post[$this->_name . '_icon'])) {

$this->data[$this->_name . '_icon'] = $this->request->post[$this->_name . '_icon'];

} else {

$this->data[$this->_name . '_icon'] = $this->config->get($this->_name . '_icon' );

}

if (isset($this->request->post[$this->_name . '_box'])) {

$this->data[$this->_name . '_box'] = $this->request->post[$this->_name . '_box'];

} else {

$this->data[$this->_name . '_box'] = $this->config->get($this->_name . '_box' );

}

if (isset($this->request->post[$this->_name . '_facebook'])) {

$this->data[$this->_name . '_facebook'] = $this->request->post[$this->_name . '_facebook'];

} else {

$this->data[$this->_name . '_facebook'] = $this->config->get($this->_name . '_facebook');

}

if (isset($this->request->post[$this->_name . '_twitter'])) {

$this->data[$this->_name . '_twitter'] = $this->request->post[$this->_name . '_twitter'];

} else {

$this->data[$this->_name . '_twitter'] = $this->config->get($this->_name . '_twitter');

}

if (isset($this->request->post[$this->_name . '_google'])) {

$this->data[$this->_name . '_google'] = $this->request->post[$this->_name . '_google'];

} else {

$this->data[$this->_name . '_google'] = $this->config->get($this->_name . '_google');

}

if (isset($this->request->post[$this->_name . '_odnoklassniki'])) {

$this->data[$this->_name . '_odnoklassniki'] = $this->request->post[$this->_name .

'_odnoklassniki'];

} else {

$this->data[$this->_name . '_odnoklassniki'] = $this->config->get($this->_name . '_odnoklassniki');

}

if (isset($this->request->post[$this->_name . '_vkontakte'])) {

$this->data[$this->_name . '_vkontakte'] = $this->request->post[$this->_name . '_vkontakte'];

} else {

$this->data[$this->_name . '_vkontakte'] = $this->config->get($this->_name . '_vkontakte');

}

if (isset($this->request->post[$this->_name . '_youtube'])) {

$this->data[$this->_name . '_youtube'] = $this->request->post[$this->_name . '_youtube'];

} else {

$this->data[$this->_name . '_youtube'] = $this->config->get($this->_name . '_youtube');

}

if (isset($this->request->post[$this->_name . '_facebook_usage'])) {

$this->data[$this->_name . '_facebook_usage'] = $this->request->post[$this->_name .

'_facebook_usage'];

} else {

$this->data[$this->_name . '_facebook_usage'] = $this->config->get($this->_name .

'_facebook_usage');

}

if (isset($this->request->post[$this->_name . '_twitter_usage'])) {

$this->data[$this->_name . '_twitter_usage'] = $this->request->post[$this->_name .

'_twitter_usage'];

} else {

$this->data[$this->_name . '_twitter_usage'] = $this->config->get($this->_name . '_twitter_usage');

}

if (isset($this->request->post[$this->_name . '_gplus_usage'])) {

$this->data[$this->_name . '_gplus_usage'] = $this->request->post[$this->_name . '_gplus_usage'];

} else {

$this->data[$this->_name . '_gplus_usage'] = $this->config->get($this->_name . '_gplus_usage');

}

if (isset($this->request->post[$this->_name . '_odnoklassniki_usage'])) {

$this->data[$this->_name . '_odnoklassniki_usage'] = $this->request->post[$this->_name .

'_odnoklassniki_usage'];

} else {

$this->data[$this->_name . '_odnoklassniki_usage'] = $this->config->get($this->_name .

'_odnoklassniki_usage');

}

if (isset($this->request->post[$this->_name . '_vkontakte_usage'])) {

$this->data[$this->_name . '_vkontakte_usage'] = $this->request->post[$this->_name .

'_vkontakte_usage'];

} else {

$this->data[$this->_name . '_vkontakte_usage'] = $this->config->get($this->_name .

'_vkontakte_usage');

}

if (isset($this->request->post[$this->_name . '_youtube_usage'])) {

$this->data[$this->_name . '_youtube_usage'] = $this->request->post[$this->_name .

'_youtube_usage'];

} else {

$this->data[$this->_name . '_youtube_usage'] = $this->config->get($this->_name . '_youtube_usage');

}

if (isset($this->request->post[$this->_name . '_template'])) {

$this->data[$this->_name . '_template'] = $this->request->post[$this->_name . '_template'];

} else {

$this->data[$this->_name . '_template'] = $this->config->get($this->_name . '_template');

}

$this->data['modules'] = array();

if (isset($this->request->post[$this->_name . '_module'])) {

$this->data['modules'] = $this->request->post[$this->_name . '_module'];

} elseif ($this->config->get($this->_name . '_module')) {

$this->data['modules'] = $this->config->get($this->_name . '_module');

}

$this->load->model('design/layout');

$this->data['layouts'] = $this->model_design_layout->getLayouts();

$this->template = 'module/' . $this->_name . '.tpl';

$this->children = array(

'common/header',

'common/footer'

);

$this->response->setOutput($this->render());

}

private function validate() {

if (!$this->user->hasPermission('modify', 'module/' . $this->_name)) {

$this->error['warning'] = $this->language->get('error_permission');

}

if (!$this->error) {

return TRUE;

} else {

return FALSE;

}

}

}

?>

Кто знает прошу помочь!

Надіслати
Поділитися на інших сайтах


Краткое содержание 20000 серии Санта Барбара , не меньше! Спроси у самой Марианны,она чуть ниже тебя в новых темах! )))

Надіслати
Поділитися на інших сайтах

Так может модуль не под ту версию? Хоть автор модуля и заявляет что он под разные версии, но точно работает в 1.5.3.1

Надіслати
Поділитися на інших сайтах


На 1.5.1.3 проверял,точно не работает но и ошибок этих нет.Может быть ошибка в установке?

Надіслати
Поділитися на інших сайтах

Створіть аккаунт або увійдіть для коментування

Ви повинні бути користувачем, щоб залишити коментар

Створити обліковий запис

Зареєструйтеся для отримання облікового запису. Це просто!

Зареєструвати аккаунт

Вхід

Уже зареєстровані? Увійдіть тут.

Вхід зараз
  • Зараз на сторінці   0 користувачів

    • Ні користувачів, які переглядиють цю сторінку

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.