Recent Topics

1 Sep 04, 2004 05:52    

Hello,

I set up my MySQL and installed everything successfully but when I tried to log in I got this error message:

Fatal error: main(): Failed opening required '/homepages/9/d85398351/htdocs/tscom./blogs/b2evocore/../htsrv/login.php' (include_path='.:/usr/local/lib/php') in /homepages/9/d85398351/htdocs/tscom./blogs/b2evocore/_main.php on line 103

not to good with all this can anybody help pleas?

Thanx, Tweaked

2 Sep 04, 2004 08:24

What does it say on line 103 in your skin's main.php?

3 Sep 04, 2004 10:43

Azel, that's not looking at a skin, it's erroring out in /blogs/b2evocore/_main.php, not in the skin.

So, what's on line 133 of /blogs/b2evocore/_main.php? Can you open the file in a text editor?

4 Sep 04, 2004 16:59

I?m Realy new to this sorry for postin the full code.

[code<?php
/**
* This file initializes everything BUT the blog!
*
* It is useful when you want to do very customized templates!
* It is also called by more complete initializers.
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2004 by Francois PLANQUE - {@link http://fplanque.net/}
*
* @package evocore
*/
if( isset( $main_init ) )
{ // Prevent double loading since require_once won't work in all situations
// on windows when some subfolders have caps :(
// (Check it out on static page generation)
return;
}
$main_init = true;

/**
* Includes:
*/
require_once( dirname(__FILE__).'/../conf/_config.php' );
require_once( dirname(__FILE__).'/_functions.php' );

timer_start();

require_once( dirname(__FILE__).'/_vars.php' ); // sets various arrays and vars for use in b2
require_once( dirname(__FILE__).'/_class_settings.php' );
require_once( dirname(__FILE__).'/_class_db.php' );
require_once( dirname(__FILE__).'/_functions_template.php' ); // function to be called from templates
require_once( dirname(__FILE__).'/_functions_xmlrpc.php' );
require_once( dirname(__FILE__).'/_functions_xmlrpcs.php' );
require_once( dirname(__FILE__).'/_class_blog.php' );
require_once( dirname(__FILE__).'/_class_itemlist.php' );
require_once( dirname(__FILE__).'/_class_itemcache.php' );
require_once( dirname(__FILE__).'/_class_commentlist.php' );
require_once( dirname(__FILE__).'/_class_archivelist.php' );
require_once( dirname(__FILE__).'/_class_dataobjectcache.php' );
require_once( dirname(__FILE__).'/_class_calendar.php' );
require_once( dirname(__FILE__).'/_functions_hitlogs.php' ); // referer logging
require_once( dirname(__FILE__).'/_functions_forms.php' );
require_once( dirname(__FILE__).'/_class_renderer.php' );
require_once( dirname(__FILE__).'/_class_toolbars.php' );

if( !$config_is_done )
{ // base config is not done.
$error_message = 'Base configuration is not done.';
require dirname(__FILE__).'/_conf_error.page.php'; // error & exit
}

if( !function_exists( 'gzencode' ) )
{ // when there is no function to gzip, we won't do it
$use_gzipcompression = false;
}

if( $use_obhandler )
{ // register output buffer handler
ob_start( 'obhandler' );
}

// Connecting to the db:
$DB = new DB( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST, $db_aliases );

$Settings = & new Settings();

$servertimenow = time();
$localtimenow = $servertimenow + ($Settings->get('time_difference') * 3600);

debug_log('default_locale from conf: '.$default_locale);

locale_overwritefromDB();
debug_log('default_locale from DB: '.$default_locale);

$default_locale = locale_from_httpaccept(); // set default locale by autodetect
debug_log('default_locale from HTTP_ACCEPT: '.$default_locale);

// Activate default locale:
locale_activate( $default_locale );

// Object caches init:
$GroupCache = & new DataObjectCache( 'Group', true, $tablegroups, 'grp_', 'grp_ID' );
$BlogCache = & new BlogCache();
$ItemCache = & new ItemCache();

// Plug-ins init:
$Renderer = & new Renderer();
$Toolbars = & new Toolbars();

// Login procedure:
if( !isset($login_required) ) $login_required = false;
if( $error = veriflog( $login_required ) )
{ // Login failed:
require(dirname(__FILE__) . "/$core_dirout/$htsrv_subdir/login.php");
}

if( is_logged_in() && $current_User->get('locale') != $default_locale )
{ // change locale to users preference
$default_locale = $current_User->get('locale');
locale_activate( $default_locale );
debug_log('default_locale from user profile: '.$default_locale);
}

// Load hacks file if it exists
@include_once( dirname(__FILE__) . '/../conf/hacks.php' );
?>
[/code]

5 Sep 04, 2004 19:06

I fixed the problem It was on my FTP server side. :D

Thanx for the help guys and sorry for the hassle.

Tweaked :)


Form is loading...