<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — $db object not global]]></title>
		<link>https://punbb.informer.com/forums/topic/12404/db-object-not-global/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/12404/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in $db object not global.]]></description>
		<lastBuildDate>Sun, 05 Nov 2006 14:51:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: $db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/80975/#p80975</link>
			<description><![CDATA[<p>Not sure if this helps, but I&#039;m using CMS Made Simple with PunBB integrated...&nbsp; and I can&#039;t run the install_mod without making changes.</p><p>In CMS Made Simple, to run install_mod, the &#039;db-&gt;&#039; queries need to be &#039;pun_db-&gt;&#039;, and then they will run.</p><p>I thought the issue reported here might be a similar thing.</p>]]></description>
			<author><![CDATA[null@example.com (antonjw)]]></author>
			<pubDate>Sun, 05 Nov 2006 14:51:13 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/80975/#p80975</guid>
		</item>
		<item>
			<title><![CDATA[Re: $db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/76841/#p76841</link>
			<description><![CDATA[<p>No, I&#039;m not.</p>]]></description>
			<author><![CDATA[null@example.com (ortzinator)]]></author>
			<pubDate>Sat, 09 Sep 2006 17:32:03 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/76841/#p76841</guid>
		</item>
		<item>
			<title><![CDATA[Re: $db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/75792/#p75792</link>
			<description><![CDATA[<p>I do have a theory about this: are you requiring common.php within a function?</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Fri, 25 Aug 2006 19:04:09 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/75792/#p75792</guid>
		</item>
		<item>
			<title><![CDATA[Re: $db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/75790/#p75790</link>
			<description><![CDATA[<p>Has anyone been able to recreate this? It seems like a pretty widespread bug.</p>]]></description>
			<author><![CDATA[null@example.com (ortzinator)]]></author>
			<pubDate>Fri, 25 Aug 2006 18:54:35 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/75790/#p75790</guid>
		</item>
		<item>
			<title><![CDATA[Re: $db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/73059/#p73059</link>
			<description><![CDATA[<p>Sorry, I was still sleepy <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Mon, 17 Jul 2006 15:48:45 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/73059/#p73059</guid>
		</item>
		<item>
			<title><![CDATA[Re: $db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/73058/#p73058</link>
			<description><![CDATA[<p>This is being done! That is the whole point of this thread!</p>]]></description>
			<author><![CDATA[null@example.com (ortzinator)]]></author>
			<pubDate>Mon, 17 Jul 2006 15:40:30 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/73058/#p73058</guid>
		</item>
		<item>
			<title><![CDATA[Re: $db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/73052/#p73052</link>
			<description><![CDATA[<p>To solve this problem: if you are getting this error when calling a function, make sure you put<br /></p><div class="codebox"><pre><code>global $db;</code></pre></div><p>at the beginning of it.<br />Also, be sure to load common.php at the start of your script.</p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Mon, 17 Jul 2006 13:15:29 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/73052/#p73052</guid>
		</item>
		<item>
			<title><![CDATA[Re: $db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/73033/#p73033</link>
			<description><![CDATA[<p>I didn&#039;t think it was your script, but since you are/were a potential user I thought I might as well point it out <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Mon, 17 Jul 2006 01:47:35 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/73033/#p73033</guid>
		</item>
		<item>
			<title><![CDATA[Re: $db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/73032/#p73032</link>
			<description><![CDATA[<p>It&#039;s not mine but thanks for pointing those out.</p><p>EDIT: An index.php with Connorhd&#039;s Miniportal with poll.php included into it.</p>]]></description>
			<author><![CDATA[null@example.com (ortzinator)]]></author>
			<pubDate>Mon, 17 Jul 2006 01:46:37 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/73032/#p73032</guid>
		</item>
		<item>
			<title><![CDATA[Re: $db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/73031/#p73031</link>
			<description><![CDATA[<p>FPoll seems simple enough, I&#039;ll look into that <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />That&#039;s a poorly written script btw, it shouldn&#039;t use the &lt;? short tag and I noticed quite a few SQL injects (assuming you don&#039;t have magic_quotes_gpc on)<br />How were you integrating it btw? I had no trouble adding common.php to poll.php</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Mon, 17 Jul 2006 01:38:01 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/73031/#p73031</guid>
		</item>
		<item>
			<title><![CDATA[Re: $db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/73030/#p73030</link>
			<description><![CDATA[<p>Actually, on the two occasions it happened to me, I was trying to integrate PunBB with <a href="http://www.plogger.org/">Plogger</a> and <a href="http://www.phpfront.com/fpoll.php">this poll script</a>.</p>]]></description>
			<author><![CDATA[null@example.com (ortzinator)]]></author>
			<pubDate>Mon, 17 Jul 2006 01:24:15 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/73030/#p73030</guid>
		</item>
		<item>
			<title><![CDATA[Re: $db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/73029/#p73029</link>
			<description><![CDATA[<p>I don&#039;t think that could possibly be a PunBB issue, but I&#039;d look into the issue more if someone could provide a full code example so I could replicate the issue (I don&#039;t feel like trying to install and integrate Wordpress)</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Mon, 17 Jul 2006 01:16:17 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/73029/#p73029</guid>
		</item>
		<item>
			<title><![CDATA[$db object not global]]></title>
			<link>https://punbb.informer.com/forums/post/73028/#p73028</link>
			<description><![CDATA[<p>It looks as though many attempts at integrating PunBB with a php script (possibly only those with) are met with this error:</p><div class="codebox"><pre><code>Fatal error: Call to a member function on a non-object in blahblah</code></pre></div><p>In every instance I&#039;ve seen, the error points to a query with the $db object. Many people have stated that it appears that the $db object is not available globally, despite it being defined as global.</p><p>Some threads which addressed this problem to no avail:<br /><a href="http://punbb.org/forums/viewtopic.php?id=9883">http://punbb.org/forums/viewtopic.php?id=9883</a><br /><a href="http://punbb.org/forums/viewtopic.php?id=12287">http://punbb.org/forums/viewtopic.php?id=12287</a><br /><a href="http://punbb.org/forums/viewtopic.php?id=11545">http://punbb.org/forums/viewtopic.php?id=11545</a><br /><a href="http://punbb.org/forums/viewtopic.php?id=10207">http://punbb.org/forums/viewtopic.php?id=10207</a><br />(More if you search the forums for the error above)</p><p>Sorry if this has been fixed/posted before but I didn&#039;t see it anywhere.</p>]]></description>
			<author><![CDATA[null@example.com (ortzinator)]]></author>
			<pubDate>Mon, 17 Jul 2006 01:03:41 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/73028/#p73028</guid>
		</item>
	</channel>
</rss>
