Call to Undefined Function get_currentuserinfo() Error in WordPress Chamar a atenção para get_currentuserinfo Indefinido Function () Erro em WordPress
In WordPress Em WordPress blog publishing blog publicando 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, pode haver erro foi registrado no servidor Web Apache error_log arquivo ou sido exibidos em páginas da web que se parece com a seguinte linha:
Fatal error: Call to undefined function: get_currentuserinfo() in /wordpress/wp-content/plugins/plugin.php Erro fatal: Chamada a função indefinida: get_currentuserinfo () in / wordpress / wp-content / plugins / plugin.php
The undefined get_currentuserinfo function error normally happens in a poorly coded plugin. O indefinido get_currentuserinfo função de erro normalmente ocorre em um plugin mal codificados. If the user deactivate the plug-in that causes the error, the issue will be fixed, resolved and go away. Se o utilizador desactivar o plug-in que provoca o erro, o problema será corrigido, e resolveu ir embora. 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. O erro ocorre porque $ $ user_id userdata ou variáveis globais tornam-se nulos, não definida ou de valor vazio após o plugin é iniciado, incluso, em forma de gancho e carregado.
The User ID and User Data (which User ID is part of) is globally-available var when in the WordPress admin pages. O ID de usuário e dados do usuário (ID de usuário que faz parte de) está disponível globalmente var-se no WordPress admin páginas. 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(). Para resolver a correção undefined e get_currentuserinfo () função de erro, e redefinir a variável de alcance global no plugin antes do início da função que apelando 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: Para definir ou userdata $ $ user_id vars de âmbito global, em uma das adicionar a seguinte linha no início do arquivo PHP plugin:
$userdata = $GLOBALS['userdata']; $ $ GLOBALS userdata = [ 'userdata'];
or, ou,
global $userdata; global $ userdata;
For user id, use “global $user_id;” instead. Id de utilizador, use "global $ user_id;" ao invés.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. IMPORTANTE: Você está lendo uma máquina página traduzida que é fornecido "como está" sem garantia. 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. Diferentemente tradução humana, tradução automática não compreender a gramática, semântica, sintaxe, expressões idiomáticas da língua natural, assim, muitas vezes produzir texto impreciso e baixa qualidade que é enganosa e incompreensível. Thus, please refer to Assim, por favor consulte a original English article artigo original Inglês when in doubt. quando em dúvida.
Related Articles Artigos Relacionados
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5 Chamar a atenção para Indefinido Função: wp_constrain_dimensions () Quando Upload Imagens ou image_downsize () na Galeria / Mediateca em WordPress 2.5
- Call To Undefined Function: ctype_digit() in WordPress 2.5 Chamada Para Indefinido Função: ctype_digit () em WordPress 2.5
- WordPress 2.5.1 Released for Download WordPress 2.5.1 Liberado para Download
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 PHP Fatal Error em Call to Add_Query_Var em Taxonomy.php Após Atualizando para WordPress 2.5 RC2
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 Fix WordPress 2.5 Image Uploader Flash ou não funcionando mídia em questão IE7
- Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin Desativar WordPress 2.5 Flash Image / Video / Media Uploader com Plugin
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin Como otimizar SEO blogs WordPress 2.5 Título da página web sem título óptima plugin
- WordPress 2.5 RC2 Released for Download WordPress 2.5 RC2 Liberado para Download
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Solução para Override WordPress Shortcode e Mostrar a [] colchetes Tags
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5 Media Buttons Disabler Plugin para remover "Adicionar Média" Ícones do WordPress 2.5
































