<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Help with error.]]></title>
		<link>https://punbb.informer.com/forums/topic/21067/help-with-error/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/21067/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Help with error..]]></description>
		<lastBuildDate>Fri, 13 Feb 2009 22:19:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Help with error.]]></title>
			<link>https://punbb.informer.com/forums/post/124573/#p124573</link>
			<description><![CDATA[<p>But can you tell me what the search functions do when they return no results? As that&#039;s the only time it errors out.</p>]]></description>
			<author><![CDATA[null@example.com (omikron)]]></author>
			<pubDate>Fri, 13 Feb 2009 22:19:41 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/124573/#p124573</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with error.]]></title>
			<link>https://punbb.informer.com/forums/post/124524/#p124524</link>
			<description><![CDATA[<p>Yes we do. However as this isnt mainly a 1.3 Issue I dont know what to suggest. Sorry.</p>]]></description>
			<author><![CDATA[null@example.com (Utchin)]]></author>
			<pubDate>Fri, 13 Feb 2009 00:46:18 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/124524/#p124524</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with error.]]></title>
			<link>https://punbb.informer.com/forums/post/124522/#p124522</link>
			<description><![CDATA[<p>Do the devs of this forum software ever read the forums?</p>]]></description>
			<author><![CDATA[null@example.com (omikron)]]></author>
			<pubDate>Thu, 12 Feb 2009 23:12:46 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/124522/#p124522</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with error.]]></title>
			<link>https://punbb.informer.com/forums/post/124466/#p124466</link>
			<description><![CDATA[<p>I have found out that whenever a search parameter finds nothing is when i get the error. So if i search for something I know exists in the forums everything is fine, if there are no results it gives;</p><p>Fatal error: Call to a member function on a non-object in /****/session.php on line 91</p><p>Does this make any sense? Where can I find what each search function does when it returns null?</p>]]></description>
			<author><![CDATA[null@example.com (omikron)]]></author>
			<pubDate>Wed, 11 Feb 2009 21:28:20 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/124466/#p124466</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with error.]]></title>
			<link>https://punbb.informer.com/forums/post/124270/#p124270</link>
			<description><![CDATA[<p>Think I figured out what is happening, but I am not sure how to fix it...</p><p>Seems that when search calls anything from search_functions.php it&#039;s not calling my php includes from include/user. Have a file called session.php which contains;</p><div class="codebox"><pre><code>&lt;?
include(&quot;../include/session.php&quot;);
if(!$session-&gt;logged_in){
header(&quot;Location: ../index.php&quot;);
}

?&gt;</code></pre></div><p>If I remove include/user/session.php and just put &quot;include(&quot;../include/session.php&quot;);&quot; at the top of search.php it works fine...</p><p>Anyone have any ideas?</p>]]></description>
			<author><![CDATA[null@example.com (omikron)]]></author>
			<pubDate>Sun, 08 Feb 2009 04:48:04 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/124270/#p124270</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with error.]]></title>
			<link>https://punbb.informer.com/forums/post/124173/#p124173</link>
			<description><![CDATA[<p>Anyone that knows the punbb variables a little able to look at what might be conflicting?</p>]]></description>
			<author><![CDATA[null@example.com (omikron)]]></author>
			<pubDate>Fri, 06 Feb 2009 03:14:21 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/124173/#p124173</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with error.]]></title>
			<link>https://punbb.informer.com/forums/post/124162/#p124162</link>
			<description><![CDATA[<p>Ok yeah I was afraid you were referring to that post... That is the first thing I saw when I&nbsp; Googled my error.</p><p>It wasn&#039;t any help...</p><p>That section of code works fine on every other page of the site so I was thinking it may be conflicting variables or something?</p>]]></description>
			<author><![CDATA[null@example.com (omikron)]]></author>
			<pubDate>Thu, 05 Feb 2009 18:25:13 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/124162/#p124162</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with error.]]></title>
			<link>https://punbb.informer.com/forums/post/124161/#p124161</link>
			<description><![CDATA[<p>I looked on a forum and found the message above, The words in bold were the persons variables they were using. My advice is make sure that your variables dont remain null when you call the code out.</p>]]></description>
			<author><![CDATA[null@example.com (Utchin)]]></author>
			<pubDate>Thu, 05 Feb 2009 17:38:17 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/124161/#p124161</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with error.]]></title>
			<link>https://punbb.informer.com/forums/post/124159/#p124159</link>
			<description><![CDATA[<div class="quotebox"><cite>Utchin wrote:</cite><blockquote><p>I dont know how to fix this but looking around: <br /></p><div class="quotebox"><blockquote><p>Your constructor for<strong>someclass</strong>is not setting the<strong>someobject</strong>member variable correctly, so it remains a null reference, which causes the error.</p></blockquote></div></blockquote></div><p>I am not sure where to go form here, will you please elaborate?</p>]]></description>
			<author><![CDATA[null@example.com (omikron)]]></author>
			<pubDate>Thu, 05 Feb 2009 16:20:54 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/124159/#p124159</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with error.]]></title>
			<link>https://punbb.informer.com/forums/post/124155/#p124155</link>
			<description><![CDATA[<p>I edited my first port to include the beginning of the function starting at like 79, does this help at all?</p>]]></description>
			<author><![CDATA[null@example.com (omikron)]]></author>
			<pubDate>Thu, 05 Feb 2009 15:10:34 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/124155/#p124155</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with error.]]></title>
			<link>https://punbb.informer.com/forums/post/124151/#p124151</link>
			<description><![CDATA[<p>I dont know how to fix this but looking around: </p><div class="quotebox"><blockquote><p>Your constructor for <strong>someclass </strong>is not setting the <strong>someobject </strong>member variable correctly, so it remains a null reference, which causes the error.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (Utchin)]]></author>
			<pubDate>Thu, 05 Feb 2009 14:47:58 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/124151/#p124151</guid>
		</item>
		<item>
			<title><![CDATA[Help with error.]]></title>
			<link>https://punbb.informer.com/forums/post/124149/#p124149</link>
			<description><![CDATA[<p>I have PunBB integrated into a website that has a login system.</p><p>Whenever I hit submit on the forum search I recieve;</p><p><strong><br />Fatal error: Call to a member function on a non-object in /****/session.php on line 91</strong></p><p>Session.php is part of the websites login - here are lines 79 though 110 of session.php.</p><div class="codebox"><pre><code>   function checkLogin(){
      global $database;  //The database connection
      /* Check if user has been remembered */
      if(isset($_COOKIE[&#039;cookname&#039;]) &amp;&amp; isset($_COOKIE[&#039;cookid&#039;])){
         $this-&gt;username = $_SESSION[&#039;username&#039;] = $_COOKIE[&#039;cookname&#039;];
         $this-&gt;userid   = $_SESSION[&#039;userid&#039;]   = $_COOKIE[&#039;cookid&#039;];
      }

      if(isset($_SESSION[&#039;username&#039;]) &amp;&amp; isset($_SESSION[&#039;userid&#039;]) &amp;&amp;
         $_SESSION[&#039;username&#039;] != GUEST_NAME){
         /* Confirm that username and userid are valid */
91         if($database-&gt;confirmUserID($_SESSION[&#039;username&#039;], $_SESSION[&#039;userid&#039;]) != 0){
            /* Variables are incorrect, user not logged in */
            unset($_SESSION[&#039;username&#039;]);
            unset($_SESSION[&#039;userid&#039;]);
            return false;
         }

         /* User is logged in, set class variables */
         $this-&gt;userinfo  = $database-&gt;getUserInfo($_SESSION[&#039;username&#039;]);
         $this-&gt;username  = $this-&gt;userinfo[&#039;username&#039;];
         $this-&gt;userid    = $this-&gt;userinfo[&#039;userid&#039;];
         $this-&gt;userlevel = $this-&gt;userinfo[&#039;userlevel&#039;];
         $this-&gt;company = $this-&gt;company[&#039;company&#039;];
         return true;
      }
      /* User not logged in */
      else{
         return false;
      }
   }</code></pre></div><br /><p>Line 91 is pulling this from another file;</p><div class="codebox"><pre><code>   function confirmUserID($username, $userid){
      /* Add slashes if necessary (for query) */
      if(!get_magic_quotes_gpc()) {
          $username = addslashes($username);
      }

      /* Verify that user is in database */
      $q = &quot;SELECT userid FROM &quot;.TBL_USERS.&quot; WHERE username = &#039;$username&#039;&quot;;
      $result = mysql_query($q, $this-&gt;connection);
      if(!$result || (mysql_numrows($result) &lt; 1)){
         return 1; //Indicates username failure
      }

      /* Retrieve userid from result, strip slashes */
      $dbarray = mysql_fetch_array($result);
      $dbarray[&#039;userid&#039;] = stripslashes($dbarray[&#039;userid&#039;]);
      $userid = stripslashes($userid);

      /* Validate that userid is correct */
      if($userid == $dbarray[&#039;userid&#039;]){
         return 0; //Success! Username and userid confirmed
      }
      else{
         return 2; //Indicates userid invalid
      }
   }</code></pre></div><br /><p>Anyone have any idea where the conflict could be?:/</p>]]></description>
			<author><![CDATA[null@example.com (omikron)]]></author>
			<pubDate>Thu, 05 Feb 2009 14:36:13 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/124149/#p124149</guid>
		</item>
	</channel>
</rss>
