Call to Undefined Function get_currentuserinfo() Error in WordPress Tawag sa Undefined Function get_currentuserinfo () Error sa WordPress
In WordPress Sa WordPress blog publishing Ang blog na-publish 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: sistema, maaaring may mga error ay naka-log in Apache web server error_log file o ay ipinapakita sa mga pahina ng web na kung saan tila ang mga sumusunod na linya:
Fatal error: Call to undefined function: get_currentuserinfo() in /wordpress/wp-content/plugins/plugin.php Fatal error: Tawag sa malabo function: get_currentuserinfo () in / wordpress / content-WP / plugins / plugin.php
The undefined get_currentuserinfo function error normally happens in a poorly coded plugin. Ang malabo error get_currentuserinfo function na normal ang mangyayari sa isang naka-code na mahina ang plugin. If the user deactivate the plug-in that causes the error, the issue will be fixed, resolved and go away. Kung ang user ay deactivate ang plug-in na nagiging sanhi ng error, ang isyu ay magiging maayos, nalutas at umalis. 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. Ang error ang mangyayari dahil sa $ userdata o $ user_id global variable maging null, hindi tinukoy o ng walang laman na halaga matapos ang plugin ay pinasimulan, kasama, baluktot at load.
The User ID and User Data (which User ID is part of) is globally-available var when in the WordPress admin pages. Ang mga User ID at ng User Data (na User ID ay bahagi ng) ay globally-magagamit var kapag sa admin WordPress pahina. 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(). Upang malutas at ayusin ang mga hindi tiyak get_currentuserinfo () function error, i-reset ang saklaw at variable sa global sa plugin bago ang simula ng function na pagtawag 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: Upang itakda ang $ userdata o $ user_id vars sa pandaigdigang saklaw, idagdag sa isa sa mga sumusunod na linya sa simula ng plugin na file PHP:
$userdata = $GLOBALS['userdata']; $ userdata = $ GLOBALS [ 'userdata'];
or, o,
global $userdata; global $ userdata;
For user id, use “global $user_id;” instead. Para sa mga user id, gamitin ang "global $ user_id;" sa halip.
Update: Above trick does not work in new WordPress version, try the Update: Itaas na bilis ng kamay ay hindi gumagana sa bagong bersyon ng WordPress, subukan ang fix undefined function get_currentuserinfo() fatal error ayusin malabo get_currentuserinfo function () mortal na error guide instead. gabay sa halip.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. IMPORTANTE: You're pagbasa a makina isinalin sa pahina na kung saan ay ibinigay "bilang ganito" walang 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. Hindi tulad ng tao translation, machine translation ay hindi maintindihan ang gramatika, semantika, syntax, idioms ng likas wika, sa gayon ay madalas gumawa ng mali at mababang kalidad ng text na kung saan ay totoo at hindi madalumat. Thus, please refer to Kaya, mangyaring sumangguni sa original English article orihinal na Ingles na artikulo when in doubt. kapag may pagdududa.
Related Articles Mga Kaugnay na Akda
- Call To Undefined Function: ctype_digit() in WordPress 2.5 Tumawag Upang Undefined Function: ctype_digit () sa WordPress 2.5
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5 Tawag sa Undefined Function: wp_constrain_dimensions () Kapag nag-upload ng imahe o image_downsize () sa Gallery / Media Library sa 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 sa Tawag sa Add_Query_Var sa Taxonomy.php Pagkatapos ng upgrade sa WordPress 2.5 RC2
- WordPress 2.5.1 Released for Download WordPress 2.5.1 Released para Download
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 Ayusin WordPress 2.5 imahen o Media Flash Uploader Hindi Paggawa Isyu sa IE7
- Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin Huwag paganahin ang WordPress 2.5 Flash Imahe / Video / Media Uploader may Plugin
- WordPress 2.5 Released for Free Download WordPress 2.5 Released para sa mga Libreng Download
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5 Media Pindutan Disabler Plugin sa Alisin ang "Magdagdag ng Media" icon sa WordPress 2.5
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Workaround sa Override WordPress shortcode at Ipakita ang mga [] mga braket Tags
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin Paano na-optimize ang SEO WordPress 2.5 Blog Web Page Title walang sulit Title Plugin









































