-
AuthorPosts
-
July 7, 2012 at 5:22 pm #178895
Hi,
I had created the site in a folder. I uploaded the contents of the folder to the root directory. Now I’m getting this error when I try to click on the template manager in the admin area.
Fatal error: Call to a member function get() on a non-object in /home/content/l/e/g/legal1844/html/administrator/components/com_templates/views/styles/view.html.php on line 62
Thanks,
July 7, 2012 at 5:53 pm #460158Just wanted to be clear that I had created the site in a folder on my server and then moved it to the root directory. Below is the file in question.
<?php
/**
* @copyright Copyright (C) 2005 – 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/// No direct access.
defined(‘_JEXEC’) or die;jimport(‘joomla.application.component.view’);
/**
* View class for a list of template styles.
*
* @package Joomla.Administrator
* @subpackage com_templates
* @since 1.6
*/
class TemplatesViewStyles extends JView
{
protected $items;
protected $pagination;
protected $state;/**
* Display the view
*/
public function display($tpl = null)
{
$this->items = $this->get(‘Items’);
$this->pagination = $this->get(‘Pagination’);
$this->state = $this->get(‘State’);
$this->preview = JComponentHelper::getParams(‘com_templates’)->get(‘template_positions_display’);// Check for errors.
if (count($errors = $this->get(‘Errors’))) {
JError::raiseError(500, implode(“n”, $errors));
return false;
}// Check if there are no matching items
if(!count($this->items)) {
JFactory::getApplication()->enqueueMessage(
JText::_(‘COM_TEMPLATES_MSG_MANAGE_NO_STYLES’)
, ‘warning’
);
}$this->addToolbar();
parent::display($tpl);
}/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
$state = $this->get(‘State’);
$canDo = TemplatesHelper::getActions();
$isSite = ($state->get(‘filter.client_id’) == 0);JToolBarHelper::title(JText::_(‘COM_TEMPLATES_MANAGER_STYLES’), ‘thememanager’);
if ($canDo->get(‘core.edit.state’)) {
JToolBarHelper::makeDefault(‘styles.setDefault’, ‘COM_TEMPLATES_TOOLBAR_SET_HOME’);
JToolBarHelper::divider();
}if ($canDo->get(‘core.edit’)) {
JToolBarHelper::editList(‘style.edit’);
}
if ($canDo->get(‘core.create’)) {
JToolBarHelper::custom(‘styles.duplicate’, ‘copy.png’, ‘copy_f2.png’, ‘JTOOLBAR_DUPLICATE’, true);
JToolBarHelper::divider();
}if ($canDo->get(‘core.delete’)) {
JToolBarHelper::deleteList(”, ‘styles.delete’);
JToolBarHelper::divider();
}if ($canDo->get(‘core.admin’)) {
JToolBarHelper::preferences(‘com_templates’);
JToolBarHelper::divider();
}
JToolBarHelper::help(‘JHELP_EXTENSIONS_TEMPLATE_MANAGER_STYLES’);
}
}Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 9, 2012 at 7:47 am #460297Hi mjelliott,
Which version of Joomla are you using? and PHP version? it’s recommended that you use PHP version 5.3 or above for joomla 2.5
-
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by Saguaros 12 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum