Jump to content

Archived

This topic is now archived and is closed to further replies.

verano

Fatal Error

Recommended Posts

Warning: require_once(/QueryString.php) [function.require-once]: failed to open stream: No such file or directory in /home/wolfy45/public_html/forum/SSI.php on line 62

 

Fatal error: require_once() [function.require]: Failed opening required '/QueryString.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wolfy45/public_html/forum/SSI.php on line 62

 

 

I need to resolve this!

Share this post


Link to post
Share on other sites

It looks like you most likely need

require_once("QueryString.php");

 

as /QueryString.php is looking for that file in the root of the server.

Share this post


Link to post
Share on other sites

thanks for offering your help! 

 

Where do I put this in the code?

 

 

This is the current code that gets the errors..

<?php require("/home/wolfy45/public_html/forum/SSI.php");
ssi_recentTopics(); require_once("QueryString.php"); ?>

 

Share this post


Link to post
Share on other sites
/home/wolfy45/public_html/forum/SSI.php on line 62

 

In there.

Share this post


Link to post
Share on other sites

<?php require("/home/wolfy45/public_html/forum/SSI.php");
ssi_recentTopics(); require_once("QueryString.php"); ?>

 

 

That?

Share this post


Link to post
Share on other sites

I don't know what "that" is. But your error came from the SSI.php file. And considering that code is requiring the SSI.php file, I'm going to say that's not it.

Share this post


Link to post
Share on other sites

<?php

/**
* Simple Machines Forum (SMF)
*
* @package SMF
* @author Simple Machines http://www.simplemachines.org
* @copyright 2011 Simple Machines
* @license http://www.simplemachines.org/about/smf/license.php BSD
*
* @version 2.0
*/

// Don't do anything if SMF is already loaded.
if (defined('SMF'))
return true;

define('SMF', 'SSI');

// We're going to want a few globals... these are all set later.
global $time_start, $maintenance, $msubject, $mmessage, $mbname, $language;
global $boardurl, $boarddir, $sourcedir, $webmaster_email, $cookiename;
global $db_server, $db_name, $db_user, $db_prefix, $db_persist, $db_error_send, $db_last_error;
global $db_connection, $modSettings, $context, $sc, $user_info, $topic, $board, $txt;
global $smcFunc, $ssi_db_user, $scripturl, $ssi_db_passwd, $db_passwd, $cachedir;

// Remember the current configuration so it can be set back.
$ssi_magic_quotes_runtime = function_exists('get_magic_quotes_gpc') && get_magic_quotes_runtime();
if (function_exists('set_magic_quotes_runtime'))
@set_magic_quotes_runtime(0);
$time_start = microtime();

// Just being safe...
foreach (array('db_character_set', 'cachedir') as $variable)
if (isset($GLOBALS[$variable]))
	unset($GLOBALS[$variable]);

// Get the forum's settings for database and file paths.
require_once(dirname(__FILE__) . '/Settings.php');

// Make absolutely sure the cache directory is defined.
if ((empty($cachedir) || !file_exists($cachedir)) && file_exists($boarddir . '/cache'))
$cachedir = $boarddir . '/cache';

$ssi_error_reporting = error_reporting(defined('E_STRICT') ? E_ALL | E_STRICT : E_ALL);
/* Set this to one of three values depending on what you want to happen in the case of a fatal error.
false:	Default, will just load the error sub template and die - not putting any theme layers around it.
true:	Will load the error sub template AND put the SMF layers around it (Not useful if on total custom pages).
string:	Name of a callback function to call in the event of an error to allow you to define your own methods. Will die after function returns.
*/
$ssi_on_error_method = false;

// Don't do john didley if the forum's been shut down competely.
if ($maintenance == 2 && (!isset($ssi_maintenance_off) || $ssi_maintenance_off !== true))
die($mmessage);

// Fix for using the current directory as a path.
if (substr($sourcedir, 0, 1) == '.' && substr($sourcedir, 1, 1) != '.')
$sourcedir = dirname(__FILE__) . substr($sourcedir, 1);

// Load the important includes.
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');

// Using an pre-PHP 5.1 version?
if (@version_compare(PHP_VERSION, '5.1') == -1)
require_once($sourcedir . '/Subs-Compat.php');

// Create a variable to store some SMF specific functions in.
$smcFunc = array();

 

Please note that line 62 is

require_once($sourcedir . '/QueryString.php');

Share this post


