Call to Undefined Function get_currentuserinfo() Error in WordPress Get_currentuserinfo Call to Undefined Function () Erro em WordPress
In WordPress Em WordPress blog publishing publicação de blogs 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: erro do sistema, pode haver sido 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 Fatal error: Call to undefined function: get_currentuserinfo () in / / content wp-wordpress / plugins / plugin.php
The undefined get_currentuserinfo function error normally happens in a poorly coded plugin. O erro de função indefinida get_currentuserinfo normalmente acontece em um plugin mal codificado. If the user deactivate the plug-in that causes the error, the issue will be fixed, resolved and go away. Se o usuário desativar o plug-in que faz com que 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 acontece porque userdata ou $ user_id variáveis globais tornam-se nulos, não definida ou de valor vazio após o plugin é iniciado, incluídos, ligado 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 (User ID que é parte) é globalmente-var quando disponíveis nas páginas admin 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(). Para resolver e corrigir o get_currentuserinfo indefinido () erro de função, e redefinir o âmbito da variável global no plugin antes do início da função que chamar 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 $ userdata ou vars $ user_id de âmbito global, adicione em uma das linhas a seguir 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. Para identificação do usuário, use "global $ user_id," em vez disso.
Update: Above trick does not work in new WordPress version, try the Update: Acima de truque não funciona na nova versão do WordPress, tente o fix undefined function get_currentuserinfo() fatal error correção get_currentuserinfo função indefinida () erro fatal guide instead. guia de vez.
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, produzir muitas vezes imprecisas e de baixa qualidade texto 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: ctype_digit() in WordPress 2.5 Call To Undefined Function: ctype_digit () in WordPress 2.5
- 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 Undefined Função: wp_constrain_dimensions () When Uploading Images ou image_downsize () na Galeria / Media Library em WordPress 2,5
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 PHP Fatal Erro em Chamada a Add_Query_Var em Taxonomy.php após a atualização para WordPress 2,5 RC2
- WordPress 2.5.1 Released for Download WordPress 2.5.1 Liberado para Download
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 Fix WordPress 2.5 Image or Media 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 com Plugin
- WordPress 2.5 Released for Free Download WordPress 2.5 Released for Free Download
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5 Mídia Botões Desabitar Plugue para retirar "adicionar Mídia" Ícones em WordPress 2.5
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Solução para Override WordPress Shortcode and Display the [] Brackets Tags
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin Como a SEO Otimizar WordPress 2.5 Blog Página da Web Título Sem Ótima Título Plugue









































