0 Пользователей и 1 Гость просматривают эту тему.
  • 4 Ответов
  • 2433 Просмотров
*

starfolk

  • Осваиваюсь на форуме
  • 17
  • 0 / 0
Добрый день
Переношу  сайт с локалки на хостинг http://www.hirensbootcd.ru , выдается такая ошибка:
"Fatal error: Class 'JPathwaySite' not found in /home/a4308049/public_html/libraries/joomla/application/pathway.php on line 84"

код  pathway.php :
Код
<?php
/**
* @version $Id: pathway.php 10707 2008-08-21 09:52:47Z eddieajau $
* @package Joomla.Framework
* @subpackage Application
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

/**
 * Class to maintain a pathway.
 *
 * Main example of use so far is the mod_breadcrumbs module that keeps track of
 * the user's navigated path within the Joomla application.
 *
 * @abstract
 * @package Joomla.Framework
 * @subpackage Application
 * @since 1.5
 */
class JPathway extends JObject
{
/**
* Array to hold the pathway item objects
* @access private
*/
var $_pathway = null;

/**
* Integer number of items in the pathway
* @access private
*/
var $_count = 0;

/**
* Class constructor
*/
function __construct($options = array())
{
//Initialise the array
$this->_pathway = array();
}

/**
* Returns a reference a JPathway object
*
* This method must be invoked as:
* <pre>  $menu = &JPathway::getInstance();</pre>
*
* @access public
* @param   string  $client  The name of the client
* @param array     $options An associative array of options
* @return JPathway A pathway object.
* @since 1.5
*/
function &getInstance($client, $options = array())
{
static $instances;

if (!isset( $instances )) {
$instances = array();
}

if (empty($instances[$client]))
{
//Load the router object
$info =& JApplicationHelper::getClientInfo($client, true);

$path = $info->path.DS.'includes'.DS.'pathway.php';
if(file_exists($path))
{
require_once $path;

// Create a JPathway object
$classname = 'JPathway'.ucfirst($client);
$instance = new $classname($options);
}
else
{
$error = JError::raiseError( 500, 'Unable to load pathway: '.$client);
return $error;
}

$instances[$client] = & $instance;
}

return $instances[$client];
}

/**
* Return the JPathWay items array
*
* @access public
* @return array Array of pathway items
* @since 1.5
*/
function getPathway()
{
$pw = $this->_pathway;

// Use array_values to reset the array keys numerically
return array_values($pw);
}

/**
* Set the JPathway items array.
*
* @access public
* @param array $pathway An array of pathway objects.
* @return array The previous pathway data.
* @since 1.5
*/
function setPathway($pathway)
{
$oldPathway = $this->_pathway;
$pathway = (array) $pathway;

// Set the new pathway.
$this->_pathway = array_values($pathway);

return array_values($oldPathway);
}

/**
* Create and return an array of the pathway names.
*
* @access public
* @return array Array of names of pathway items
* @since 1.5
*/
function getPathwayNames()
{
// Initialize variables
$names = array (null);

// Build the names array using just the names of each pathway item
foreach ($this->_pathway as $item) {
$names[] = $item->name;
}

//Use array_values to reset the array keys numerically
return array_values($names);
}

/**
* Create and add an item to the pathway.
*
* @access public
* @param string $name
* @param string $link
* @return boolean True on success
* @since 1.5
*/
function addItem($name, $link='')
{
// Initalize variables
$ret = false;

if ($this->_pathway[] = $this->_makeItem($name, $link)) {
$ret = true;
$this->_count++;
}

return $ret;
}

/**
* Set item name.
*
* @access public
* @param integer $id
* @param string $name
* @return boolean True on success
* @since 1.5
*/
function setItemName($id, $name)
{
// Initalize variables
$ret = false;

if (isset($this->_pathway[$id])) {
$this->_pathway[$id]->name = $name;
$ret = true;
}

return $ret;
}

/**
* Create and return a new pathway object.
*
* @access private
* @param string $name Name of the item
* @param string $link Link to the item
* @return object Pathway item object
* @since 1.5
*/
function _makeItem($name, $link)
{
$item = new stdClass();
$item->name = html_entity_decode($name);
$item->link = $link;

return $item;
}
}


т.е. на локалке так:



а на хосте вот так:



админка на хостинге нормально работает ... а страницы не выводятся ...
помогите кто знает
спасибо !
« Последнее редактирование: 09.11.2010, 08:09:13 от starfolk »
*

Lex

  • Завсегдатай
  • 1615
  • 274 / 1
файл includes/pathway.php есть?
Жизнь заставила учиться.
В личке на вопросы не отвечаю.
*

starfolk

  • Осваиваюсь на форуме
  • 17
  • 0 / 0
есть, но он размером 0 байт
это из-за него?
*

Lex

  • Завсегдатай
  • 1615
  • 274 / 1
Да.
Жизнь заставила учиться.
В личке на вопросы не отвечаю.
*

starfolk

  • Осваиваюсь на форуме
  • 17
  • 0 / 0
все, поменял... всё поднялось ... в папке includes обнаружил еще пару файлов *.php размером 0 байт ... все заменил... все поднялось
СПАСИБО БОЛЬШОЕ !
« Последнее редактирование: 09.11.2010, 08:23:37 от starfolk »
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Белый экран при входе в Админку

Автор EURO2012

Ответов: 9
Просмотров: 13270
Последний ответ 29.07.2016, 17:26:54
от SeBun
Проблема с обновлением Joomla через Jupgrade

Автор spamer.j

Ответов: 15
Просмотров: 11856
Последний ответ 18.04.2013, 11:08:33
от romans13
Как убрать Индекс материала

Автор Fairea Ohtar

Ответов: 20
Просмотров: 19414
Последний ответ 04.01.2013, 21:02:32
от luxeonf
Горячие предложения

Автор mbit

Ответов: 0
Просмотров: 1355
Последний ответ 26.11.2012, 17:06:52
от mbit
установка 1.5 на jino

Автор maksim777

Ответов: 3
Просмотров: 2391
Последний ответ 13.06.2012, 23:13:51
от maksim777