verano Posted December 6, 2011 Share Posted December 6, 2011 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! Quote Link to comment Share on other sites More sharing options...
tomfmason Posted December 6, 2011 Share Posted December 6, 2011 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. Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 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"); ?> Quote Link to comment Share on other sites More sharing options...
scootstah Posted December 6, 2011 Share Posted December 6, 2011 /home/wolfy45/public_html/forum/SSI.php on line 62 In there. Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 <?php require("/home/wolfy45/public_html/forum/SSI.php"); ssi_recentTopics(); require_once("QueryString.php"); ?> That? Quote Link to comment Share on other sites More sharing options...
scootstah Posted December 6, 2011 Share Posted December 6, 2011 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. Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 <?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'); Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 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 Quote Link to comment Share on other sites More sharing options...
Pandemikk Posted December 6, 2011 Share Posted December 6, 2011 It means the file doesn't exist. Hence: "No such file or directory". Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 hm... how do i fix this? Quote Link to comment Share on other sites More sharing options...
Pandemikk Posted December 6, 2011 Share Posted December 6, 2011 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? Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 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'); Quote Link to comment Share on other sites More sharing options...
Pandemikk Posted December 6, 2011 Share Posted December 6, 2011 Nevermind. Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 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, ':', '-'); Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 Why would that stat be failing? Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 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 Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted December 6, 2011 Share Posted December 6, 2011 Those errors are pretty much self-explanatory. What in particular do you need help with? Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 I am guessing to correct the code on load.php require_once($sourcedir . '/Subs-Db-' . $db_type . '.php'); adding in the slash Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted December 6, 2011 Share Posted December 6, 2011 That looks right. Are you saying that even though you've added the forward slash, it doesn't show up in the path? Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 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 Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 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 Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted December 6, 2011 Share Posted December 6, 2011 Now it looks as though the $sourcedir variable is empty. var_dump() it and see what it holds. Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 How do I do that? Pardon me, I know little php. Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 I dont understand how that file is missing if its THERE with the path being ... public_html/forum/Sources/ Quote Link to comment Share on other sites More sharing options...
verano Posted December 6, 2011 Author Share Posted December 6, 2011 Sorry for the repost, but how do I do a var_dump() as i was told the $sourcedir variable may be empty Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.