php - DIvi Theme Builder 出现未知错误,请稍后再试
问题描述
我一直在尝试让 divi 主题生成器工作,但总是会弹出这个错误;
“发生未知错误,请稍后再试。”
我试过配置
memory_limit 256M
post_max_size 128M
max_execution_time 300
upload_max_filesize 64M
max_input_time 600
max_input_vars 6000
甚至将我的 php 升级到 7.4 但仍然出现相同的错误
附加信息:Wordpress 版本:5.3.2 Divi 版本:4.0.9
解决方案
我今天也遇到了同样的问题,这就是我解决它的方法。
第 1 步:查看我的 WordPress 仪表板中的 Divi->Support Center 以获取任何错误列表。
这清楚地表明 wp-content 目录不可写。为了进一步确认,请按照步骤 2。
Step2:在 wp-config.php 中启用 WordPress 调试日志,如下所示:
define( 'WP_DEBUG', true);
现在我在网络服务器日志文件中看到以下错误:
2020/01/08 10:48:49 [error] 18271#18271: *2598 FastCGI sent in stderr: "PHP message: .../cache/Directory.php:65 ET_Core_Cache_Directory::_initialize():
Unable to write to the filesystem. Please ensure that PHP has to write access to one of the following directories:
- WP_CONTENT_DIR
- wp_upload_dir()
- ET_CORE_CACHE_DIR" while reading response header from the upstream, client:
或多或少清楚的是,由于网络服务器无法写入 WP_CONTENT_DIR,因此发生了超时。为运行网络服务器(在我的情况下为 Nginx)的用户提供了所需的权限,如下所示:
#chown <username>:nginx wp-content/
#chmod 775 wp-content
现在它开始工作了。希望这可以帮助。这是因为 Divi 在 wp-content 目录中创建了一个名为 et-cache 的目录,通过生成缓存在 et-cache 文件夹中的静态 css 文件来提高性能。
推荐阅读
- python - python sum numpy数组中的元素沿角度而不是轴
- string - arduino Serial.readStringUntil('\r') - multiple lines input
- excel - 模块在错误的工作簿中运行
- php - Updation not happening in the first click
- angular - change doesn't work in reactive form for select
- javascript - How to detect camera orientation javascript webrtc
- android - 如何使用 Retrofit2 发送带有 MultiPart 请求的 FormData?
- javascript - how i can map and set index 0 to true and the others to false onclick react JS
- c# - Binding dynamic list to comboBox
- javascript - bootstrap modals put values in database