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.
Related Articles Articles relacionats
- Fix Call to Undefined Function read_global() Error in Google AdSense Mobile Content PHP Ad Code Fix Crida a Indefinit Funció read_global () Error en AdSense de Google Mobile Content PHP el codi d'anuncis
- Fix Fatal Error Call to Function get_link() on Non-Object in WordPress 2.8 Dashboard with Technorati Incoming Links RSS Fix Error Fatal get_link Crida a la funció () en no-objecte en WordPress 2.8 Dashboard amb Technorati Incoming Links RSS
- gmmktime Error in WordPress and MagpieRSS Error gmmktime a WordPress i MagpieRSS
- How to Customize, Modify or Change WordPress Database Connection Error Page Com personalitzar, modificar o canviar la connexió de base de dades de WordPress pàgina d'error
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL SQL Query Error en la classe wpdb
- Must Have WordPress Plugins Must Have WordPress Plugins
- The Call to DllRegisterServer Failed with Error Code 0×80004005 on Windows Vista La crida a la DllRegisterServer va fallar amb codi d'error 0 × 80.004.005 en Windows Vista
- Integrate WordPress including Comments with bbPress Forum using bbSync Integrar WordPress fins i tot comentaris amb bbPress Fòrum utilitzant bbSync
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin Columna 3 Relaxació WordPress Tema comentaris-paged.php per paginat-Comentaris WordPress Plugin
- Disable WordPress 2.3 Core and Plugins Update Check and Notification Disable WordPress 2/3 Core and Connectors Update Check i notificació










































October 28th, 2009 22:23 28 octubre 2009 22:23
[...] 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 [...]