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 Web服务器错误信息的文件或已显示的网页上看上去像下面一行:

Fatal error: Call to undefined function: get_currentuserinfo() in /wordpress/wp-content/plugins/plugin.php致命错误:呼叫功能,以界定: get_currentuserinfo ( )在/ WordPress的/可湿性粉剂内容/插件/ 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.错误发生,因为用户数据或$ $ 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和用户数据(其中用户名是一部分)是全球无功时可在WordPress的管理网页。 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().要解决和修复未定义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:要设置用户数据或$ $ user_id瓦尔全球范围,增加以下行到年初的插件的PHP文件:

$userdata = $GLOBALS['userdata']; $用户数据= $全局[ '用户数据' ] ;

or,或,

global $userdata;全球$用户数据;

For user id, use “global $user_id;” instead.对于用户名,使用“全球$ user_id ; ”代替。

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.当怀疑。



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> 您可以使用这些标签: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> “删除日期时间= “ ” “的<em> <i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅没有评论


Custom Search

Incoming Search Terms for the Article收到的搜索字词的文章

get_currentuserinfo get_currentuserinfo - - Call to undefined function get_currentuserinfo() 呼吁未定义功能get_currentuserinfo ( ) - - Fatal error: Call to undefined function get_currentuserinfo() 致命错误:呼叫功能,以未定义get_currentuserinfo ( ) - - wordpress get_currentuserinfo WordPress的get_currentuserinfo - - Fatal error: Call to undefined function get_currentuserinfo() in 致命错误:呼叫功能,以未定义get_currentuserinfo ( )在 - - get_currentuserinfo wordpress get_currentuserinfo WordPress的 - - Call to undefined function: get_currentuserinfo() 呼吁未定义功能: get_currentuserinfo ( ) - - wordpress 2.5 get_currentuserinfo() WordPress的2.5 get_currentuserinfo ( ) - - wordpress get_currentuserinfo(); WordPress的get_currentuserinfo ( ) ; - - Call to undefined function: get_currentuserinfo() 呼吁未定义功能: get_currentuserinfo ( ) - - call to undefined function get_currentuserinfo 呼吁未定义功能get_currentuserinfo - - get_currentuserinfo include file get_currentuserinfo包含文件 - - error 错误 - - get_currentuserinfo is empty get_currentuserinfo是空的 - - cache:UF8qtUyl2mYJ:en.redtram.com/go/107212849/ Call to undefined function get_currentuserinfo() 缓存: UF8qtUyl2mYJ : en.redtram.com/go/107212849 /呼叫功能,以未定义get_currentuserinfo ( ) - - wordpress get_currentuserinfo() error WordPress的get_currentuserinfo ( )错误 - - wordpress 2.5 get_currentuserinfo WordPress的2.5 get_currentuserinfo - - wordpress get_currentuserinfo() need include ? WordPress的get_currentuserinfo ( )必须包括? - - get_currentuserinfo(); get_currentuserinfo ( ) ; - - wordpress which file get_currentuserinfo WordPress的哪个文件get_currentuserinfo - - get_currentuserinfo() get_currentuserinfo ( ) - - Call to undefined function: get_currentuserinfo() i 呼吁未定义功能: get_currentuserinfo ( )我 - - wordpress get_currentuserinfo() inside plugin WordPress的get_currentuserinfo ( )内插件 - - wordpress "Fatal error: Call to undefined function get_currentuserinfo()" WordPress的“致命错误:呼叫功能,以未定义get_currentuserinfo ( ) ” - - wordpress Call to undefined function get_currentuserinfo( WordPress的呼叫功能,以未定义get_currentuserinfo ( - - get_currentuserinfo undefined wordpress WordPress的get_currentuserinfo未定义 - - Call to undefined function get_currentuserinfo 呼吁未定义功能get_currentuserinfo - - "Call to undefined function get_currentuserinfo" “呼叫功能,以未定义get_currentuserinfo ” - - call to undefined function get_currentuserinfo(); 呼吁未定义功能get_currentuserinfo ( ) ; - - get_currentuserinfo() wordpress get_currentuserinfo ( ) WordPress的 - - Fatal error: Call to undefined function get_currentuserinfo() 致命错误:呼叫功能,以未定义get_currentuserinfo ( ) - - get_currentuserinfo() what file is that function in get_currentuserinfo ( )什么是档案功能 - - how to call get_currentuserinfo() from different page 如何呼吁get_currentuserinfo ( )由不同的网页 - - ie7 undefined scope error IE7的界定范围的错误 - - Call to undefined function get_currentuserinfo( pugin wordpress 呼吁未定义功能get_currentuserinfo ( pugin WordPress的 - - "get_currentuserinfo" “ get_currentuserinfo ” - - Call to undefined function get_currentuserinfo() 呼吁未定义功能get_currentuserinfo ( ) - - get_currentuserinfo include get_currentuserinfo包括: - - get_currentuserinfo() in plugin get_currentuserinfo ( )在插件 - -