<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress support forums Topic: require_once problems</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: require_once problems</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 14:21:31 +0000</pubDate>

<item>
<title>John Smith on "require_once problems"</title>
<link>http://bbpress.org/forums/topic/require_once-problems#post-16341</link>
<pubDate>Tue, 20 May 2008 02:02:40 +0000</pubDate>
<dc:creator>John Smith</dc:creator>
<guid isPermaLink="false">16341@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi,  sambauers&#60;/p&#62;
&#60;p&#62;The code work fine for me , thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "require_once problems"</title>
<link>http://bbpress.org/forums/topic/require_once-problems#post-14457</link>
<pubDate>Fri, 14 Mar 2008 06:01:52 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">14457@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;This would probably work:&#60;/p&#62;
&#60;p&#62;require_once(BBPATH . '../wp-blog-header.php');
&#60;/p&#62;</description>
</item>
<item>
<title>gkp99 on "require_once problems"</title>
<link>http://bbpress.org/forums/topic/require_once-problems#post-14456</link>
<pubDate>Fri, 14 Mar 2008 00:01:43 +0000</pubDate>
<dc:creator>gkp99</dc:creator>
<guid isPermaLink="false">14456@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Nevermind - I was using the wrong relative URL it would seem.&#60;/p&#62;
&#60;p&#62;I settled for this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;require_once($_SERVER['DOCUMENT_ROOT'].&#34;/forums/config.php&#34;);&#38;gt;/code&#38;gt;&#60;/p&#62;
&#60;p&#62;and it works now :-)&#60;/p&#62;
&#60;p&#62;Garry,&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>gkp99 on "require_once problems"</title>
<link>http://bbpress.org/forums/topic/require_once-problems#post-14454</link>
<pubDate>Thu, 13 Mar 2008 23:41:59 +0000</pubDate>
<dc:creator>gkp99</dc:creator>
<guid isPermaLink="false">14454@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hello everyone!&#60;/p&#62;
&#60;p&#62;Here is my setup:&#60;br /&#62;
WP blog = &#60;a href=&#34;http://www.cocoadummy.com&#34;&#62;http://www.cocoadummy.com&#60;/a&#62;&#60;br /&#62;
BB forums = &#60;a href=&#34;http://www.cocoadummy.com/forums&#34;&#62;http://www.cocoadummy.com/forums&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I have set the config.php values as required. I have enabled the bbPress-integration plugin in WP and configured it. I have added&#60;/p&#62;
&#60;p&#62;&#60;code&#62;require_once(&#38;#39;../wp-blog-header.php&#38;#39;);&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;to my bbPress config.php file. (This seems to work as I can call the WP bloginfo('name') function in my footer.&#60;/p&#62;
&#60;p&#62;When I try to go to the forums admin I get the following error:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Warning: require_once(../wp-blog-header.php) [function.require-once]: failed to open stream: No such file or directory in /home/.omaha/gkp99/www.cocoadummy.co/forums/config.php on line 4&#60;/p&#62;
&#60;p&#62;Fatal error: require_once() [function.require]: Failed opening required '../wp-blog-header.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.omaha/gkp99/www.cocoadummy.co/forums/config.php on line 4&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Also, I have added the following line of code to wp-config so that I can import functions from bbPress into WP (I want to add the online list to my WP sidebar):&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;// Import bbPress&#60;br /&#62;
require_once('../forums/config.php');&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;I have added it beneath this code:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;// Get everything else&#60;br /&#62;
require_once(ABSPATH.'wp-settings.php');&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62; (although the error is the same wherever I put it).&#60;/p&#62;
&#60;p&#62;When I goto my blog homepage (www.cocoadummy.com) I get this error:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Warning: require_once(../forums/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/.omaha/gkp99/www.cocoadummy.co/wp-config.php on line 34&#60;/p&#62;
&#60;p&#62;Fatal error: require_once() [function.require]: Failed opening required '../forums/config.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.omaha/gkp99/www.cocoadummy.co/wp-config.php on line 34&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;What am I doing wrong?&#60;/p&#62;
&#60;p&#62;Garry,
&#60;/p&#62;</description>
</item>

</channel>
</rss>
