How to prevent plugin, theme installation failures on Wordpress?

admin2025-06-03  4

I am unable to install any theme/plugin to my wordpress 3.0

Downloading install package from .2.3.1.zip…    
Unpacking the package…    
Installing the plugin…    
Could not copy file. /public_html/blog/wp-content/plugins/contact-form-7/languages/wpcf7-lt_LT.po    
Plugin install failed.


Downloading install package from .2.2.zip…
Unpacking the package…
Could not create directory. /public_html

Downloading install package from .2.3.1.zip…
Unpacking the package…
Could not create directory. /public_html/blog/wp-content/upgrade/contact-form-7.tmp/contact-form-7

I get similar messages everytime. Is there any solution?

Update 12/01/2012: If you're using a latest version of WP (3.1 and above, 3.3.1 as of today), you will not have any problems. These issues have been removed. Enjoy your WP.

I am unable to install any theme/plugin to my wordpress 3.0

Downloading install package from http://downloads.wordpress/plugin/contact-form-7.2.3.1.zip…    
Unpacking the package…    
Installing the plugin…    
Could not copy file. /public_html/blog/wp-content/plugins/contact-form-7/languages/wpcf7-lt_LT.po    
Plugin install failed.


Downloading install package from http://wordpress/extend/themes/download/piano-black.2.2.zip…
Unpacking the package…
Could not create directory. /public_html

Downloading install package from http://downloads.wordpress/plugin/contact-form-7.2.3.1.zip…
Unpacking the package…
Could not create directory. /public_html/blog/wp-content/upgrade/contact-form-7.tmp/contact-form-7

I get similar messages everytime. Is there any solution?

Update 12/01/2012: If you're using a latest version of WP (3.1 and above, 3.3.1 as of today), you will not have any problems. These issues have been removed. Enjoy your WP.

Share Improve this question edited Feb 8, 2019 at 23:54 fuxia 107k39 gold badges255 silver badges461 bronze badges asked Aug 10, 2010 at 5:50 SanSan 7822 gold badges10 silver badges13 bronze badges 2
  • wordpress/extend/plugins/ftp-upgrade-fix/installation – user4811 Commented Apr 21, 2011 at 3:41
  • You can install wordpress plugins without any failure. This is how you do it: install wordpress plugin – satyam Commented Mar 5, 2013 at 18:10
Add a comment  | 

4 Answers 4

Reset to default 8

headdesk

Permissions on all WordPress files should be 644. Permissions on all WordPress directories should be 755.

Exceptions:

  • The uploads directory may need to be 775 or 777, depending on your server configuration.
  • wp-config.php should be 600, 640, or 644, whatever is the lowest number that works.

Never, ever, give higher permissions than those. That way lies dragons.

If you're having trouble writing files, then the first thing to do is to install the Core Control plugin and try to figure out what is failing. Specifically, the "Filesystem" module lets you diagnose which mechanism WP_Filesystem is attempting to use. That way, you don't waste time screwing around with the wrong thing: http://wordpress/extend/plugins/core-control/

Once you know the mechanism (probably the FTP method or a direct method) then you'll better know how to approach the issue.

  • If it's direct, then you either have a file ownership issue or a permissions issue.
  • If it's FTP, then you may have a loopback connectivity issue, or a file ownership issue.

Check your folder permission. Most likely your folder doesn't have correct permission.

The permission should be set to 777. If you have cPanel on your host, then it would be easy for your to do because the GUI is similar to WIndows.

Are you recursively changing the permissions? /public_html/blog/wp-content/plugins/ would need to be 755, 775, or 777 depending on whether you're the same user, same group, or neither, respectively, as the file/folder owner. I agree with phwd that 777 should be a last resort.

to my experience, check wp-content.. is there "upgrade" folder? if isn't, you must create it, n set to 777 or if the upgrade folder exists, u must remove it n recreate the new one

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748929821a314908.html

最新回复(0)