2017-08-01 94 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!)到您的網站的根目錄(博客地址)。 這是關鍵,我的壞 –