Керування файлами cookie, які використовуються для реклами, таких як персоналізація реклами, ремаркетинг і аналіз ефективності реклами.
|
spirtus
05.12.2012 14:30
0
|
Установил шаблон и после этого мой сайт принял такой вид-
Fatal error: Call to a member function get() on a non-object in /home/.../plugins/system/highlight/highlight.php on line 44 В указанном файле строка 44 имет такой вид : $extension = $input->get('option', '', 'cmd'); Подскажите в чем может быть проблема. Шаблон новый, совместим с версией CMS. |
|
Roman P.
05.12.2012 22:07
0
|
Есть предложение по устранению проблемы:
1. joomlaforum.ru/index.php/topic,212289.0.html 2. joomlaforum.ru/index.php/topic,160787.0.html |
|
spirtus
07.12.2012 14:52
0
|
Я не программист и вряд ли разберусь, что в строке 44 пропущено между кавычками '' .
|
|
Roman P.
07.12.2012 15:07
0
|
Какая версия Joomla у вас?
Какой шаблон вызывает ошибку? (напишите полное название шаблона со всеми запятыми, циферками и буковками, если они есть) Посмотрим, что не так. Постараюсь помочь. |
|
spirtus
07.12.2012 15:29
0
|
Восстановил хронологию своих действий, после которых у меня появилась эта ошибка.
1. Установил шаблон S5_Seaofglass. Поставил по умолчанию. 2. Загрузил картинку для заднего фона в формате jpeg через медиа-менеджер. Увидел что она не отображается в медиа-менеджере иконкой, решил ее открыть. Не получилось, тогда начал удалять - админка подвисла и все... А вот сам файл highlihgt.php <?php /** * @package Joomla.Plugin * @subpackage System.Highlight * * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_BASE') or die; jimport('joomla.application.component.helper'); /** * System plugin to highlight terms. * * @package Joomla.Plugin * @subpackage System.Highlight * @since 2.5 */ class PlgSystemHighlight extends JPlugin { /** * Method to catch the onAfterDispatch event. * * This is where we setup the click-through content highlighting for. * The highlighting is done with JavaScript so we just * need to check a few parameters and the JHtml behavior will do the rest. * * @return boolean True on success * * @since 2.5 */ public function onAfterDispatch() { // Check that we are in the site application. if (JFactory::getApplication()->isAdmin()) { return true; } // Set the variables $input = JFactory::getApplication()->input; $extension = $input->get('option', '', 'cmd'); // Check if the highlighter is enabled. if (!JComponentHelper::getParams($extension)->get('highlight_terms', 1)) { return true; } // Check if the highlighter should be activated in this environment. if (JFactory::getDocument()->getType() !== 'html' || $input->get('tmpl', '', 'cmd') === 'component') { return true; } // Get the terms to highlight from the request. $terms = $input->request->get('highlight', null, 'base64'); $terms = $terms ? unserialize(base64_decode($terms)) : null; // Check the terms. if (empty($terms)) { return true; } // Clean the terms array $filter = JFilterInput::getInstance(); $cleanTerms = array(); foreach ($terms as $term) { $cleanTerms[] = $filter->clean($term, 'string'); } // Activate the highlighter. JHtml::_('behavior.highlighter', $cleanTerms); // Adjust the component buffer. $doc = JFactory::getDocument(); $buf = $doc->getBuffer('component'); $buf = '<br id="highlighter-start" />' . $buf . '<br id="highlighter-end" />'; $doc->setBuffer($buf, 'component'); return true; } } |
|
spirtus
08.12.2012 11:16
0
|
Закрываю тему - установил шаблон не совместимый с версией CMS. Отсюда и косяки.
|
Тема закрита.