Call to Undefined Function get_currentuserinfo() Error in WordPress Звоните с неопределенным get_currentuserinfo Функция () Ошибка в WordPress
In WordPress В WordPress blog publishing Блог издательские system, there may be error been logged in Apache web server error_log file or been displayed on web pages which looks like the following line: системе, что может произойти ошибка была войти в веб-сервере Apache error_log файла или были показаны на страницах которого похож на следующую строку:
Fatal error: Call to undefined function: get_currentuserinfo() in /wordpress/wp-content/plugins/plugin.php Неисправимая ошибка: Вызов неопределенной функции: get_currentuserinfo () в / WordPress / WP-содержание / плагины / plugin.php
The undefined get_currentuserinfo function error normally happens in a poorly coded plugin. Неопределенные функции ошибок get_currentuserinfo обычно бывает в плохо закодированные плагина. If the user deactivate the plug-in that causes the error, the issue will be fixed, resolved and go away. Если пользователь отключить плагин, который приводит к ошибке, проблема будет исправлена, и решил уйти. The error happens because $userdata or $user_id global variables become null, not defined or of empty value after the plugin is initiated, included, hooked and loaded. Ошибка происходит, потому что $ UserData или $ user_id глобальные переменные стал нулевым, а не определено или пустое значение после того, как приступил к плагина, включен, подключили и загружены.
The User ID and User Data (which User ID is part of) is globally-available var when in the WordPress admin pages. ID пользователя и данные пользователя (User ID который является частью) является глобально доступных VAR, когда на страницах Админки. To resolve and fix the undefined get_currentuserinfo() function error, reset and scope the variable to global in the plugin before the beginning of the function which calling get_currenctuserinfo(). Чтобы решить и исправить Undefined get_currentuserinfo () функция ошибок, сброс и масштабы глобальной переменной в плагине перед началом вызова функции, которая get_currenctuserinfo ().
To set $userdata or $user_id vars to global scope, add in one of the following line into the beginning of the plugin PHP file: Чтобы установить UserData $ или $ user_id ВАР глобального масштаба, добавить в одну из следующих строк в начало файла плагина PHP:
$userdata = $GLOBALS['userdata']; UserData $ = $ GLOBALS [ 'UserData'];
or, или,
global $userdata; Global $ UserData;
For user id, use “global $user_id;” instead. Для пользователя, использовать "глобальный $ user_id;" вместо.
Update: Above trick does not work in new WordPress version, try the Обновление: Над трюк не работает в новой версии WordPress, попробуйте fix undefined function get_currentuserinfo() fatal error исправить Undefined get_currentuserinfo функция () роковую ошибку guide instead. Руководство вместо.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. ВАЖНО: Вы читаете машина переведенной страницы предоставляется "как есть" без гарантии. Unlike human translation, machine translation does not understand the grammar, semantics, syntax, idioms of natural language, thus often produce inaccurate and low quality text which is misleading and incomprehensible. В отличие от человеческого перевода, машинный перевод не понимает грамматика, семантика, синтаксис, идиомы естественного языка, таким образом, часто приводят неточные и низкое качество текста, который вводит в заблуждение и непонятным. Thus, please refer to Таким образом, обратитесь к original English article оригинальный английский статью when in doubt. когда в сомнении.
Related Articles Статьи по Теме
- Call To Undefined Function: ctype_digit() in WordPress 2.5 Звоните неопределенной функции: ctype_digit () в WordPress 2.5
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5 Звоните неопределенной функции: wp_constrain_dimensions () при загрузке изображений или image_downsize () в Галерея / Медиа Библиотека в WordPress 2.5
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 PHP Fatal Error по вызову Add_Query_Var в Taxonomy.php после перехода на WordPress 2.5 RC2
- WordPress 2.5.1 Released for Download WordPress 2.5.1 для загрузки
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 Fix WordPress 2.5 Image или Media Flash Uploader Not Working выпуск в IE7
- Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin Отключить WordPress 2,5 Flash Image / видео / Медиа-Uploader с плагином
- WordPress 2.5 Released for Free Download WordPress 2.5 Освобождать для Свободный Снижение антенны
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5 Медиа Кнопки Disabler плагин для удаления "Добавить медиа" иконки в WordPress 2.5
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Обход Заменять WordPress Shortcode и отображения [] скобки Теги
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin Как SEO оптимизации блога WordPress 2.5 заголовок веб-страницы без Оптимальное Название плагина









































