Call to Undefined Function get_currentuserinfo() Error in WordPress Call to Undefined Amats get_currentuserinfo () kļūda WordPress
In WordPress WordPress blog publishing blog publicēt 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: sistēmas, var būt kļūda bija pieteicies Apache tīmekļa servera error_log failu vai ir parādīts tīmekļa lapām, kas izskatās šādu rindu:
Fatal error: Call to undefined function: get_currentuserinfo() in /wordpress/wp-content/plugins/plugin.php Fatal error: Call to undefined function: get_currentuserinfo () in / wordpress / wp-content / plugins / plugin.php
The undefined get_currentuserinfo function error normally happens in a poorly coded plugin. Undefined get_currentuserinfo funkcija kļūda parasti notiek slikti kodētā spraudni. If the user deactivate the plug-in that causes the error, the issue will be fixed, resolved and go away. Ja lietotājs deaktiviz plug-in, kas izraisa kļūdu, jautājums tiks noteikts, izzuda un doties prom. 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. Kļūda notiek, jo $ lietotāju datu vai $ user_id globālo mainīgo zaudējušas, nav noteikts, vai tukša vērtība pēc spraudnis ir uzsākta, iekļauts, līks un iekrauj.
The User ID and User Data (which User ID is part of) is globally-available var when in the WordPress admin pages. Lietotāja ID un lietotāja informāciju (lietotāja ID ir daļa no tiem) ir globāli pieejams var kad WordPress admin lapas. 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(). Lai atrisinātu un nosaka undefined get_currentuserinfo () funkcija kļūda, Reset un joma mainīgo par pasaules spraudnis pirms sākuma funkcija, kas zvana 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: Lai iestatītu $ lietotāju datu vai $ user_id Vars globālo apjomu, pievienot vienu no šādām līniju vērā sākuma spraudnis PHP failu:
$userdata = $GLOBALS['userdata']; $ lietotāju datu = $ Globālie [ 'lietotāju datu'];
or, vai,
global $userdata; global $ lietotāju datu;
For user id, use “global $user_id;” instead. Lietotāja ID, izmantošana "global $ user_id;" vietā.
Update: Above trick does not work in new WordPress version, try the Update: Virs triks nedarbojas jaunajā WordPress versijā, mēģiniet fix undefined function get_currentuserinfo() fatal error fix undefined funkcija get_currentuserinfo () fatāla kļūda guide instead. guide vietā.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. SVARĪGI: jūs lasāt, mašīna tulkoto lapa, kurā tiek nodrošināta "kā ir" bez garantijas. 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. Atšķirībā no cilvēka translation, mašīntulkošanas nesaprot gramatika, semantiku, sintaksi, Idiomas dabas valodā, tādējādi bieži ir neprecīzi un zemas kvalitātes teksts, kas ir maldinoša un neizprotams. Thus, please refer to Tātad, lūdzu, skatiet original English article oriģināls angļu rakstu when in doubt. Šaubu gadījumā.
Related Articles Saistītie raksti
- Call To Undefined Function: ctype_digit() in WordPress 2.5 Lūgt Undefined Amats: ctype_digit () in 2.5 WordPress
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5 Zvanīt, lai Undefined Amats: wp_constrain_dimensions () Kad Augšupielādē attēlus vai image_downsize () in Galerija / Media Library 2.5 WordPress
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 PHP Fatal Error par Lūgt Add_Query_Var in Taxonomy.php pēc jaunināšanas uz 2.5 WordPress RC2
- WordPress 2.5.1 Released for Download WordPress 2.5.1 Released lejupielādei
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 Fix WordPress 2,5 Image vai Multivides Flash Uploader Not Working Issue in IE7
- Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin Disable WordPress 2,5 Flash Image / Video / Media Uploader ar Plugin
- WordPress 2.5 Released for Free Download WordPress 2,5 brīvā Download
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5 Media pogas Disabler Spraudnis Remove "Pievienot Media" Ikonas 2,5 WordPress
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags PROFILAKSE ignorēt WordPress Shortcode un Displeja [] iekavās Tags
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin Kā SEO optimizēšana WordPress 2,5 Blog Web Page Title Bez Optimal Nosaukums Plugin









































