{"id":4031,"date":"2015-05-09T07:13:35","date_gmt":"2015-05-09T14:13:35","guid":{"rendered":"http:\/\/www.corbinstreehouse.com\/blog\/2015\/05\/downloading-wordpress-content-maximum-execution-time-of-30-seconds-error\/"},"modified":"2018-11-03T13:36:22","modified_gmt":"2018-11-03T20:36:22","slug":"downloading-wordpress-content-maximum-execution-time-of-30-seconds-error","status":"publish","type":"post","link":"https:\/\/www.corbinstreehouse.com\/blog\/2015\/05\/downloading-wordpress-content-maximum-execution-time-of-30-seconds-error\/","title":{"rendered":"Downloading WordPress Content &#8211; &#8220;Maximum execution time of 30 seconds&#8221; error"},"content":{"rendered":"<p id=\"top\" \/>\n<p>I occasionally want to download all my blog posts from WordPress. This is easy to do in the web config &#8211; go to Tools -&gt; Export and &#8220;Download Export File&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Screen Shot 2015-05-09 at 6.41.16 AM.png\" src=\"http:\/\/www.corbinstreehouse.com\/blog\/wp-content\/uploads\/2015\/05\/Screen-Shot-2015-05-09-at-6.41.16-AM.png\" alt=\"Screen Shot 2015 05 09 at 6 41 16 AM\" width=\"500\" height=\"538\" border=\"0\" \/><\/p>\n<p>The download would max out at about 8 MB and just stop, probably because I have a relatively slow connection at home. I&#8217;d get a fatal error at the end of the file:<\/p>\n<pre>Fatal error: \u00a0Maximum execution time of 30 seconds exceeded in... on line ...<\/pre>\n<p>To fix this, I need to change the &#8220;max_execution_time=30&#8221; \u00a0to something higher (like 500), and then lower it back down to make sure the server doesn&#8217;t do something bad (timeouts are good for general blog work!).<\/p>\n<p>I use dreamhost, and here is how to set the value in the PHP.ini: <a href=\"http:\/\/wiki.dreamhost.com\/PHP.ini\">http:\/\/wiki.dreamhost.com\/PHP.ini<\/a><\/p>\n<p>Note that the best way to find what PHP you are running is to login and do a &#8220;ps aux&#8221; to see what PHP processes are actually running. My dream host page says I was running 5.4, but apparently I&#8217;m stuck on 5.3!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I occasionally want to download all my blog posts from WordPress. This is easy to do in the web config &#8211; go to Tools -&gt; Export and &#8220;Download Export File&#8221;. The download would max out&#8230; <a class=\"read-more\" href=\"https:\/\/www.corbinstreehouse.com\/blog\/2015\/05\/downloading-wordpress-content-maximum-execution-time-of-30-seconds-error\/\">[read more]<\/a><\/p>\n","protected":false},"author":1,"featured_media":4030,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,2],"tags":[],"class_list":["post-4031","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","category-other-stuff"],"jetpack_featured_media_url":"https:\/\/www.corbinstreehouse.com\/blog\/wp-content\/uploads\/2015\/05\/Screen-Shot-2015-05-09-at-6.41.16-AM.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/4031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/comments?post=4031"}],"version-history":[{"count":1,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/4031\/revisions"}],"predecessor-version":[{"id":5347,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/4031\/revisions\/5347"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/media\/4030"}],"wp:attachment":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/media?parent=4031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/categories?post=4031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/tags?post=4031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}