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. كلما كان ذلك ممكنا.


One Response to “WordPress Call To Undefined Function get_currentuserinfo() PHP Error” واحد ردا على "وورد نداء الى وظيفة غير معرف get_currentuserinfo () [فب] خطأ"

  1. Call to Undefined Function get_currentuserinfo() Error in WordPress » Tip and Trick دعوة إلى ظيفة غير معرف get_currentuserinfo () ورد خطأ في »نصيحة والخديعة
    October 28th, 2009 22:23 October 28th ، 2009 22:23
    1 1

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

Leave a Reply ترك الرد

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> يمكنك استخدام هذه العلامات : <ahref=""title=""> <abbrtitle=""> <acronymtitle=""> <b><blockquote<cite><code><دل التاريخ والوقت = "">> <i><qcite=""><strike><strong>

Subscribe to comments feature has been disabled. الاشتراك في تعليقات تم تعطيل هذه الميزة. To receive notification of latest comments posted, subscribe to لاستلام إشعار آخر التعليقات المنشورة ، والاشتراك في My Digital Life Comments RSS feed بلادي الرقمي الحياة التعليقات آر إس إس or أو register to receive سجل للاستقبال new comments in daily email digest. تعليقات جديدة في البريد الإلكتروني يوميا هضم.
Custom Search

New Articles مقالات جديدة

Incoming Search Terms for the Article البحث عن الشروط الواردة في المادة