{"id":21114,"date":"2017-01-27T14:21:35","date_gmt":"2017-01-27T07:21:35","guid":{"rendered":"http:\/\/tom.ji42.com\/?p=21114"},"modified":"2017-01-27T14:21:35","modified_gmt":"2017-01-27T07:21:35","slug":"how-to-fix-pclzip_err_missing_file-4-missing-archive-file-cwindowstempwhatever-tmp","status":"publish","type":"post","link":"https:\/\/tom.tomwork.net\/?p=21114","title":{"rendered":"HOW TO FIX: PCLZIP_ERR_MISSING_FILE (-4) : MISSING ARCHIVE FILE \u2018C:\\WINDOWS\\TEMP\/{WHATEVER..}.TMP\u2019"},"content":{"rendered":"<p><strong>I\u2019ve got the Windows server blues\u2026<\/strong><\/p>\n<p>This solution is based on this <a href=\"http:\/\/wordpress.org\/support\/topic\/pclzip_err_missing_file-4-missing-archive-file-cwindowstempwordpress-3\">WordPress.org thread<\/a>.<\/p>\n<p><strong>PROBLEM<\/strong><\/p>\n<p>When you try to update WordPress or install plugins, the downloader \/ installer page pops up, the compressed file is downloaded to your server, but installation fails because of this error:<\/p>\n<p>PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file \u2018C:\\Windows\\TEMP\/{whatever you were installing}.tmp\u2019<\/p>\n<p><strong>SOLUTION<\/strong><\/p>\n<p>You need to access the files on your server via FTP. If you haven\u2019t done this before, there are tutorials out there. Short version: find the FTP access details for your server, and grab <a href=\"https:\/\/filezilla-project.org\/\">FileZilla FTP Client<\/a>. Or if your hosting provides a File Manager utility, use that.<\/p>\n<p>On your server, navigate to the \/wp-content folder. Create a new folder inside it called TEMP.<\/p>\n<p>Download \/wp-config.php from your server to your computer. Open it up in a text editor, and beneath<\/p>\n<pre>if ( !defined('ABSPATH') )\r\ndefine('ABSPATH', dirname(__FILE__) . '\/');<\/pre>\n<p>add the line<\/p>\n<pre>define('WP_TEMP_DIR', ABSPATH . 'wp-content\/TEMP');<\/pre>\n<p>then save wp-config.php. Upload it to your server again.<\/p>\n<p>Try updating WordPress or installing a plugin. It should work now.<\/p>\n<p><strong>The other solution is not to use Windows hosting!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019ve got the Windows server blues\u2026 This solution is based on this WordPress.org thread. PROBLEM When you try to update WordPress or install plugins, the downloader \/ installer page pops up, the compressed file is downloaded to your server, but installation fails because of this error: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file \u2018C:\\Windows\\TEMP\/{whatever you were [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[13],"tags":[],"class_list":["post-21114","post","type-post","status-publish","format-standard","hentry","category-13"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6cOVM-5uy","_links":{"self":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/21114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21114"}],"version-history":[{"count":1,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/21114\/revisions"}],"predecessor-version":[{"id":21115,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/21114\/revisions\/21115"}],"wp:attachment":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}