WordPress Call To Undefined Function get_currentuserinfo() PHP Error WordPress Call To Undefined Function get_currentuserinfo () de PHP error

After uploading, installing and activation some plugins for WordPress blog publishing system, the plug-ins may cause the following PHP error message, logged by Apache web server error_log file or been displayed on web pages which looks like the following line: Després de carregar, la instal lació i l'activació d'alguns plugins per a WordPress sistema de publicació de blocs, els plug-ins pot fer que el missatge d'error següent PHP, registrats pel servidor web Apache error_log arxiu o han estat exhibides a les pàgines web que s'assembla a la següent línia:

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


To make matter worse, these plugins are working fine previously, and suddenly broken down or throwing out the error. Per empitjorar les coses, aquests plugins estan treballant bé amb anterioritat, i de sobte es descompon o llençar l'error. The cause of the issue is due to the reason that get_currentuserinfo() function is defined within pluggable.php of WordPress core. La causa del problema es deu a la raó per la qual get_currentuserinfo () és definida en pluggable.php del nucli de WordPress. The problem is that pluggable.php is only been loaded after all the plugins has been loaded. El problema és que pluggable.php només després d'haver carregat tots els plugins que s'ha carregat. It means that get_currentuserinfo() is not yet available when plugins are triggering and needing the function. Això significa que get_currentuserinfo () no es disposa encara que els plugins són d'activació i necessitat de la funció.

To resolve the fix the “call to undefined get_currentuser() function error, just call pluggable.php prior to calling function the requires it. Per resoldre la revisió de la "crida a la get_currentuser indefinit () la funció d'error, simplement truqueu a pluggable.php abans de cridar a la funció requereix. A little PHP programming skill is required, but for novice, it's not hard to re-code the plugin source code to get the error solved. Una habilitat poc de programació PHP és necessari, però per al principiant, no és difícil tornar a codificar el codi font de plugin per obtenir l'error resolt.

Search for the get_currentuser in the PHP file which the error indicates having problem. Buscar el get_currentuser a l'arxiu PHP que l'error indica problema de tenir. Then copy and paste the following lines before (on top of) the line of get_current_user(). A continuació, copieu i enganxeu les següents línies abans (sobre) la línia de get_current_user ().

require(ABSPATH . WPINC . '/pluggable.php'); requereixen (ABSPATH. WPINC. / pluggable.php ');

Tip: It's also possible substitute require with requice_once so that pluggable.php is unloaded once the get_currentuser() function is executed. Suggeriment: És possible substitut requereixen amb requice_once perquè pluggable.php es descarrega un cop que s'executa el get_currentuser () la funció.

For example, Per exemple,

require (ABSPATH . WPINC . '/pluggable.php');
get_currentuserinfo();

IMPORTANT : The page is machine translated and provided "as is" without warranty. IMPORTANT: La pàgina és una traducció automàtica i proporciona "com és" sense garantia. Machine translation may be difficult to understand. La traducció automàtica pot ser difícil d'entendre. Please refer to Si us plau, vegeu original English article article anglès original whenever possible. sempre que sigui possible.


One Response to “WordPress Call To Undefined Function get_currentuserinfo() PHP Error” Una Resposta a "WordPress Call To Undefined Function get_currentuserinfo () de PHP d'error"

  1. Call to Undefined Function get_currentuserinfo() Error in WordPress » Tip and Trick Crida a la get_currentuserinfo undefined function () Error en WordPress »Punta i Burla
    October 28th, 2009 22:23 28 octubre 2009 22:23
    1 1

    [...] Above trick does not work in new WordPress version, try the fix undefined function get_currentuserinfo() fatal error guide [...] [...] Per sobre de truc no funciona en la versió de WordPress nou, tracti de fixar el indefinit get_currentuserinfo function () Guia d'error greu [...]

Leave a Reply Deixi una contestació

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Vostè pot utilitzar aquestes etiquetes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> l'datetime = ""> <em> <i> <strike> <strong>

Subscribe to comments feature has been disabled. Subscriure's als comentaris ha estat inhabilitat. To receive notification of latest comments posted, subscribe to Per rebre la notificació dels últims comentaris publicats, subscriure's a My Digital Life Comments RSS feed La meva vida digital Comentaris RSS feed or o register to receive registrar-se per rebre new comments in daily email digest. nous comentaris en el resum diari per correu electrònic.
Custom Search

New Articles Nous articles

Incoming Search Terms for the Article Termes de cerca per l'article

Call to undefined function Crida a la funció no definit - -- rss.php call phone trucada telefònica rss.php - -- +wordpress Call to undefined function get_currentuserinfo() + Wordpress Crida a la get_currentuserinfo undefined function () - -- how call function.php wordpress com wordpress function.php anomenada - -- "Call to undefined function" "Crida a la funció no definida" - -- wordpress call in class trucar wordpress a la classe - -- call to undefined function php crida a la funció de PHP no definit - -- Call to undefined function: Crida a la funció definida: - -- Fatal error: Call to undefined function get_currentuserinfo() Fatal error: Call to undefined function get_currentuserinfo () - -- function last comments funció darrers comentaris - -- how to call login functionality in wordpress com trucar a la funcionalitat d'inici de sessió en wordpress - -- php undefined php indefinit - -- pluggable.php wordpress core nucli wordpress pluggable.php - -- y15 Y15 - -- Call to undefined function wordpress register page Crida a la pàgina de registre definit wordpress funció de - -- Fatal error: Call to undefined function on line 157 wordpress Fatal error: Call to undefined function on line 157 wordpress - -- php undefined function but it's there php function undefined però hi és - -- php function call problem php problema de crida a la funció - -- pluggable.php load wordpress wordpress càrrega pluggable.php - -- wordpress Call to undefined function get_currentuserinfo() wordpress Crida a get_currentuserinfo undefined function () - -- fatal error undefined function la funció d'error fatal no definit - -- get_currentuserinfo upload.php problem problema upload.php get_currentuserinfo - -- how to call a php function wordpress com trucar a un wordpress php function - -- wordpress call function funció de trucada de wordpress - -- wordpress functions.php error error functions.php wordpress - --