2013-10-21 21 views
0

我是drupal的新手。我有一個用drupal 6構建的網站,我將它移動到另一臺服務器,但網站無法正常工作我認爲這是一個主題路徑問題。當我移動我的drupal網站時出錯

錯誤: 1-注意:未定義指數:website_theme在C:\ Program Files文件\瓦帕\ WWW \ website_drupal \包括\ theme.inc上線71

2-注意:試圖獲得的屬性在C:\ Program Files \ wamp \ www \ website_drupal \ includes \ theme.inc中包含非對象在第104行

3-注意:試圖獲取C:\ Program Files \ wamp \ www中的非對象的屬性\ website_drupal \ includes \ theme.inc on line 231

Error image: http://i39.tinypic.com/20fp7hw.png

我不知道如何解決這個錯誤

回答

0

1)您可以顯示此文件的源代碼(行和身邊71):

C:\Program Files\wamp\www\website_drupal\includes\theme.inc 

2)的文件都可以到這個目錄?

3)您是否可以進入管理面板?/admin

+0

1- line 71 $ base_theme = array(); $ ancestor = $ theme; while($ ancestor && isset($ themes [$ ancestor] - > base_theme)){ $ base_theme [] = $ new_base_theme = $ themes [$ themes [$ ancestor] - > base_theme]; $ ancestor = $ themes [$ ancestor] - > base_theme; } _init_theme($ themes [$ theme],array_reverse($ base_theme)); 2-文件可用是 3-是的,我可以進入管理面板 –

+0

檢查文件系統設置:/ admin/settings/file-system。嘗試將「/」替換爲「\」。並嘗試選擇其他網站的主題(一些標準)。我認爲在你的自定義文件或文件.tpl.php文件template.php中的問題。 –

+0

當我登錄管理面板時,Drupla要求我修復一些錯誤並更新文件,之後主題工作正常,但主頁和任何其他頁面顯示「找不到頁面」,請指教。謝謝 –

相關問題