Jump to content

verano

Members
  • Posts

    91
  • Joined

  • Last visited

    Never

Everything posted by verano

  1. verano

    Fatal Error

    This code $key = md5($boardurl . filemtime($sourcedir . 'Sources/Load.php')) . '-SMF-' . strtr($key, ':', '-'); is generating this error message.. Warning: filemtime() [function.filemtime]: stat failed for Sources/Load.php in /home/wolfy45/public_html/forum/Sources/Load.php on line 2687 Connection Problems Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later. Why?
  2. verano

    Fatal Error

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

    Fatal Error

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

    Fatal Error

    How do I do that? Pardon me, I know little php.
  5. verano

    Fatal Error

    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
  6. verano

    Fatal Error

    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
  7. verano

    Fatal Error

    I am guessing to correct the code on load.php require_once($sourcedir . '/Subs-Db-' . $db_type . '.php'); adding in the slash
  8. verano

    Fatal Error

    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
  9. verano

    Fatal Error

    Why would that stat be failing?
  10. verano

    Fatal Error

    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, ':', '-');
  11. verano

    Fatal Error

    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');
  12. verano

    Fatal Error

    hm... how do i fix this?
  13. verano

    Fatal Error

    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
  14. verano

    Fatal Error

    <?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');
  15. verano

    Fatal Error

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

    Fatal Error

    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"); ?>
  17. 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!
  18. wow, im speechless, I learned something AND it fixed the problem. thank you X2
  19. Parse error: syntax error, unexpected T_WHILE in /home/smileits/public_html/space/post.php on line 87 <? session_start(); // This forum was developed by Adam M. B. from aWeb Labs // Visit us at http://www.labs.aweb.com.au // for forum problems, bugs, or ideas email yougotmail@gmail.com // thanks for trying out or using this forum // aWebBB version 1.2 released under the GNU GPL // connect to database and pull up info include "config.php"; $user123=$_POST['Username']; $db = mysql_connect($db_host,$db_user,$db_pass); mysql_select_db ($db_name) or die ("Cannot connect to database"); //Get the data $query = "SELECT id, username, password FROM users WHERE username='$user123'"; $result = mysql_query($query); /* Here we fetch the result as an array */ while($r=mysql_fetch_array($result)) { /* This bit sets our data from each row as variables, to make it easier to display */ $id=$r["id"]; $_Username=$r["username"]; $_Password=$r["password"]; // If the form was submitted if ($_POST['Submitted'] == "True") { // If the username and password match up, then continue... if ($_POST['Username'] == $_Username && $_POST['Password'] == $_Password) { // Username and password matched, set them as logged in and set the // Username to a session variable. $_SESSION['Logged_In'] = "True"; $_SESSION['Username'] = $_Username; } } } mysql_close($db); // If they are NOT logged in then show the form to login... if ($_SESSION['Logged_In'] != "True") { echo "<META HTTP-EQUIV=\"refresh\" content=\"0; URL=login.php?page=" . $_SERVER['PHP_SELF'] . "\">"; } else { include("header.php"); include "config.php"; $db = mysql_connect($db_host,$db_user,$db_pass); mysql_select_db ($db_name) or die ("Cannot connect to database"); $query = "SELECT sig, avatar FROM users WHERE username = '$_SESSION[username]'"; $result = mysql_query($query); while($r=mysql_fetch_array($result)) { $sig=$r["sig"]; $avatar=$r["avatar"]; ?> <script type="text/javascript"> <!-- function insertext(text){ document.post.fpost.value+=" "+ text; document.post.fpost.focus(); } //--> </script> <style type='text/css'><!--.bordercontrol {padding: 0px; border-right: 1px solid silver; border-top: 1px solid #DDDDDD; border-left: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD;}A.post:hover, A.post:active {background-color: #DDDDDD}A.post:hover .bordercontrol, A.post:active .bordercontrol {background-color: silver; padding: 0px; border:1px; border-thickness: 1px; border-color: grey; border-style: solid}--></style> <div class="side-headline"><b>New Forum Thread:</b></div><br> <div align="center"> <form name="post" method="post" action="post.php?a=post"> <input type="hidden" name="sig" value="<?=$sig;?>"> <input type="hidden" name="avatar" value="<?=$avatar;?>"> <div class="grey-box"> Thread Name: <input type="text" name="tname" size="30" max="10"></div> <div class="grey-box">Select a Category: <select name="category" id="category"> <?php if ($_GET['c'] != "") { $catthing = " WHERE category != '$_GET[c]'"; $cit=$_GET['c']; echo "<option value=\"$cit\" selected>$cit</option>"; } else { } //connection to database include "config.php"; $db = mysql_connect($db_host,$db_user,$db_pass); mysql_select_db ($db_name) or die ("Cannot connect to database"); $query = "SELECT category FROM fcat$catthing"; $result = mysql_query($sql) while($r=mysql_fetch_array($result)) { $cname=$r["category"]; echo "<option value=\"$cname\">$cname</option>"; } mysql_close($db); ?> </select> </div> <div class="grey-box"><a class="post" href="javascript:insertext('')"><img class="bordercontrol" alt="smile" src="smilies/smile.gif" border="0" vspace="1" width="18" height="18"></a><a class="post" href="javascript:insertext('')"><img class="bordercontrol" alt="wink" src="smilies/wink.gif" border="0" vspace="1" width="18" height="18"></a><a class="post" href="javascript:insertext(':-p')"><img class="bordercontrol" alt="tongue" src="smilies/tongue.gif" border="0" vspace="1" width="18" height="18"></a><a class="post" href="javascript:insertext('>')"><img class="bordercontrol" alt="angry" src="smilies/angry.gif" border="0" vspace="1" width="18" height="18"></a><a class="post" href="javascript:insertext('')"><img class="bordercontrol" alt="sad" src="smilies/sad.gif" border="0" vspace="1" width="18" height="18"></a><a class="post" href="javascript:insertext(':-D')"><img class="bordercontrol" alt="laughing" src="smilies/laughing.gif" border="0" vspace="1" width="18" height="18"></a><a class="post" href="javascript:insertext('<b> </b>')" title="Bold"><img class="bordercontrol" src="format_edit/ed_format_bold.gif" border="0" width="18" height="18" vspace="1"></a><a class="post" href="javascript:insertext('<i> </i>')" title="Italics"><img class="bordercontrol" src="format_edit/ed_format_italic.gif" border="0" width="18" height="18" vspace="1"></a><a class="post" href="javascript:insertext('<s> </s>')" title="Strikethrough"><img class="bordercontrol" src="format_edit/ed_format_strike.gif" border="0" width="18" height="18" vspace="1"></a><a class="post" href="javascript:insertext('<u> </u>')" title="Underline"><img class="bordercontrol" src="format_edit/ed_format_underline.gif" border="0" vspace="1" width="18" height="18"></a><a class="post" href="javascript:insertext('<a href=www.website.com> linked text </a>')" title="Insert Link"><img class="bordercontrol" src="format_edit/ed_link.gif" border="0" vspace="1" width="18" height="18"></a><a class="post" href="javascript:insertext('<br>')" title="New Line"><img class="bordercontrol" src="format_edit/ed_left_to_right.gif" border="0" vspace="1" width="18" height="18"></a><a class="post" href="#" onClick="document.post.reset()"><img class="bordercontrol" src="format_edit/ed_delete.gif" border="0" vspace="1" width="18" height="18" title="Erase all"></a> </div> <div class="grey-box"> Thread Text: <br> <textarea name="fpost" cols="45" rows="7"></textarea></div> <div class="grey-box"><div align="center"> <input type="submit" name="Submit" value="Post New Thread"> </form></div></div></div> <? } if ($_GET['a'] == "post") { $time1=date("H:i:s"); $rand=rand(1000000, 9999999); include "config.php"; // As you can see we connected to the database with config $db = mysql_connect($db_host, $db_user, $db_pass); mysql_select_db ($db_name) or die ("Cannot connect to database"); $query = "INSERT INTO flist(tid, categories, tname, poster, date) VALUES('$rand','$_POST[category]','$_POST[tname]','$_SESSION[username]', now())"; mysql_query($query); echo "Thread "; mysql_close($db); include "config.php"; // As you can see we connected to the database with config $db = mysql_connect($db_host, $db_user, $db_pass); mysql_select_db ($db_name) or die ("Cannot connect to database"); $query = "INSERT INTO forum(tid, categories, tname, poster, fpost, sig, avatar, time, date) VALUES('$rand','$_POST[category]','$_POST[tname]','$_SESSION[username]','$_POST[fpost]','$_POST[sig]','$_POST[avatar]','$time1', now())"; mysql_query($query); echo "Submitted"; echo '<meta http-equiv="refresh" content="0;url=index.php">'; mysql_close($db); } else { } include("footer.php"); // If they want to logout then if ($_GET['mode'] == "logout") { // Start the session session_start(); // Put all the session variables into an array $_SESSION = array(); // and finally remove all the session variables session_destroy(); // Redirect to show results.. echo "<META HTTP-EQUIV=\"refresh\" content=\"1; URL=" . $_SERVER['PHP_SELF'] . "\">"; } } ?> error appears on line 87 which shows... while($r=mysql_fetch_array($result))
  20. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource on line 47 for header.php... <? include "header2.php"; include "config.php"; $db = mysql_connect($db_host,$db_user,$db_pass); mysql_select_db ($db_name) or die ("Cannot connect to database"); //Get the data $query = "SELECT sitename, forumname, sitetitle, menulink, normallink, defimage, defsig, backcolor, msitecolor, siteurl, headimage, hiwidth, hiheight FROM prefs"; $result = mysql_query($query); /* Here we fetch the result as an array */ while($r=mysql_fetch_array($result)) { /* This bit sets our data from each row as variables, to make it easier to display */ $sitename = $r["sitename"]; $forumname = $r["forumname"]; $sitetitle = $r["sitetitle"]; $menulink = $r["menulink"]; $normallink = $r["normallink"]; $defimage = $r["defimage"]; $defsig = $r["defsig"]; $backcolor = $r["backcolor"]; $msitecolor = $r["msitecolor"]; $siteurl = $r["siteurl"]; $headimage = $r["headimage"]; $hiwidth = $r["hiwidth"]; $hiheight = $r["hiheight"]; ?> <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td bgcolor="<?=$msitecolor;?>"> <? if ($_SESSION['Username'] == "" AND $_SESSION['Logged_In'] != "True" OR $_SESSION['Logged_In'] == "True-Admin") { $log_button = "<a href=\"login.php\" class=\"menu\">Login</a>"; } else { $log_button = "<a href=\"login.php?mode=logout\" class=\"menu\">Logout</a>"; } ?><a href="index.php" class="menu"><b>The <?=$sitename;?> Forum</b></a></td><td bgcolor="<?=$msitecolor;?>" align="right"> <a href="post.php?c=<?=$_GET['c'];?>" class="menu">New Thread</a> <a href="search.php" class="menu">Search</a> <a href="stat.php" class="menu">Statistics</a> <a href="accounts.php" class="menu">Account Settings</a> <?=$log_button;?> </td></tr><tr><td bgcolor="<?=$msitecolor;?>" colspan="2" align="center"> <? } mysql_close($db); //connection to database include "config.php"; $db = mysql_connect($db_host,$db_user,$db_pass); mysql_select_db ($db_name) or die ("Cannot connect to database"); $query = "SELECT category FROM fcat ORDER BY id LIMIT 0,2"; $result = mysql_query($query); while($r=mysql_fetch_array($result)) { $cname=$r["category"]; echo "<b><a href=\"list.php?c=$cname\" class=\"menu\">$cname</a> </b>"; } mysql_close($db); ?> <b><a href="listcat.php" class="menu">List All</a></b> </td></tr></table> This is line 47... $defimage = $r["defimage"]; Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource on line 20 for index.php... <? session_start(); // This forum was developed by Adam M. B. from aWeb Labs // Visit us at http://www.labs.aweb.com.au // for forum problems, bugs, or ideas email yougotmail@gmail.com // thanks for trying out or using this forum // aWebBB version 1.2 released under the GNU GPL include "header.php"; ?> <div align="center"> <div class="side-headline"><b>Forum Index:</b></div><br> <table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top"> <? include "config.php"; $db = mysql_connect($db_host,$db_user,$db_pass); mysql_select_db ($db_name) or die ("Cannot connect to database"); $query1 = "SELECT category, description FROM fcat ORDER BY category DESC"; $result1 = mysql_query($query1); while($r=mysql_fetch_array($result1)) { $category = $r["category"]; $description = $r["description"]; ?> <div class="bluein-box"> <table cellpadding="0" cellspacing="0" border="0" width="350"><tr><td width="4"></td><td width="130" valign="top"> <b><a href="list.php?c=<?=$category;?>"><?=$category;?>:</a></b></td><td width="60" valign="top"><b>Topics:</b><br> <? $query3="SELECT * FROM flist WHERE categories = '$category'"; $result3 = mysql_query($query3); $num_rows3 = mysql_num_rows($result3); echo "$num_rows3"; ?> </td><td width="60" valign="top"><b>Posts:</b><br> <? $query2="SELECT * FROM forum WHERE categories = '$category'"; $result2 = mysql_query($query2); $num_rows2 = mysql_num_rows($result2); echo "$num_rows2"; ?> </td><td width="100" valign="top"><b>Last Post:</b><br> <? $query5 = "SELECT time, date FROM forum WHERE categories = '$category' ORDER BY date DESC LIMIT 0,1"; $result5 = mysql_query($query5); /* Here we fetch the result as an array */ while($r1=mysql_fetch_array($result5)) { $time=$r1["time"]; $date=$r1["date"]; ?> <?=$date;?> @ <?=$time;?> <? } ?> </td></tr></table> </div> <? } mysql_close($db); ?> </td><td valign="top"> <div class="greyin-box"> <table cellpadding="0" cellspacing="0" border="0" width="300"><tr><td width="300" valign="top"><b>Recent Posts:</b><br><br> <? include "config.php"; $db = mysql_connect($db_host,$db_user,$db_pass); mysql_select_db ($db_name) or die ("Cannot connect to database"); //Get the data $query = "SELECT id, tid, categories, tname, poster, fpost, sig, avatar, time, date FROM forum ORDER BY date DESC LIMIT 0,7"; $result = mysql_query($query); /* Here we fetch the result as an array */ while($r=mysql_fetch_array($result)) { $id=$r["id"]; $tid=$r["tid"]; $categories=$r["categories"]; $tname=$r["tname"]; $poster=$r["poster"]; $fpost=$r["fpost"]; $sig=$r["sig"]; $avatar=$r["avatar"]; $time=$r["time"]; $date=$r["date"]; echo "<a href=\"ndis.php?c=$categories&tid=$tid&t=$tname\"><b>$tname</b> by $poster<br></a>"; } ?> </td></tr></table></div> </td></tr></table> <? echo "</div>"; include "footer.php"; ?> this is line 20.. while($r=mysql_fetch_array($result1))
  21. I guess thats the part I dont understand. I tried.. $result = mysql_query($sql) or die(mysql_error()); but response was query is empty
  22. i know, i found this.. $definamge = $r["defimage"]; and updated it to.. $defimage = $r["defimage"]; error still exists
  23. exactly... what more information can i provide to research further.
  24. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resourc The line that this is referring to is.... while($r=mysql_fetch_array($result))
×
×
  • 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.