WordPress Call To Undefined Function get_currentuserinfo() PHP Error وورد نداء الى وظيفة غير معرف get_currentuserinfo () [فب] خطأ
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: بعد تحميل وتركيب وتفعيل بعض الإضافات لورد نظام بلوق النشر ، والوظائف الإضافية قد يتسبب رسالة الخطأ التالية [فب] ، تم تسجيلها من قبل خادم الويب اباتشي error_log الملف أو تم عرضه على صفحات الويب التي تبدو السطر التالي :
Fatal error: Call to undefined function: get_currentuserinfo() in /wordpress/wp-content/plugins/plugin.php خطأ فادح : الدعوة إلى وظيفة غير معروف : get_currentuserinfo () في / وورد / الفسفور الابيض بين محتوى / المحمول / plugin.php
To make matter worse, these plugins are working fine previously, and suddenly broken down or throwing out the error. لجعل الأمر أكثر سوءا ، وهذه الإضافات التي تعمل بشكل جيد في السابق ، وفجأة انهار أو ضاربا عرض الحائط الخطأ. The cause of the issue is due to the reason that get_currentuserinfo() function is defined within pluggable.php of WordPress core. وسبب المشكلة يعود الى السبب الذي get_currentuserinfo () وظيفة يتم تعريفها داخل pluggable.php لورد الأساسية. The problem is that pluggable.php is only been loaded after all the plugins has been loaded. المشكلة هي أن pluggable.php فقط تم تحميلها بعد كل هذه الإضافات قد تم تحميلها. It means that get_currentuserinfo() is not yet available when plugins are triggering and needing the function. وهو ما يعني أن get_currentuserinfo () ليست متاحة بعد عندما يتم إحداث والإضافات التي تحتاج إلى وظيفة.
To resolve the fix the “call to undefined get_currentuser() function error, just call pluggable.php prior to calling function the requires it. لحل إصلاح "دعوة الى get_currentuser غير معروف () وظيفة خطأ ، مجرد دعوة pluggable.php قبل أن استدعاء الدالة يتطلب ذلك. 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. وهناك القليل [فب] البرمجة المهارة المطلوب ، ولكن لمبتدئ ، فإنه ليس من الصعب إعادة رمز البرنامج المساعد شفرة المصدر للحصول على خطأ حلها.
Search for the get_currentuser in the PHP file which the error indicates having problem. البحث عن get_currentuser في الملف [فب] الخطأ الذي يشير إلى وجود مشكلة. Then copy and paste the following lines before (on top of) the line of get_current_user(). ثم نسخ ولصق الأسطر التالية من قبل (على رأس) خط get_current_user ().
require(ABSPATH . WPINC . '/pluggable.php'); تتطلب (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. نصيحة : ومن الممكن أيضا بديلا تتطلب requice_once مع pluggable.php بحيث يتم تفريغها بمجرد get_currentuser () وظيفة يتم تنفيذه.
For example, على سبيل المثال ،
require (ABSPATH . WPINC . '/pluggable.php');
get_currentuserinfo();
IMPORTANT : The page is machine translated and provided "as is" without warranty. هام : الصفحة هو آلة تترجم وتقدم "كما هي" دون ضمان. Machine translation may be difficult to understand. الترجمة الآلية قد يكون من الصعب فهم. Please refer to يرجى الرجوع إلى original English article المادة الانكليزية الأصلية whenever possible. كلما كان ذلك ممكنا.
Related Articles مواد متصلة
- Fix Fatal Error Call to Function get_link() on Non-Object in WordPress 2.8 Dashboard with Technorati Incoming Links RSS تصحيح خطأ فادح لاستدعاء الدالة get_link () المعنية بالمنظمات غير كائن في لوحة القيادة مع وورد 2.8 ستثمبليوبون الوافد صلات آر إس إس
- gmmktime Error in WordPress and MagpieRSS ورد خطأ في gmmktime وMagpieRSS
- How to Customize, Modify or Change WordPress Database Connection Error Page كيفية تخصيص أو تعديل أو تغيير اتصال قاعدة بيانات وورد خطأ في الصفحة
- WordPress MySQL SQL Query Error in WPDB Class ورد ماي امر استعلام خطأ في الدرجة WPDB
- The Call to DllRegisterServer Failed with Error Code 0×80004005 on Windows Vista نداء إلى دلرجسترسرفر فشل مع رمز الخطأ 0 × 80004005 على ويندوز فيستا
- Must Have WordPress Plugins يجب أن يكون ورد الإضافات
- Integrate WordPress including Comments with bbPress Forum using bbSync ورد بما في ذلك دمج تعليقات مع المنتدى bbPress باستخدام bbSync
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 العمود الاسترخاء وورد موضوع تعليقات - paged.php لترحيلها ، تعليقات وورد البرنامج المساعد
- Disable WordPress 2.3 Core and Plugins Update Check and Notification تعطيل وورد 2.3 الأساسية والإضافات تحديث التحقق والاخطار
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working ترقيم صفحات أو سبليت ورد مفردة أو مع NextPage في صفحة وورد وليس العامل










































October 28th, 2009 22:23 October 28th ، 2009 22:23
[...] Above trick does not work in new WordPress version, try the fix undefined function get_currentuserinfo() fatal error guide [...] [...]أعلاه خدعة لا يعمل في الإصدار الجديد وورد ، في محاولة للإصلاح وظيفة غير معروف get_currentuserinfo () خطأ فادح دليل [...]