Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770
Форумы портала PHP.SU :: Версия для печати :: Помогите разобраться с ошибкой
Форумы портала PHP.SU » » Если скрипт не работает » Помогите разобраться с ошибкой

Страниц (1): [1]
 

1. Andrey1991 - 05 Марта, 2014 - 18:19:37 - перейти к сообщению
При попытке попасть на сайт вылетает:
Warning: require_once(/home/virtwww/w_goldgraver-dp-ua_fce495a0/httphttp/defines.php): failed to open stream: No such file or directory in /home/virtwww/w_goldgraver-dp-ua _fce495a0/http/index.php on line 28 Fatal error: require_once(): Failed opening required '/home/virtwww/w_goldgraver-dp-ua_fce495a0/httphttp/defines.php' (include_path='.:') in /home/virtwww/w_goldgraver-dp-ua _fce495a0/http/index.php on line 28

Вот 28 строка index.php

require_once JPATH_BASE . 'http/defines.php';
2. IllusionMH - 05 Марта, 2014 - 18:34:12 - перейти к сообщению
Andrey1991, похоже что http в строке пути файла лишнее.
3. Andrey1991 - 06 Марта, 2014 - 11:45:45 - перейти к сообщению
Тогда можете сказать что еще лишнее?

<?php
/**
* @package Joomla.Site
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

if (version_compare(PHP_VERSION, '5.3.1', '<'))
{
die('Your host needs to use PHP 5.3.1 or higher to run this version of Joomla!');
}

/**
* Constant that is checked in included files to prevent direct access.
* define() is used in the installation folder rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);

if (file_exists(__DIR__ . 'http/defines.php'))
{
include_once __DIR__ . 'http/defines.php';
}

if (!defined('_JDEFINES'))
{
define('JPATH_BASE', __DIR__);
require_once JPATH_BASE . 'http/defines.php';
}

require_once JPATH_BASE . 'http/framework.php';

// Mark afterLoad in the profiler.
JDEBUG ? $_PROFILER->mark('afterLoad') : null;

// Instantiate the application.
$app = JFactory::getApplication('site');

// Execute the application.
$app->execute();


тут http почти в каждой строке,предлагаете их убрать?

 

Powered by ExBB FM 1.0 RC1