简体   繁体   English

在Wordpress中上载主题时出错

[英]Error when Uploading Theme in Wordpress

I am trying to upload the Divi theme on the Ricky server with helio host, and I get an error that says `The uploaded file exceeds the upload_max_filesize directive in php.ini.' 我正在尝试在带有Helio主机的Ricky服务器上上载Divi主题,但出现错误消息“上载的文件超出了php.ini中的upload_max_filesize指令”。 I looked in the wp-admin folder on my server and did not see the php.ini file, so I created one and added this code: 我查看了服务器上的wp-admin文件夹,但没有看到php.ini文件,因此我创建了一个文件并添加了以下代码:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

This did not seem to help as I kept getting the same error message. 这似乎没有帮助,因为我不断收到相同的错误消息。 I tried installing the plugin "Upload Max File Size" but it did not seem to help either. 我尝试安装插件“上传最大文件大小”,但似乎也无济于事。 I read through some blog post, and forum discussions but could still not seem to figure it out. 我通读了一些博客文章和论坛讨论,但似乎仍无法弄清楚。 Any help would be greatly appreciated. 任何帮助将不胜感激。

Noah 诺亚

The php.ini file is the main configuration file for php. php.ini文件是php的主要配置文件。 It is not located in the wp-admin folder. 它不在wp-admin文件夹中。 If you have a vps you can looking the location of that file with a php_info(), else you have to ask to your provider. 如果您有vps,则可以使用php_info()查找该文件的位置,否则必须询问提供商。 If you can't edit your php.ini file, you can : 如果您无法编辑php.ini文件,则可以:

Php.ini doc page php.ini文档页面

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

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