Call to Undefined Function get_currentuserinfo() Error in WordPress Llamado a la get_currentuserinfo undefined function () Error en WordPress
In WordPress En WordPress blog publishing de publicación 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: , puede haber un error del sistema ha registrado en el servidor web Apache error_log archivo o han sido exhibidas en las páginas web que se parece a la siguiente línea:
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. La función de error no definido get_currentuserinfo normalmente ocurre en un plugin mal codificada. If the user deactivate the plug-in that causes the error, the issue will be fixed, resolved and go away. Si el usuario desactivar el plug-in que hace que el error, el problema se solucionará, resuelto y se van. 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. El error se produce porque userdata $ o variables globales $ user_id ser nulo, no se define o de valor vacío después de que el plugin está iniciado, incluido, conectado y cargado.
The User ID and User Data (which User ID is part of) is globally-available var when in the WordPress admin pages. El ID de usuario y datos de usuario (ID de usuario que es parte de) es globalmente-var disponible cuando en la página de administración de 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 y fijar el get_currentuserinfo indefinido () error de función, reset y el alcance de la variable a nivel mundial en el complemento antes del comienzo de la función que llamar a 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 establecer $ userdata o $ vars user_id de alcance mundial, en una de añadir la siguiente línea en el principio del archivo PHP plugin:
$userdata = $GLOBALS['userdata']; $ GLOBALS = $ userdata [ 'userdata'];
or, o,
global $userdata; global $ userdata;
For user id, use “global $user_id;” instead. Para identificación de usuario, el uso de "global $ user_id," en su lugar.
Update: Above trick does not work in new WordPress version, try the Actualización: Por encima de truco no funciona en la nueva versión de WordPress, pruebe la fix undefined function get_currentuserinfo() fatal error fijar get_currentuserinfo undefined function () error grave guide instead. guía en su lugar.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. IMPORTANTE: Usted está leyendo una máquina traducido la página que se proporciona "como está" sin garantía. 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. A diferencia de la traducción humana, la traducción automática no entiende la gramática, semántica, sintaxis, modismos del lenguaje natural, con lo que producen a menudo inexactos y baja calidad de texto que es engañosa e incomprensible. Thus, please refer to Por lo tanto, por favor vaya a original English article artículo original Inglés when in doubt. en caso de duda.
Related Articles Artículos relacionados
- Call To Undefined Function: ctype_digit() in WordPress 2.5 Llamada a la función Undefined variable: ctype_digit () en WordPress 2.5
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5 Llamada a la función Undefined variable: wp_constrain_dimensions () Imágenes para cargar o image_downsize () en Galería / Medios Biblioteca en 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 en llamada a Add_Query_Var en Taxonomy.php después de actualizar a WordPress 2.5 RC2
- WordPress 2.5.1 Released for Download WordPress 2.5.1 Disparador por Download
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 Fix WordPress 2.5 Imagen o Flash Media Uploader No. No funciona en Internet Explorer 7
- Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin Disable WordPress 2.5 Flash Image / Video / Media Uploader con el plugin
- WordPress 2.5 Released for Free Download WordPress 2.5 Disparador gratis Download
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5 Media Botones Disabler Plugin para Eliminar "Add Media" Iconos en WordPress 2.5
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Solución a Override WordPress Deficiencia y Pantalla el [] Brackets Tags
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin ¿Cómo a SEO Optimizar WordPress 2.5 Blog Página Web Título Sin título óptimo Plugin









































