<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Integrating Symfony and WordPress</title>
	<atom:link href="http://blog.codeclarity.com/2009/12/02/integrating-symfony-and-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codeclarity.com/2009/12/02/integrating-symfony-and-wordpress/</link>
	<description>PHP, Symfony, etc.</description>
	<lastBuildDate>Mon, 12 Apr 2010 21:24:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Evan</title>
		<link>http://blog.codeclarity.com/2009/12/02/integrating-symfony-and-wordpress/comment-page-1/#comment-99</link>
		<dc:creator>Evan</dc:creator>
		<pubDate>Mon, 12 Apr 2010 21:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codeclarity.com/?p=3#comment-99</guid>
		<description>FWIW, I got this working without issue in Symfony 1.0. I had no use for building the Propel models for the Wordpress tables, so I didn&#039;t try to do that. Everything else worked as described. Thanks for your post on this.</description>
		<content:encoded><![CDATA[<p>FWIW, I got this working without issue in Symfony 1.0. I had no use for building the Propel models for the Wordpress tables, so I didn&#8217;t try to do that. Everything else worked as described. Thanks for your post on this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://blog.codeclarity.com/2009/12/02/integrating-symfony-and-wordpress/comment-page-1/#comment-87</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Sat, 03 Apr 2010 02:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codeclarity.com/?p=3#comment-87</guid>
		<description>It sounds like your sf_web_dir configuration setting isn&#039;t set at the time that you&#039;re trying to load the wp-load.php, it should be loaded after your ProjectConfiguration::getApplicationConfiguration() call is made.

As far as the &quot;empty module and/or action&quot; error I can&#039;t be sure, are you generating a link to that URL using the link_to or url_for helpers?

I checked your site and it seems like it&#039;s working now, it&#039;d be great if you could post your solution in case someone else runs in to this issue.</description>
		<content:encoded><![CDATA[<p>It sounds like your sf_web_dir configuration setting isn&#8217;t set at the time that you&#8217;re trying to load the wp-load.php, it should be loaded after your ProjectConfiguration::getApplicationConfiguration() call is made.</p>
<p>As far as the &#8220;empty module and/or action&#8221; error I can&#8217;t be sure, are you generating a link to that URL using the link_to or url_for helpers?</p>
<p>I checked your site and it seems like it&#8217;s working now, it&#8217;d be great if you could post your solution in case someone else runs in to this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: samuel morhaim</title>
		<link>http://blog.codeclarity.com/2009/12/02/integrating-symfony-and-wordpress/comment-page-1/#comment-85</link>
		<dc:creator>samuel morhaim</dc:creator>
		<pubDate>Fri, 02 Apr 2010 20:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codeclarity.com/?p=3#comment-85</guid>
		<description>Hi,

I follow your step by step all the way, but I get the following:

Accessing myurl.com/wordpress_dev.php/blog results on an error:

Warning: require_once(/blog/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/zizzerdog.com/httpdocs/web/wordpress_dev.php  on line 13

Fatal error: require_once() [function.require]: Failed opening required &#039;/blog/wp-load.php&#039; (include_path=&#039;.:/usr/share/pear:/usr/share/php&#039;) in /var/www/vhosts/zizzerdog.com/httpdocs/web/wordpress_dev.php on line 13


So I go and try to fix the path... so removing from Step 2 line 7, first &quot;slash&quot;
from:  require_once(sfConfig::get(&#039;sf_web_dir&#039;) . &#039;/blog/wp-load.php&#039;);
to:  require_once(sfConfig::get(&#039;sf_web_dir&#039;) . &#039;blog/wp-load.php&#039;);

Gets me this error

Empty module and/or action after parsing the URL &quot;/wp-admin/install.php&quot; (/).


Also accesing myurl.com/wordpress gives my a symfony error..  wordpress_dev.php gives me same symfony error, no debugging or anything..
Can you help ?

thank you.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I follow your step by step all the way, but I get the following:</p>
<p>Accessing myurl.com/wordpress_dev.php/blog results on an error:</p>
<p>Warning: require_once(/blog/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/zizzerdog.com/httpdocs/web/wordpress_dev.php  on line 13</p>
<p>Fatal error: require_once() [function.require]: Failed opening required &#8216;/blog/wp-load.php&#8217; (include_path=&#8217;.:/usr/share/pear:/usr/share/php&#8217;) in /var/www/vhosts/zizzerdog.com/httpdocs/web/wordpress_dev.php on line 13</p>
<p>So I go and try to fix the path&#8230; so removing from Step 2 line 7, first &#8220;slash&#8221;<br />
from:  require_once(sfConfig::get(&#8217;sf_web_dir&#8217;) . &#8216;/blog/wp-load.php&#8217;);<br />
to:  require_once(sfConfig::get(&#8217;sf_web_dir&#8217;) . &#8216;blog/wp-load.php&#8217;);</p>
<p>Gets me this error</p>
<p>Empty module and/or action after parsing the URL &#8220;/wp-admin/install.php&#8221; (/).</p>
<p>Also accesing myurl.com/wordpress gives my a symfony error..  wordpress_dev.php gives me same symfony error, no debugging or anything..<br />
Can you help ?</p>
<p>thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://blog.codeclarity.com/2009/12/02/integrating-symfony-and-wordpress/comment-page-1/#comment-64</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Fri, 12 Mar 2010 10:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codeclarity.com/?p=3#comment-64</guid>
		<description>Paulo posted a much cleaner solution for step 6 that should fix your issue, I&#039;ve updated the guide with the new method.</description>
		<content:encoded><![CDATA[<p>Paulo posted a much cleaner solution for step 6 that should fix your issue, I&#8217;ve updated the guide with the new method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://blog.codeclarity.com/2009/12/02/integrating-symfony-and-wordpress/comment-page-1/#comment-63</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Fri, 12 Mar 2010 10:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codeclarity.com/?p=3#comment-63</guid>
		<description>Sorry for the late response, WP wasn’t notifying me of new comments.

As far as your 404s are concerned what does your .htaccess look like? Make sure WordPress doesn’t install it’s .htaccess, it isn’t necessary. The modifications I suggested only apply to requests that aren’t going to files that already exist (the same as Symfony’s rules) so they shouldn’t get in the way of your assets (JS, CSS, images, etc).

What errors are you getting from your dev controller when you get the 500 responses?</description>
		<content:encoded><![CDATA[<p>Sorry for the late response, WP wasn’t notifying me of new comments.</p>
<p>As far as your 404s are concerned what does your .htaccess look like? Make sure WordPress doesn’t install it’s .htaccess, it isn’t necessary. The modifications I suggested only apply to requests that aren’t going to files that already exist (the same as Symfony’s rules) so they shouldn’t get in the way of your assets (JS, CSS, images, etc).</p>
<p>What errors are you getting from your dev controller when you get the 500 responses?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://blog.codeclarity.com/2009/12/02/integrating-symfony-and-wordpress/comment-page-1/#comment-62</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Fri, 12 Mar 2010 10:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codeclarity.com/?p=3#comment-62</guid>
		<description>It sounds like output escaping is turned on in your application. In your template try this instead:

&lt; ?php echo $sf_data-&gt;getRaw(’blog’); ?&gt;

That should give you the unescaped WordPress HTML.</description>
		<content:encoded><![CDATA[<p>It sounds like output escaping is turned on in your application. In your template try this instead:</p>
<p>< ?php echo $sf_data->getRaw(’blog’); ?></p>
<p>That should give you the unescaped WordPress HTML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://blog.codeclarity.com/2009/12/02/integrating-symfony-and-wordpress/comment-page-1/#comment-61</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Fri, 12 Mar 2010 10:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codeclarity.com/?p=3#comment-61</guid>
		<description>Thanks for all of the useful tips, I’ve updated the relevant sections in the article. For the Wrapping Up portion, do you still get redirected to the root directory (/)? It may sound strange but clearing your cookies may fix this for you. Other than that ensure that you changed the right admin_url() call as there are quite a few in that file, you can use the code block I provided as a reference to it’s location.</description>
		<content:encoded><![CDATA[<p>Thanks for all of the useful tips, I’ve updated the relevant sections in the article. For the Wrapping Up portion, do you still get redirected to the root directory (/)? It may sound strange but clearing your cookies may fix this for you. Other than that ensure that you changed the right admin_url() call as there are quite a few in that file, you can use the code block I provided as a reference to it’s location.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://blog.codeclarity.com/2009/12/02/integrating-symfony-and-wordpress/comment-page-1/#comment-60</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Fri, 12 Mar 2010 10:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codeclarity.com/?p=3#comment-60</guid>
		<description>Sorry for the late response, WP wasn’t notifying me of new comments.

It sounds like the WordPress functions aren’t getting registered, you’ll need to make sure you’re accessing the blog from a URL that goes through your WordPress web controllers (wordpress.php and wordpress_dev.php in my example). Accessing it from frontend_dev.php won’t work unless you’ve also included the require_once() call for wp-load in there as well. Your request to wordpress_dev.php should have worked correctly as long as you performed Step 2 on it as well. What happens when you access it from just /wordpress/?</description>
		<content:encoded><![CDATA[<p>Sorry for the late response, WP wasn’t notifying me of new comments.</p>
<p>It sounds like the WordPress functions aren’t getting registered, you’ll need to make sure you’re accessing the blog from a URL that goes through your WordPress web controllers (wordpress.php and wordpress_dev.php in my example). Accessing it from frontend_dev.php won’t work unless you’ve also included the require_once() call for wp-load in there as well. Your request to wordpress_dev.php should have worked correctly as long as you performed Step 2 on it as well. What happens when you access it from just /wordpress/?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://blog.codeclarity.com/2009/12/02/integrating-symfony-and-wordpress/comment-page-1/#comment-59</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Fri, 12 Mar 2010 10:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codeclarity.com/?p=3#comment-59</guid>
		<description>Great idea, that will work much more cleanly with upgrades.  I&#039;ve updated my post with that solution.</description>
		<content:encoded><![CDATA[<p>Great idea, that will work much more cleanly with upgrades.  I&#8217;ve updated my post with that solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo</title>
		<link>http://blog.codeclarity.com/2009/12/02/integrating-symfony-and-wordpress/comment-page-1/#comment-58</link>
		<dc:creator>Paulo</dc:creator>
		<pubDate>Thu, 11 Mar 2010 11:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codeclarity.com/?p=3#comment-58</guid>
		<description>Hello!

Regarding the Step 6, don&#039;t you think it&#039;s better to add a new rule in the .htaccess like the following?

  RewriteRule ^blog/wp-admin/$ blog/wp-admin/index.php

This way you don&#039;t have to change wp-login.php . I see it as an interesting alternative.

Regards,</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>Regarding the Step 6, don&#8217;t you think it&#8217;s better to add a new rule in the .htaccess like the following?</p>
<p>  RewriteRule ^blog/wp-admin/$ blog/wp-admin/index.php</p>
<p>This way you don&#8217;t have to change wp-login.php . I see it as an interesting alternative.</p>
<p>Regards,</p>
]]></content:encoded>
	</item>
</channel>
</rss>
