<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.2" -->
<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>WPMU DEV Community &#187; Topic: Error messages from WP after installing Multi-DB</title>
		<link>http://premium.wpmudev.org/forums/topic/error-messages-from-wp-after-installing-multi-db</link>
		<description>WPMU DEV Community &#187; Topic: Error messages from WP after installing Multi-DB</description>
		<language>en-US</language>
		<pubDate>Mon, 20 May 2013 18:52:28 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://premium.wpmudev.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://premium.wpmudev.org/forums/rss/topic/error-messages-from-wp-after-installing-multi-db" rel="self" type="application/rss+xml" />

		<item>
			<title>Timothy Bowers on "Error messages from WP after installing Multi-DB"</title>
			<link>http://premium.wpmudev.org/forums/topic/error-messages-from-wp-after-installing-multi-db#post-231719</link>
			<pubDate>Tue, 12 Jun 2012 11:07:08 +0000</pubDate>
			<dc:creator>Timothy Bowers</dc:creator>
			<guid isPermaLink="false">231719@http://premium.wpmudev.org/forums/</guid>
			<description><p>Thats awesome.</p>
<p>I suggested the fresh set of files suspecting that somewhere along the lines something was corrupted or a rogue space got in there.</p>
<p>Thanks for letting me know, glad you have this sorted now! :)</p>
<p>Take care and have a great week! :)
</p></description>
		</item>
		<item>
			<title>enkreativbyra on "Error messages from WP after installing Multi-DB"</title>
			<link>http://premium.wpmudev.org/forums/topic/error-messages-from-wp-after-installing-multi-db#post-231717</link>
			<pubDate>Tue, 12 Jun 2012 11:05:47 +0000</pubDate>
			<dc:creator>enkreativbyra</dc:creator>
			<guid isPermaLink="false">231717@http://premium.wpmudev.org/forums/</guid>
			<description><p>Hold your horses!</p>
<p>Did a fresh install and also made use of the db-list.php file. Voila! Everything is up and running smoothly.</p>
<p>No need to worry any more! Thanks for your help :)
</p></description>
		</item>
		<item>
			<title>Timothy Bowers on "Error messages from WP after installing Multi-DB"</title>
			<link>http://premium.wpmudev.org/forums/topic/error-messages-from-wp-after-installing-multi-db#post-231592</link>
			<pubDate>Mon, 11 Jun 2012 23:19:44 +0000</pubDate>
			<dc:creator>Timothy Bowers</dc:creator>
			<guid isPermaLink="false">231592@http://premium.wpmudev.org/forums/</guid>
			<description><p>I wasn't seeing this on my installs but I'm wondering if there are more spaces in there. </p>
<p>It might be worth trying with a fresh set of files.</p>
<p>I'll ping barry our plugin develop on this one regarding the mysql issue, He may have seen this before in multi-db.</p>
<p>Take care
</p></description>
		</item>
		<item>
			<title>enkreativbyra on "Error messages from WP after installing Multi-DB"</title>
			<link>http://premium.wpmudev.org/forums/topic/error-messages-from-wp-after-installing-multi-db#post-231519</link>
			<pubDate>Mon, 11 Jun 2012 19:35:42 +0000</pubDate>
			<dc:creator>enkreativbyra</dc:creator>
			<guid isPermaLink="false">231519@http://premium.wpmudev.org/forums/</guid>
			<description><p>It also says:</p>
