Call to Undefined Function get_currentuserinfo() Error in WordPress Get_currentuserinfo chiamata a funzione non definita () Errore in WordPress
In WordPress In Wordpress blog publishing blog publishing 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: di errore, potrebbe essere stato registrato nel sistema di server web Apache error_log file o stati visualizzati sulle pagine web che sia simile alla seguente:
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. L'errore undefined funzione get_currentuserinfo avviene normalmente in un plugin poco codificato. If the user deactivate the plug-in that causes the error, the issue will be fixed, resolved and go away. Se l'utente disattivare il plug-in che causa l'errore, il problema verrà risolto, risolto e andare via. 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. L'errore si verifica perché userdata $ o $ user_id variabili globali diventano nulle, non definiti o di valore vuoto dopo che il plugin è avviato, incluso, collegato e caricato.
The User ID and User Data (which User ID is part of) is globally-available var when in the WordPress admin pages. User ID e dati utente (User ID, che fa parte) è globalmente var disponibile quando nelle pagine 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(). Per risolvere e risolvere il get_currentuserinfo undefined () la funzione di errore, ripristinare e campo di applicazione della variabile a livello mondiale nel plugin prima dell'inizio della funzione che chiama 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: Per impostare $ userdata o vars $ user_id di portata globale, aggiungere in una delle seguente riga nella parte iniziale del file PHP plugin:
$userdata = $GLOBALS['userdata']; $ userdata = $ GLOBALS [ 'userdata'];
or, o,
global $userdata; global $ userdata;
For user id, use “global $user_id;” instead. Per id utente, utilizzare "global $ user_id;" invece.
Update: Above trick does not work in new WordPress version, try the Update: Sopra trucco non funziona nella versione di Wordpress nuova, provare il fix undefined function get_currentuserinfo() fatal error fix get_currentuserinfo undefined function () errore irreversibile guide instead. guida invece.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. IMPORTANTE: State leggendo una macchina tradotto pagina che è fornito "così com'è" senza alcuna garanzia. 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 differenza di traduzione umana, traduzione automatica non capisce la grammatica, la semantica, la sintassi, idiomi del linguaggio naturale, così spesso inesatte produrre e di bassa qualità testo che è fuorviante e incomprensibile. Thus, please refer to Pertanto, si prega di fare riferimento alla original English article L'articolo originale inglese when in doubt. in caso di dubbio.
Related Articles Articoli correlati
- 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 Call to undefined function: wp_constrain_dimensions () durante il caricamento di immagini o image_downsize () in Galleria / Media Library in 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 sulla chiamata a Add_Query_Var in Taxonomy.php dopo l'aggiornamento a WordPress 2.5 RC2
- WordPress 2.5.1 Released for Download WordPress 2.5.1 Rilascio poich, Scaricare
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 Fix WordPress 2.5 Immagine o Media Flash Uploader Questione non di lavoro in IE7
- Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin Disable WordPress 2.5 Flash Image / Video / Media Uploader con 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 Media Buttons Disabler plugin per rimuovere "Aggiungi media" Icone in WordPress 2.5
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Soluzione per Override WordPress shortcode e Mostrare il [] Supporti Tags
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin How to SEO Optimize WordPress 2.5 Blog Web Page Title Senza Titolo Optimal Plugin









































