<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-05-26:387824</id>
  <title>Samantha Ling</title>
  <subtitle>Samantha Ling</subtitle>
  <author>
    <name>Samantha Ling</name>
  </author>
  <link rel="alternate" type="text/html" href="https://ling.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://ling.dreamwidth.org/data/atom"/>
  <updated>2010-04-06T00:43:22Z</updated>
  <dw:journal username="ling" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-05-26:387824:112053</id>
    <link rel="alternate" type="text/html" href="https://ling.dreamwidth.org/112053.html"/>
    <link rel="self" type="text/xml" href="https://ling.dreamwidth.org/data/atom/?itemid=112053"/>
    <title>Missed schedules</title>
    <published>2010-04-06T00:38:06Z</published>
    <updated>2010-04-06T00:43:22Z</updated>
    <category term="blogging"/>
    <category term="wordpress"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">&lt;p&gt;I made the upgrade to 2.9 and discovered that my scheduled posts weren&amp;#8217;t posting on time.  After quick interwebs search, I discovered a pretty quick fix for it.  Since I write my entries all at once, mostly over the weekend, scheduling them is best for me.&lt;/p&gt;
&lt;p&gt;So if this posts, it worked. &lt;/p&gt;
&lt;p&gt;The fix involves changing one of the wordpress files. Wordpress has a timeout feature for when it&amp;#8217;s automatically posting something.  Right now, the timeout is 0.01.  Wordpress 2.9 is hella slow, so that is not enough time for it to post.  You can change this to something a little longer.  I switched it to 60.&lt;/p&gt;
&lt;p&gt;Here is the file that you need to change:&lt;/p&gt;
&lt;p&gt; wp-includes/cron.php&lt;/p&gt;
&lt;p&gt;Approximately line number 205, there is something that looks like this.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;wp_remote_post ($cron_url, Array (&amp;#8216; timeout&amp;#8217; =&amp;gt; 0.01, &amp;#8216; blocking&amp;#8217; =&amp;gt; false));&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Change 0.01 to 60.  This should be a minute to post.&lt;/p&gt;
&lt;p&gt;This may work for you.  Totally didn&amp;#8217;t work for me.  &lt;/p&gt;
&lt;p&gt;Another solution was to change the wp_config.php file and add&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;define(&amp;#8216;ALTERNATE_WP_CRON&amp;#8217;, true);&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Didn&amp;#8217;t work either. &lt;/p&gt;
&lt;p&gt;Downloaded this &lt;a href="http://www.semiologic.com/2009/12/21/wp-2-9-three-bugs-and-how-to-fix-them/"&gt;zip file&lt;/a&gt; that&amp;#8217;s supposed to fix bugs.&lt;/p&gt;
&lt;p&gt;After uploading these files, the scheduler works.  You&amp;#8217;re seeing this post!&lt;/p&gt;
&lt;p&gt;The other thing that I noticed was that my journalpress was giving me errors on the edit page.  The problem was that I was still using PHP4, which won&amp;#8217;t work now.  I upgraded to PHP5 and I wasn&amp;#8217;t getting the errors anymore.  If you&amp;#8217;re on GoDaddy, &lt;a href="http://www.ardamis.com/2009/07/25/upgrading-godaddy-hosting-to-php-5-x-from-php-4-3-11/"&gt;here&amp;#8217;s the instructions on how to switch to PHP5&lt;/a&gt;.  I didn&amp;#8217;t have to edit the htaccess file.&lt;/p&gt;
&lt;p style="text-align: right"&gt;&lt;small&gt;Crossposted to &lt;a href="http://www.samanthaling.com/?p=1018" title="Read Original Post"&gt;Samantha Ling&lt;/a&gt;, &lt;a href="http://ling.dreamwidth.org"&gt;Dreamwidth&lt;/a&gt; and &lt;a href="http://lingtm.livejournal.com"&gt;Livejournal&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=ling&amp;ditemid=112053" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
