4

Site error detected. Details: http://sucuri.net/malware/php-error-fatal-error?v6
Fatal error: Call to a member function get() on a non-object in /home/project/public_html/components/com_sectioncategoryarticlelist/views/sectioncategoryarticlelist/view.html.php on line 28

Can anyone help me to resolve it?

<?php
/**
 * @Project    SectionCategoryArticleList
 * @author     Mathias Hortig
 * @package    SectionCategoryArticleList
 * @copyright  Copyright (C) 2011-2012 tuts4you.de . All rights reserved.
 * @license   http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL version 2
*/

// no direct access

defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view');


class SectionCategoryArticleListViewSectionCategoryArticleList extends JViewLegacy
{
    function display($tpl = null)
    {
        $document = &JFactory::getDocument();
        $document->addStyleSheet(JURI::root(true).'/components/com_sectioncategoryarticlelist/css/sectioncategoryarticlelist.css');
    $document->addScript(JURI::root(true).'/components/com_sectioncategoryarticlelist/js/sectioncategoryarticlelisttoggle.js');
        $model = &$this->getModel();
        $menu = JSite::getMenu()->getActive();
        $params = $menu->params;

        $this->assignRef( 'HTML', $model->GetCategories($params->get('linkcategories',1), $params->get('usetoggle',0), $params->get('defaulttoggle',0)));
        $this->assignRef( 'pretext', $params->get('pretext'));
        $this->assignRef( 'posttext', $params->get('posttext'));
        $this->assignRef( 'headline', $params->get('headline'));

        parent::display($tpl);
    }
}
  • This is old legacy code, so am I right in assuming this is on a Joomla 1.5 site? – Lodder Nov 7 '16 at 17:06
0

There are no details provided behind your link (404 error). I just see an old component php-error, maybe because of the Joomla 1.5 code inside. Have a look at the Joomla Documentation.

Probablly the developer should review his component again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.