<?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; Manuel Bogner&#039;s Blog</title>
	<atom:link href="https://blog.mbo.dev/archives/category/linux/wp/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.mbo.dev</link>
	<description>Solutions to everyday IT problems</description>
	<lastBuildDate>Sat, 05 Jun 2021 11:56:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.mbo.dev/wp-content/uploads/2022/11/cropped-cropped-mbo-white_opt-32x32.png</url>
	<title>Wordpress &#8211; Manuel Bogner&#039;s Blog</title>
	<link>https://blog.mbo.dev</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>change wordpress url in database</title>
		<link>https://blog.mbo.dev/archives/1165</link>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Fri, 17 Apr 2020 15:28:37 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=1165</guid>

					<description><![CDATA[if you need to move wordpress to a new url then the following sql script will be handy (update the urls in it of course):]]></description>
										<content:encoded><![CDATA[
<p>if you need to move wordpress to a new url then the following sql script will be handy (update the urls in it of course):</p>



<pre class="wp-block-code"><code>UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WordPress force SSL admin area</title>
		<link>https://blog.mbo.dev/archives/1000</link>
					<comments>https://blog.mbo.dev/archives/1000#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Mon, 05 Oct 2015 14:37:37 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=1000</guid>

					<description><![CDATA[To force wordpress to use SSL for the admin area you simply can add a line to your wp-config.php file located in the root of your wordpress installation: define('FORCE_SSL_ADMIN', true); &#160;]]></description>
										<content:encoded><![CDATA[<p>To force wordpress to use SSL for the admin area you simply can add a line to your <strong>wp-config.php</strong> file located in the root of your wordpress installation:</p>
<pre class="lang:php decode:true ">define('FORCE_SSL_ADMIN', true);</pre>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/1000/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PG4WP Fork to support WordPress 3.9.1</title>
		<link>https://blog.mbo.dev/archives/813</link>
					<comments>https://blog.mbo.dev/archives/813#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Sun, 20 Jul 2014 09:39:18 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=813</guid>

					<description><![CDATA[Just created a PG4WP fork with described changed from my last post. Here is the github url for version 2.0.0 that supports wordpress 3.9.1: https://github.com/mbogner/pg4wp2/tree/v2.0.0 Just click the &#8220;Download ZIP&#8221; button on the target page.]]></description>
										<content:encoded><![CDATA[<p>Just created a PG4WP fork with described changed from my last post.</p>
<p>Here is the github url for version 2.0.0 that supports wordpress 3.9.1: <a href="https://github.com/mbogner/pg4wp2/tree/v2.0.0" target="_blank" rel="noopener">https://github.com/mbogner/pg4wp2/tree/v2.0.0</a></p>
<p>Just click the &#8220;Download ZIP&#8221; button on the target page.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/813/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress 3.9.1 with PostgreSQL</title>
		<link>https://blog.mbo.dev/archives/811</link>
					<comments>https://blog.mbo.dev/archives/811#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Sun, 20 Jul 2014 08:53:12 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=811</guid>

					<description><![CDATA[Till 3.8 everything was ok and my blog survived every update. But for 3.9 this changed as the postgresql driver I am using (PG4WP)is not compatible out of the box anymore. There were no updates for the last two years. Here are the two fixes I had to make: To resolve the error &#8220;Call to undefined [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Till 3.8 everything was ok and my blog survived every update. But for 3.9 this changed as the postgresql driver I am using (<a href="https://wordpress.org/plugins/postgresql-for-wordpress/">PG4WP</a>)is not compatible out of the box anymore. There were no updates for the last two years. Here are the two fixes I had to make:</p>
<p>To resolve the error &#8220;Call to undefined function wpsql_errno()&#8221; I added the following code at the end of the file wp-content/pg4wp/driver_pgsql.php:</p>
<pre class="lang:php decode:true">function wpsql_errno($connection) {
    $result = pg_get_result($connection);
    $result_status = pg_result_status($result);
    return pg_result_error_field($result_status, PGSQL_DIAG_SQLSTATE);
}</pre>
<p>The second error to resolve was &#8220;Missing argument 3 for wpsql_result()&#8221;. To fix this I replaced the function wpsql_result in the file &#8220;wp-content/pg4wp/driver_pgsql.php&#8221; on line 58-59:</p>
<pre class="lang:php decode:true">function wpsql_result($result, $i, $fieldname = null) {
    if (is_resource($result)) {
        if ($fieldname) {
            return pg_fetch_result($result, $i, $fieldname);
        } else {
            return pg_fetch_result($result, $i);
        }
    }
}</pre>
<p>After these two changes my blog is running again with new wordpress version =)</p>
<p>See <a href="http://blog.coffeebeans.at/?p=813">http://blog.coffeebeans.at/?p=813</a> for a fixed version.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/811/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress problem with PostgreSQL</title>
		<link>https://blog.mbo.dev/archives/546</link>
					<comments>https://blog.mbo.dev/archives/546#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Thu, 02 May 2013 19:03:27 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=546</guid>

					<description><![CDATA[I found strange errors like the following in my apache_error.log [Thu May 02 20:59:58 2013] [error] [client 84.114.158.229] WordPress database error ERROR: column p.id does not exist\\\\\\\\nLINE 1: SELECT p.id FROM wp_posts AS p WHERE ... I found out that this comes from line 1178 in wp-includes/link-template.php. Just change the p.id at after the SELECT [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I found strange errors like the following in my apache_error.log</p>
<pre class="lang:default decode:true crayon-selected">[Thu May 02 20:59:58 2013] [error] [client 84.114.158.229] WordPress database error ERROR:
  column p.id does not exist\\\\\\\\nLINE 1: SELECT p.id FROM wp_posts AS p  WHERE ...</pre>
<p><span style="line-height: 1.714285714; font-size: 1rem;">I found out that this comes from line 1178 in wp-includes/link-template.php. Just change the p.id at after the SELECT to p.ID and save the file (SELECT p.ID &#8230;). That&#8217;s the trick.</span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/546/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