<p><code>Warning: Cannot modify header information - headers already sent by (output started at /Users/*SITELOCATION*/wp-includes/wp-db.php:554) in /Users/*SITELOCATION*/wp-includes/pluggable.php on line 881</code></p>
<p>when I try to add, bin or delete posts/pages, or update anything in general in both main and sub-sites.</p>
<p>It seems like it's the following snippet from wp-db.php that is screwing things up. (Line 26 is line 554)</p>
<pre><code>/**
	 * Sets the connection&#39;s character set.
	 *
	 * @since 3.1.0
	 *
	 * @param resource $dbh     The resource given by mysql_connect
	 * @param string   $charset The character set (optional)
	 * @param string   $collate The collation (optional)
	 */
	function set_charset($dbh, $charset = null, $collate = null) {
		if ( !isset($charset) )
			$charset = $this-&#62;charset;
		if ( !isset($collate) )
			$collate = $this-&#62;collate;
		if ( $this-&#62;has_cap( &#39;collation&#39;, $dbh ) &#38;&#38; !empty( $charset ) ) {
			if ( function_exists( &#39;mysql_set_charset&#39; ) &#38;&#38; $this-&#62;has_cap( &#39;set_charset&#39;, $dbh ) ) {
				mysql_set_charset( $charset, $dbh );  // Line 554
				$this-&#62;real_escape = true;
			} else {
				$query = $this-&#62;prepare( &#39;SET NAMES %s&#39;, $charset );
				if ( ! empty( $collate ) )
					$query .= $this-&#62;prepare( &#39; COLLATE %s&#39;, $collate );
				mysql_query( $query, $dbh );
			}
		}
	}</code></pre>
<p>Help is greatly appreciated!
</p></description>
		</item>
		<item>
			<title>enkreativbyra on "Error messages from WP after installing Multi-DB"</title>
			<link>http://premium.wpmudev.org/forums/topic/error-messages-from-wp-after-installing-multi-db#post-231445</link>
			<pubDate>Mon, 11 Jun 2012 16:09:26 +0000</pubDate>
			<dc:creator>enkreativbyra</dc:creator>
			<guid isPermaLink="false">231445@http://premium.wpmudev.org/forums/</guid>
			<description><p>Hi!</p>
<p>It was a blank line at the bottom of db.php, but I still see the mysql_set_charset error.</p>
<p>And when I try to login it doesn't redirect to admin, but when I go to admin/network it works. And then I can access just admin as well.</p>
<p>EDIT<br />
Sorry, tested it some more and in the subsites it still shows the header warning and the mysql warning.</p>
<p>Warning: Cannot modify header information - headers already sent by (output started at /Users/*SITELOCATION*/wp-includes/wp-db.php:554) in /Users/*SITELOCATION*/wp-includes/option.php on line 564</p>
<p>Any ideas?<br />
Thank you!
</p></description>
		</item>
		<item>
			<title>Timothy Bowers on "Error messages from WP after installing Multi-DB"</title>
			<link>http://premium.wpmudev.org/forums/topic/error-messages-from-wp-after-installing-multi-db#post-231163</link>
			<pubDate>Sun, 10 Jun 2012 21:01:02 +0000</pubDate>
			<dc:creator>Timothy Bowers</dc:creator>
			<guid isPermaLink="false">231163@http://premium.wpmudev.org/forums/</guid>
			<description><p>Hey there.</p>
<p>The headers already sent is usually a rogue space before some php tags &#60;?php</p>
<p>You can checkout the files db.php and db-config.php you edited and uploaded for this.</p>
<p>Let me know how you get on.</p>
<p>Take care.
</p></description>
		</item>
		<item>
			<title>enkreativbyra on "Error messages from WP after installing Multi-DB"</title>
			<link>http://premium.wpmudev.org/forums/topic/error-messages-from-wp-after-installing-multi-db#post-230749</link>
			<pubDate>Sat, 09 Jun 2012 10:49:55 +0000</pubDate>
			<dc:creator>enkreativbyra</dc:creator>
			<guid isPermaLink="false">230749@http://premium.wpmudev.org/forums/</guid>
			<description><p>Fresh install of WP 3.4 RC1 with subdomains. Using Mamp Pro and have added a custom domain in terminal (sitename.lo). Also I have moved the wp-content folder to another structure using the built in WP functionality. So I changed url in the hardcoded db.php file.</p>
<p>This three messages appear when trying to access the admin area (which I can access). In the frontend, only the top one is displayed.</p>
<p>Warning: mysql_set_charset() expects parameter 2 to be resource, boolean given in /Users/*SITELOCATION*/wp-includes/wp-db.php on line 554</p>
<p>Warning: Cannot modify header information - headers already sent by (output started at /Users/*SITELOCATION*/wp-includes/wp-db.php:554) in /Users/*SITELOCATION*/wp-includes/option.php on line 563</p>
<p>Warning: Cannot modify header information - headers already sent by (output started at /Users/*SITELOCATION*wp-includes/wp-db.php:554) in /Users/*SITELOCATION*/wp-includes/option.php on line 564
</p></description>
		</item>

	</channel>
</rss>
