<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wordpress &#8211; Everything is Broken</title>
	<atom:link href="https://play.datalude.com/blog/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://play.datalude.com/blog</link>
	<description>Efficiency vs. Inefficiency, in a no-holds barred fight.</description>
	<lastBuildDate>Tue, 22 Nov 2022 08:40:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>wp-cli &quot;Connection refused&quot; error</title>
		<link>https://play.datalude.com/blog/2022/11/wp-cli-connection-refused-error/</link>
					<comments>https://play.datalude.com/blog/2022/11/wp-cli-connection-refused-error/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 22 Nov 2022 08:11:08 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-cli]]></category>
		<guid isPermaLink="false">https://play.datalude.com/blog/?p=690</guid>

					<description><![CDATA[Couldn't find anything about this with a few google searches so I decided to note it here. Weird problem: whenever I ran any wp-cli command, I'd get a list of 100+ lines of "Connection refused" before it actually did what I wanted. I tried a few things to figure it out, including So on a ... <a title="wp-cli &#34;Connection refused&#34; error" class="read-more" href="https://play.datalude.com/blog/2022/11/wp-cli-connection-refused-error/" aria-label="Read more about wp-cli &#34;Connection refused&#34; error">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Couldn't find anything about this with a few google searches so I decided to note it here. Weird problem: whenever I ran any wp-cli command, I'd get a list of 100+ lines of "Connection refused" before it actually did what I wanted. <br><br>I tried a few things to figure it out, including </p>



<ul class="wp-block-list">
<li>Searching the site for malware pointing to a blocked URL (no)</li>



<li>Checking the firewall logs (nothing)</li>



<li>Checking the db config, running performance tools on it to see that it wasn't exceeding max connections. (no) </li>



<li>Running tcpdump to see where wp-cli was trying to connect to (it wasn't)</li>



<li>Updating all plugins, themes,  (good to do anyway)</li>



<li>Checking db.php, which I found in wp-includes &#8230; which, hmmm, belongs to W3 Total Cache. </li>
</ul>



<p class="wp-block-paragraph">So on a hunch I tried </p>



<pre class="wp-block-code"><code>&gt; wp-cli plugin deactivate w3-total-cache 
Connection refused
Connection refused

... plus 200 more lines 

Connection refused
Connection refused
Connection refused
Plugin 'w3-total-cache' deactivated.

</code></pre>



<p class="wp-block-paragraph">&#8230; after which all wp-cli operations worked again. </p>



<p class="wp-block-paragraph">After some further digging, I enabled w3 Total Cache again, and found that it was configured to use redis, which wasn't running on the server. So the connection attempts were failing to connect to that. Pretty easy to sort out after that &#8230; </p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>https://play.datalude.com/blog/2022/11/wp-cli-connection-refused-error/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Physician Heal Thyself: When WordPress Themes go Bad</title>
		<link>https://play.datalude.com/blog/2008/10/physician-heal-thyself-when-wordpress-themes-go-bad/</link>
					<comments>https://play.datalude.com/blog/2008/10/physician-heal-thyself-when-wordpress-themes-go-bad/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 21 Oct 2008 03:59:18 +0000</pubDate>
				<category><![CDATA[General IT]]></category>
		<category><![CDATA[broken]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[div tag]]></category>
		<category><![CDATA[sidebar below posts]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://play.datalude.com/blog/?p=96</guid>

					<description><![CDATA[Just had an irritating couple of hours when I discovered that my WordPress Theme was broken. The sidebar had slipped to underneath the main column, and the background of the main posting area had disappeared. I tried clearing my cache first of all. Then I tried looking at the site in different browsers. It was ... <a title="Physician Heal Thyself: When WordPress Themes go Bad" class="read-more" href="https://play.datalude.com/blog/2008/10/physician-heal-thyself-when-wordpress-themes-go-bad/" aria-label="Read more about Physician Heal Thyself: When WordPress Themes go Bad">Read more</a>]]></description>
										<content:encoded><![CDATA[<p>Just had an irritating couple of hours when I discovered that my WordPress Theme was broken. The sidebar had slipped to underneath the main column, and the background of the main posting area had disappeared. I tried clearing my cache first of all. Then I tried looking at the site in different browsers. It was still broken in IE: although the symptoms were slightly different the sidebar was still misplaced.</p>
<p>OK, time to roll my sleeves up &#8230; <span id="more-96"></span></p>
<p>I got into the admin interface and tried a few different themes. Now it was getting interesting &#8230; it was present on all themes, which means that an upgrade must have altered something in the main code. Some searching around on the WordPress forums didn't reveal the clammour of angry WP users I was expecting, so I was reduced to searching for generic solutions.</p>
<p>In one post in the darkest corners of the internet I found someone suggesting that a &lt;div&gt; tag wasn't closed properly. That made sense, so I downloaded the source code for the page and edited that. It seemed that adding a &lt;/div&gt; tag immediately before the code which calls the sidebar does the trick. Like this:</p>
<pre>&lt;?php get_sidebar(); ?&gt;</pre>
<p>Becomes</p>
<pre> &lt;/div&gt;
&lt;?php get_sidebar(); ?&gt;</pre>
<p>Now the challenge was finding that code. I went into the theme editor and tried a few files (header.php, footer.php and page.php)  before I found what I wanted in the Main Index (index.php). Making the change was the work of seconds and reloading the page meant I was back to normal. You may find this code in different places depending on which template you're using. In another template I found the code in the footer.php file, and in this case the closing &lt;/div&gt; tag was present, but just appeared before the get_sidebar code. The fix for this was just to reverse the two tags.</p>
<p>OK all good. But what actually caused it in the first place? I haven't altered anything in the templates for several months; after the last upgrade I did, a month or so ago, everything seemed to be OK; after the last post a week ago, everthing seemed to be OK. Strange. And Broken.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://play.datalude.com/blog/2008/10/physician-heal-thyself-when-wordpress-themes-go-bad/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
