{"id":1375,"date":"2017-04-07T16:38:05","date_gmt":"2017-04-07T20:38:05","guid":{"rendered":"https:\/\/easy-admin.ca\/?p=1375"},"modified":"2017-04-10T19:46:41","modified_gmt":"2017-04-10T23:46:41","slug":"the-package-could-not-be-installed-pclzip_err_missing_file-4-missing-archive-file","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2017\/04\/07\/the-package-could-not-be-installed-pclzip_err_missing_file-4-missing-archive-file\/","title":{"rendered":"The package could not be installed."},"content":{"rendered":"<p><em><strong>PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file<\/strong><\/em><\/p>\n<p>If WP detects that it cannot write files to your \/tmp\/&#8230;.\u00a0directory, then you get the error message like <strong>&#8220;The package could not be installed. PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file&#8221;<br \/>\n<\/strong><\/p>\n<p><strong>Solution<\/strong>:<\/p>\n<p>You can work around this by specifying a new temp directory on your server with a place that you know <strong>WordPress is allowed to write files<\/strong> to. You can do this by adding this line of code into the wp-config.php file.<\/p>\n<p><strong>1. Find the links blow<br \/>\n<\/strong>if ( !defined(&#8216;ABSPATH&#8217;) )<br \/>\ndefine(&#8216;ABSPATH&#8217;, dirname(__FILE__) . &#8216;\/&#8217;);<\/p>\n<p><strong>2. Add lines below<\/strong><br \/>\n\/** Specify wordpress temp dir *\/<br \/>\ndefine(&#8216;WP_TEMP_DIR&#8217;, ABSPATH . &#8216;<span style=\"color: #ff0000;\">wp-content\/<strong>temp<\/strong><\/span>&#8216;);<\/p>\n<p><strong>3. Open wp-content folder,<\/strong><br \/>\nand create a new folder on your CENTOS Server named <strong>&#8220;<span style=\"color: #ff0000;\">temp<\/span>&#8220;<\/strong> and make sure you set the right <strong>CHOWN <\/strong>for your new created directory!<\/p>\n<p>Try again, you will see it works like a charm.<\/p>\n<p><strong><em>Easy Fix here!<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file If WP detects that it cannot write files to your \/tmp\/&#8230;.\u00a0directory, then you get the error message like &#8220;The package could not be installed. PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file&#8221; Solution: You can work around this by specifying a new temp directory on your server with a place that &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2017\/04\/07\/the-package-could-not-be-installed-pclzip_err_missing_file-4-missing-archive-file\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">The package could not be installed.<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"The package could not be installed. - HP Server","description":"PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file If WP detects that it cannot write files to your \/tmp\/....\u00a0directory, then you get the error message like \"T"},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1375","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/1375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1375"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/1375\/revisions"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}