叫到未定義作用get_currentuserinfo ()錯誤在WordPress

在WordPress blog出版 系統,那裡也許是在網頁是看似以下線的登錄的Apache Web Server error_log文件或顯示的錯誤:

致命錯誤: 電話到未定義作用: get_currentuserinfo ()在/wordpress/wp-content/plugins/plugin.php


未定義get_currentuserinfo作用錯誤在一不足被編碼的插入式通常發生。 如果用戶撤銷導致錯誤的插入,問題固定,解決并且走開。 錯誤發生,因為$userdata或$user_id全局變量成為空,沒定義或者空的價值,在創始插入式,包括,被鉤并且被裝載之後。

用戶ID是一部分的)的用戶ID和用戶數據(是全球性可利用的var,當在WordPress admin頁。 解決和固定在未定義get_currentuserinfo ()作用錯誤、重新設置和範圍可變物全球性在插入式在作用的起點之前叫get_currenctuserinfo ()。

要設置$userdata或$user_id vars到全球性範圍,在一个以下線中增加入插入式PHP文件的起點:

$userdata = $GLOBALS [『userdata』];

或者,

全球性$userdata;

對於用戶標識符,使用「全球性$user_id; 」改為。

重要: 您讀現狀提供,不用保單的機器翻譯的頁。 不同於人工翻譯,計算機翻譯不瞭解語法,語義學,句法,成語自然語言,因而經常導致是引入歧途和不能理解的不精確和低品質文本。 因此,參見 原始的英國文章 當在疑義。



Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

Incoming Search Terms for the Article

Call to undefined function get_currentuserinfo() - get_currentuserinfo - Fatal error: Call to undefined function get_currentuserinfo() in - Fatal error: Call to undefined function get_currentuserinfo() - wordpress 2.5 get_currentuserinfo() - get_currentuserinfo wordpress - wordpress get_currentuserinfo - Call to undefined function: get_currentuserinfo() - call to undefined function get_currentuserinfo - Call to undefined function: get_currentuserinfo() - get_currentuserinfo include file - error - cache:UF8qtUyl2mYJ:en.redtram.com/go/107212849/ Call to undefined function get_currentuserinfo() - wordpress get_currentuserinfo() error - wordpress 2.5 get_currentuserinfo - wordpress get_currentuserinfo() need include ? - get_currentuserinfo(); - get_currentuserinfo() - Call to undefined function: get_currentuserinfo() i - wordpress get_currentuserinfo() inside plugin -