我面临以下问题-
WordPress 5.7.2 <> 试图安装 UNYSON 框架所需的扩展...并出现以下错误 -
安装扩展安装主题兼容的扩展
正在下载“短代码”扩展...
无法创建临时目录:
无法创建临时目录:返回扩展页面
尝试过 - sudo chown -R bitnami:daemon/opt/bitnami/wordpress/wp-content/plugins
仍然没有运气......请帮忙。
最佳答案
我可以通过添加该行来修复错误。
define('WP_CONTENT_DIR', realpath(ABSPATH . './wp-content/'));
线下,
if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', __DIR__ . '/' );}
在 wp-config.php 中。
最终代码如下所示
if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', __DIR__ . '/' );}
define('WP_CONTENT_DIR', realpath(ABSPATH . './wp-content/'));
关于amazon-web-services - AWS : Bitnami : UNYSON : Cannot create temporary directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68072771/