简体   繁体   English

WordPress主题安装失败

[英]Wordpress theme installation failed

While Installing the WordPress theme, I get the error below 在安装WordPress主题时,出现以下错误

" Unpacking the package… “打开包装…

Installing the theme… 正在安装主题…

Could not create directory. 无法创建目录。 /opt/lampp/htdocs/wordpress/wp-content/themes/universal-lite/ / opt / lampp / htdocs / wordpress / wp-content / themes / universal-lite /

Theme installation failed. 主题安装失败。

"

Anyone please help me. 有人请帮助我。 I am stuck 我被困住了

It seems like the user does not have sufficient permissions to create folders in this directory. 用户似乎没有足够的权限在此目录中创建文件夹。

Try if you can create a folder in this directory yourself 尝试是否可以自己在此目录中创建文件夹

$mkdir /opt/lampp/htdocs/wordpress/wp-content/themes/test

If you want to grant all permissions for testing purposes to this directory and all sub-folders try 如果您想为此测试授予所有权限,则所有子文件夹都会尝试

$sudo chmod -R 777 /opt/lampp/htdocs/

There are two possibilities to failing theme upload. 主题上传失败有两种可能性。

  1. Your folder dont have sufficient permission to create directory so first of all use this command to grant the access chmod -R 777 /opt/lampp/htdocs/wordpress/ 您的文件夹没有足够的权限来创建目录,因此首先使用此命令来授予访问权限chmod -R 777 /opt/lampp/htdocs/wordpress/

  2. Or check whether your folder size is more than the upload limit? 还是检查您的文件夹大小是否超过上传限制? if it is, try to upload the theme using terminal or increase upload limit. 如果是这样,请尝试使用终端上传主题或增加上传限制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM