Jump to content

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!

Link to comment
https://forums.phpfreaks.com/topic/252548-fatal-error/
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');

Link to comment
https://forums.phpfreaks.com/topic/252548-fatal-error/#findComment-1294815
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

 

Link to comment
https://forums.phpfreaks.com/topic/252548-fatal-error/#findComment-1294816
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');

 

Link to comment
https://forums.phpfreaks.com/topic/252548-fatal-error/#findComment-1294822
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, ':', '-');

Link to comment
https://forums.phpfreaks.com/topic/252548-fatal-error/#findComment-1294830
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

 

Link to comment
https://forums.phpfreaks.com/topic/252548-fatal-error/#findComment-1294922
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

Link to comment
https://forums.phpfreaks.com/topic/252548-fatal-error/#findComment-1294967
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.