Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Fatal error, I don't understand why?


  • Please log in to reply

#1
UberMario

UberMario

    Member

  • Member
  • PipPip
  • 96 posts
So, I open the page and it says:

Warning: main(/home2/yukapok/data/lib/cache/lib.php) [function.main]: failed to open stream: No such file or directory in /home2/yukapok/public_html/candy/includes.php on line 25

Fatal error: main() [function.require]: Failed opening required '/home2/yukapok/data/lib/cache/lib.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/yukapok/public_html/candy/includes.php on line 25

Line 25 says:

require_once($CFG->dirroot.'lib/cache/lib.php');

The whole document says

<?php

	// error_reporting(E_ERROR | E_WARNING | E_PARSE);

	// All installation specific parameters should be in a file 
	// that is not part of the standard distribution.
		if (!file_exists(dirname(__FILE__)."/config.php")) {
			die('Elgg configuration error: config.php is missing. Please see INSTALL file.');
		}
		require_once(dirname(__FILE__)."/config.php");

	// Check for .htaccess
		if (!file_exists(dirname(__FILE__)."/.htaccess")) {
			die('Elgg configuration error: .htaccess is missing. Please see INSTALL file.');
		}

	// Check config values make sense
		require_once(dirname(__FILE__).'/sanitychecks.php');

	/***************************************************************************
	*	HELPER LIBRARIES
	****************************************************************************/

	// Load cache lib
		require_once($CFG->dirroot.'lib/cache/lib.php');

	// Load datalib
		require_once($CFG->dirroot.'lib/datalib.php');

	// Load elgglib
		require_once($CFG->dirroot.'lib/elgglib.php');

	// Load constants
		require_once($CFG->dirroot.'lib/constants.php');

	/***************************************************************************
	*	CORE FUNCTIONALITY LIBRARIES
	****************************************************************************/

	// Load setup.php which will initialize database connections and such like.
		require_once($CFG->dirroot.'lib/setup.php');

	// Load required system files: do not edit this line.
		require_once(dirname(__FILE__)."/includes_system.php");

	// User functions
		require_once($CFG->dirroot.'lib/userlib.php');

	// Check database
		require_once($CFG->dirroot.'lib/dbsetup.php');

	/***************************************************************************
	*	PLUGIN INITIALISATION
	****************************************************************************/

	// XMLRPC
		@include($CFG->dirroot . "units/rpc/main.php");

		if ($allmods = get_list_of_plugins('mod') ) {
			foreach ($allmods as $mod) {
				$mod_init = $mod . '_init';
				if (function_exists($mod_init)) {
					$mod_init();
				   }
		   }
		}

	/***************************************************************************
	*	CONTENT MODULES
	*	This should make languages easier, although some kind of
	*	selection process will be required
	****************************************************************************/

	// General
		include_once($CFG->dirroot . "content/general/main.php");
	// Main index
		include_once($CFG->dirroot . "content/mainindex/main.php");
	// User-related
		include_once($CFG->dirroot . "content/users/main.php");

	/***************************************************************************
	*	HELP MODULES
	****************************************************************************/

	// Include main
		include_once($CFG->dirroot . "help/mainindex/main.php");

	// Visual editor (tinyMCE)
		@include($CFG->dirroot . "units/tinymce/main.php");

	// Calendaring system
	//	require($CFG->dirroot . "units/calendar/main.php");

	/***************************************************************************
	*	START-OF-PAGE RUNNING
	****************************************************************************/

		run("init");

	// Walled garden checking: if we're not logged in,
	// and walled garden functionality is turned on, redirect to
	// the logon screen
		if (!empty($CFG->walledgarden) && (context != "external" || !defined("context")) && !logged_on) {
			header("Location: " . $CFG->wwwroot . "login/index.php");
			exit();
		}

?>

Ask questions, please, anything. I'm stuck. T-T

Oh, also my dirroot is /home2/user/yukapok/data/, I had trouble with that, but got it figured out (I think...)

Thanks!
  • 0

Advertisements


#2
thenotch

thenotch

    Member

  • Retired Staff
  • 667 posts
My initial guess is that this requires the entire absolute url to be entered instead of just the directory/filename.

So, for example, instead of login/index.php you might need to try /home2/yukapok/public_html/login/index.php instead.
  • 0

#3
UberMario

UberMario

    Member

  • Topic Starter
  • Member
  • PipPip
  • 96 posts
Or I needed to change my dirroot to /home2/yukapok/public_html/town/, y'know. Same thing.

ps. I resolved it.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP