<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>bbPress Support Forums &#187; Topic: rawurlencode() Error</title>
		<link>http://bbpress.org/forums/topic/rawurlencode-error</link>
		<description>bbPress Support Forums &#187; Topic: rawurlencode() Error</description>
		<language>en-US</language>
		<pubDate>Fri, 25 May 2012 12:06:50 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://bbpress.org/forums/rss/topic/rawurlencode-error" rel="self" type="application/rss+xml" />

		<item>
			<title>Plognark on "rawurlencode() Error"</title>
			<link>http://bbpress.org/forums/topic/rawurlencode-error#post-1974</link>
			<pubDate>Mon, 04 Dec 2006 08:28:37 +0000</pubDate>
			<dc:creator>Plognark</dc:creator>
			<guid isPermaLink="false">1974@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Ok, I lied, that actually doesn't fix the problem.</p>
<p>However, what does seem to work is error supression:</p>
<p>				$this-&#62;query_string .= $wpvar . '=' . @rawurlencode($this-&#62;query_vars[$wpvar]);</p>
<p>Just throw an @ sign in front of the offending rawurlencode function and it seems to clean things up.
</p>]]></description>
					</item>
		<item>
			<title>Plognark on "rawurlencode() Error"</title>
			<link>http://bbpress.org/forums/topic/rawurlencode-error#post-1950</link>
			<pubDate>Sun, 03 Dec 2006 21:42:08 +0000</pubDate>
			<dc:creator>Plognark</dc:creator>
			<guid isPermaLink="false">1950@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Well, I came up with an ugly fix, especially since I don't actually know what I'm doing.</p>
<p>I've been trying to integrate the BBpress forum right inside my WP theme, which is what I imagine you were trying to do.</p>
<p>To fix it I added this switch right at the top of my bbpress template header:</p>
<p>$bbpressswitch = 1;</p>
<p>unset($_SERVER['PATH_INFO']);</p>
<p>Then I went into classes.php for wordpress and put an if/else 'switch', basically:</p>
<p>The first line there is 1645 in my file</p>
<p>	function build_query_string() {<br />
		$this-&#62;query_string = '';</p>
<p>		foreach ($this-&#62;public_query_vars as $wpvar) {<br />
			if (isset($this-&#62;query_vars[$wpvar]) &#38;&#38; '' != $this-&#62;query_vars[$wpvar]) {<br />
				$this-&#62;query_string .= (strlen($this-&#62;query_string) &#60; 1) ? '' : '&#38;';</p>
<p>	// bug fix for BBpress integration<br />
			if ($bbpressswitch == 1) {<br />
				// $this-&#62;query_string .= $wpvar . '=' . rawurlencode($this-&#62;query_vars[$wpvar]);<br />
				// if the url is being accessed from a page outside of WP that is using the header<br />
				// or other data, turn off this URL encoding.<br />
			} else {<br />
				$this-&#62;query_string .= $wpvar . '=' . rawurlencode($this-&#62;query_vars[$wpvar]);<br />
			}<br />
	// end of bug fix<br />
			}<br />
		}</p>
<p>It's ugly, and I'm a n00b at this stuff, but it does seem to have cleaned up my error. I guess the bbpress URL's don't work so good when sent through the WP URLencode setup, so turning them off when going into a BBpress page seemed like it might work.</p>
<p>I don't know if there are any other repurcussions from this change, but again, it turned off the error, and I haven't seen any fallout...yet.</p>
<p>There are other sites online that seem to offer a fix for the same issue, like this:</p>
<p><a href="http://forum.j-prosolution.com/openwp-bugreport/2637-warning-rawurlencode-expects-parameter-1-string.html" rel="nofollow">http://forum.j-prosolution.com/openwp-bugreport/2637-warning-rawurlencode-expects-parameter-1-string.html</a></p>
<p>But the fix they suggest kills all of your static pages or category links and always sends you to the main blog page.
</p>]]></description>
					</item>
		<item>
			<title>Atsutane on "rawurlencode() Error"</title>
			<link>http://bbpress.org/forums/topic/rawurlencode-error#post-554</link>
			<pubDate>Thu, 26 Oct 2006 14:17:57 +0000</pubDate>
			<dc:creator>Atsutane</dc:creator>
			<guid isPermaLink="false">554@http://bbpress.org/forums/</guid>
			<description><![CDATA[<blockquote><p>PHP Warning:  rawurlencode() expects parameter 1 to be string, array given in /home/spider/public_html/wp/wp-includes/classes.php on line 1658</p></blockquote>
<p>Well i have that problem when i integrate my bbpress with wordpress. It only happen when i view "manage-&#62;post" and "manage-&#62;pages". I already edit the classes.php and it only fix my "manage-&#62;post". My "manage-&#62;pages" are still broken.</p>
<p>If i disable the integration, everything work perfectly without any error. Anyone know how to fix this thing?
</p>]]></description>
					</item>

	</channel>
</rss>