Link to post
Share on other sites

Further testing.....

I have a plugin that merges Wordpress with SMP Forums, I deactivated it and now I get an error.

 

Fatal error: Call to undefined function cleanrequest() in /home/wolfy45/public_html/forum/SSI.php on line 81

 

// Load installed 'Mods' settings.
reloadSettings();
// Clean the request variables.
cleanRequest();  this is line 81

// Seed the random generator?
if (empty($modSettings['rand_seed']) || mt_rand(1, 250) == 69)
smf_seed_generator();

// Check on any hacking attempts.

 

 

line 81 is defined as shown above

 

Share this post


Link to post
Share on other sites

How do you fix a "file doesn't exist" error? Uhm... You create the file?

 

Why are you trying to include a file that doesn't exist in the first place?

Share this post


Link to post
Share on other sites

Moving forward, resolved those last errors, now I have a new one

 

require_once($sourcedir . 'Sources/QueryString.php');

 

Warning: require_once(Sources/Subs-Db-mysql.php) [function.require-once]: failed to open stream: No such file or directory in /home/wolfy45/public_html/forum/Sources/Load.php on line 2523

 

Fatal error: require_once() [function.require]: Failed opening required 'Sources/Subs-Db-mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wolfy45/public_html/forum/Sources/Load.php on line 2523

 

 

// Load the file for the database.
require_once($sourcedir . 'Sources/Subs-Db-' . $db_type . '.php');

 

Share this post


Link to post
Share on other sites

Fixed that error by putting in..

 

		require_once($sourcedir . 'Subs-Db-' . $db_type . '.php');

 

Seems to be something wrong with the $sourcedir, where can I find what defines it?  I did do an integration

 

 

Current error is Warning: filemtime() [function.filemtime]: stat failed for Sources/Load.php in /home/wolfy45/public_html/forum/Sources/Load.php on line 2685

Connection Problems

Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

 

This is that line.

 

	$key = md5($boardurl . filemtime($sourcedir . 'Sources/Load.php')) . '-SMF-' . strtr($key, ':', '-');

Share this post


Link to post
Share on other sites

Current Errror messages I get.

 

Strict Standards: require_once() [function.require-once]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /home/wolfy45/public_html/forum/Sources/Load.php on line 2523

 

Warning: require_once(/home/wolfy45/public_html/forum/SourcesSubs-Db-mysql.php) [function.require-once]: failed to open stream: No such file or directory in /home/wolfy45/public_html/forum/Sources/Load.php on line 2523

 

Strict Standards: require_once() [function.require-once]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /home/wolfy45/public_html/forum/Sources/Load.php on line 2523

 

Fatal error: require_once() [function.require]: Failed opening required '/home/wolfy45/public_html/forum/SourcesSubs-Db-mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wolfy45/public_html/forum/Sources/Load.php on line 2523

 

Share this post


Link to post
Share on other sites

Those errors are pretty much self-explanatory. What in particular do you need help with?

Share this post


Link to post
Share on other sites

I am guessing to correct the code on load.php

 

require_once($sourcedir . '/Subs-Db-' . $db_type . '.php');

 

adding in the slash

Share this post


Link to post
Share on other sites

That looks right. Are you saying that even though you've added the forward slash, it doesn't show up in the path?

Share this post


Link to post
Share on other sites

Ok so Almost all of the error messages are gone, but I have no stats now for smf forum.

 

www.midwestsleds.com  Main page

www.midwestsleds.com/forum/  forums

Share this post


Link to post
Share on other sites

Current status of issue:

SMF doesnt have header included that shows search bar and welcome message, taht shows welcome amdin, you haev unread messages/posts and such. 

Also only  errors ourstanding are

 

Warning: require_once(/Subs-Db-mysql.php) [function.require-once]: failed to open stream: No such file or directory in /home/wolfy45/public_html/forum/Sources/Load.php on line 2523

 

Fatal error: require_once() [function.require]: Failed opening required '/Subs-Db-mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wolfy45/public_html/forum/Sources/Load.php on line 2523

Share this post


Link to post
Share on other sites

Now it looks as though the $sourcedir variable is empty. var_dump() it and see what it holds.

Share this post


Link to post
Share on other sites

I dont understand how that file is missing if its THERE        with the path being ...  public_html/forum/Sources/

Share this post


Link to post
Share on other sites

Sorry for the repost, but how do I do a var_dump()  as i was told the $sourcedir variable may be empty

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.