Call to Undefined Function get_currentuserinfo() Error in WordPress הסב get_currentuserinfo תפקיד מוגדר () שגיאה ב-WordPress
In WordPress ב-WordPress 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: , ייתכן שיש שגיאה במערכת היה מחובר שרת האינטרנט Apache error_log קובץ או הוצגו בדפי האינטרנט שבו נראה את השורה הבאה:
Fatal error: Call to undefined function: get_currentuserinfo() in /wordpress/wp-content/plugins/plugin.php שגיאה חמורה: הסב תפקיד מוגדר: get_currentuserinfo () in / wp-WordPress תוכן / plugins / plugin.php
The undefined get_currentuserinfo function error normally happens in a poorly coded plugin. השגיאה מוגדר בפונקציה get_currentuserinfo בדרך כלל קורה תוסף מקודד גרוע. If the user deactivate the plug-in that causes the error, the issue will be fixed, resolved and go away. אם המשתמש לבטל את התוספת שגורמת שגיאה, הבעיה תהיה קבועה, נפתרה וללכת. 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. טעות קורה בגלל userdata $ או $ user_id משתנים הגלובלי להפוך בטלה, לא מוגדר או ערך ריק לאחר תוסף הוא יזם, כלל, מכור והעמסנו.
The User ID and User Data (which User ID is part of) is globally-available var when in the WordPress admin pages. מזהה משתמש משתמש נתונים (אשר משתמש הוא חלק) הוא גלובלי-var זמין כאשר בעמודים WordPress admin. 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(). כדי לפתור ולתקן את get_currentuserinfo מוגדר () function שגיאה, לאפס והיקף המשתנה כדי עולמית תוסף לפני תחילת הפונקציה אשר קוראת 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: כדי להגדיר $ userdata או vars $ user_id להיקף הגלובלית, באחת להוסיף את השורה הבאה לתחילת הקובץ PHP plugin:
$userdata = $GLOBALS['userdata']; $ GLOBALS = $ userdata [ 'userdata'];
or, או,
global $userdata; global $ userdata;
For user id, use “global $user_id;” instead. תעודת הזהות של המשתמש, השתמש "הגלובלי $ user_id;" במקום.
Update: Above trick does not work in new WordPress version, try the עדכון: מעל הטריק לא עובד בגירסה וורדפרס חדש, נסה את fix undefined function get_currentuserinfo() fatal error לתקן get_currentuserinfo תפקיד מוגדר () שגיאה קטלנית guide instead. המדריך במקום.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. חשוב: אתה קורא מכונת תירגם דף שבו מתפרסם "כמות שהוא" ללא אחריות. 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. בניגוד תרגום אנושי, תרגום מכונה אינו מבין את הדקדוק, סמנטיקה, תחביר, ניבים של שפה טבעית, ולכן לעיתים קרובות לייצר מדויק נמוך טקסט איכות אשר מטעה ולא מובן. Thus, please refer to לכן, אנא פנה אל original English article המאמר המקורי באנגלית when in doubt. כאשר יש ספק.
Related Articles מאמרים קשורים
- Call To Undefined Function: ctype_digit() in WordPress 2.5 הסב תפקיד מוגדר: ctype_digit () ב-WordPress 2.5
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5 הסב תפקיד מוגדר: wp_constrain_dimensions () או העלאת תמונות כאשר image_downsize () ב גלריה / ספריית המדיה ב-WordPress 2.5
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 PHP שגיאה חמורה על הסב Add_Query_Var ב Taxonomy.php לאחר שדרוג ל-WordPress 2.5 RC2
- WordPress 2.5.1 Released for Download וורדפרס 2.5.1 שוחרר להורדה
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 תקן וורדפרס 2.5 תמונה או מדיה פלאש Uploader גליון Not working in IE7
- Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin השבת וורדפרס 2.5 תמונה פלאש / וידאו / מדיה Uploader עם תוסף
- WordPress 2.5 Released for Free Download וורדפרס 2.5 שוחרר עבור הורדה חינם
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5 כפתורי מדיה Disabler להסיר תוסף "הוסף מדיה" איקונים ב-WordPress 2.5
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags לעקיפת הבעיה כדי לעקוף וורדפרס Shortcode ולהציג את [תגיות מדרגות]
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin כיצד SEO אופטימיזציה של וורדפרס 2.5 הבלוג של דף אינטרנט ללא כותרת אופטימלית כותר Plugin









































