2017-08-01 95 views
1

我在/ lp文件夹上安装了一个wordpress,当我完成网站时,我将它移动到根目录,除了一个插件“Global Gallery”给我一个错误(你可以在这里看到http://www.cagliaridinamoacademy.com/gallery/Warning:fileperms():stat失败

在file.php线935有这样的代码:

define('FS_CHMOD_FILE', (fileperms(ABSPATH . 'index.php') & 0777 | 0644)); 

我怎样才能解决呢? 谢谢

+0

问题可能是由于'index.php'和'.htaccess'不corectly复制 –

+0

您安装你的wordpress? –

+0

我将index.php和.htaccess从/ lp移至/并更改为 require(dirname(__FILE__)。'/wp-blog-header.php'); 至 require(dirname(__FILE__)。'/lp/wp-blog-header.php'); on index.php 安装位于/ lp –

回答

0

您的意思是在一个子目录中安装WordPress设置WP_DEBUGFALSE?如果是通过这个读来验证正确安装install WordPress in a subdirectory

或者,如果你打算安装WordPress的根目录遵循的步骤install WordPress in the root directory

你将从here

+0

从WordPress目录复制(NOT MOVE!)index.php和.htaccess文件到您的网站的根目录(博客地址)。 这是关键,我的坏 –

0

要么设置插件路径插件文件夹里面去或者wp-config.php文件

define('WP_DEBUG', false); 
+0

wp调试设置为false,我不知道如何设置你的意思是路径。 –

+0

将WordPress目录中的index.php和.htaccess文件复制(NOT MOVE!)到您的网站的根目录(博客地址)。 这是关键,我的坏 –