2012-02-10 56 views
0

所有突然我的WordPress網站的顯示以下內容:Wordpress標題錯誤?

Warning: array_unshift() expects parameter 1 to be array, null given in /home/rjames/public_html/rjamesphotography.co.uk/wp-content/themes/contrast/themolution/includes/theme-functions.php on line 37 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/rjames/public_html/rjamesphotography.co.uk/wp-content/themes/contrast/themolution/includes/theme-functions.php:37) in /home/rjames/public_html/rjamesphotography.co.uk/wp-content/plugins/si-contact-form/si-contact-form.php on line 1810 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/rjames/public_html/rjamesphotography.co.uk/wp-content/themes/contrast/themolution/includes/theme-functions.php:37) in /home/rjames/public_html/rjamesphotography.co.uk/wp-content/plugins/si-contact-form/si-contact-form.php on line 1810 

Warning: Cannot modify header information - headers already sent by (output started at /home/rjames/public_html/rjamesphotography.co.uk/wp-content/themes/contrast/themolution/includes/theme-functions.php:37) in /home/rjames/public_html/rjamesphotography.co.uk/wp-includes/pluggable.php on line 866 

Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 

這是罰款約3/4天,現在我得到這個。我甚至不能登錄到管理員一邊看看...任何人都可以指出我的方向正確 - 我對PHP不太熱。

謝謝。

+0

你的主機上有多少可用空間? – 2012-02-10 08:53:54

+0

無限制...... – 2012-02-10 09:33:20

+0

那麼,「無限」它永遠不會是這樣;我問,因爲一旦我有類似的錯誤(特別是「寫會話數據」失敗),這是我的主機是完全的。在ssh控制檯或CPanel中檢查真實的可用空間。日誌確實只顯示那些錯誤,或者還有其他嗎? – 2012-02-10 09:44:29

回答

0

你的主題是堆砌起來

你可以嘗試直接在數據庫中

UPDATE wp_options SET option_value = 'default' WHERE option_name = 'template'; 
UPDATE wp_options SET option_value = 'default' WHERE option_name = 'stylesheet'; 
UPDATE wp_options SET option_value = 'default' WHERE option_name = 'current_theme'; 

希望,那麼你可以登錄更改主題編程這樣的。在開始製作之前,先嚐試一下你的開發環境

0

你唯一的問題就是array_unshift()錯誤。其餘的消息是這樣的結果。所以只有array_unshift()問題需要解決。

不知道是什麼造成它從這個消息,雖然,什麼line 37wp-content/themes/contrast/themolution/includes/theme-functions.php

+0

這是第37行.. array_unshift($ result,$ select); – 2012-02-10 09:35:19

+0

所以這意味着'$ result'是空的,如果不知道是什麼導致了這個問題,我們就無法幫助你。我們需要更多關於代碼的信息以及可能導致它的原因。修復不顯示錯誤,你可以在'array_unshift'之前添加一個'@' – Richard 2012-02-10 12:09:55