Call to Undefined Function get_currentuserinfo() Error in WordPress Gọi đến get_currentuserinfo Chức năng Undefined () Lỗi trong WordPress

In WordPress Trong WordPress blog publishing blog xuất bản 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: lỗi hệ thống, có thể có được đăng nhập vào máy chủ web Apache error_log file hoặc được hiển thị trên các trang web trông giống như dòng sau:

Fatal error: Call to undefined function: get_currentuserinfo() in /wordpress/wp-content/plugins/plugin.php Fatal error: Call to undefined function: get_currentuserinfo () trong wordpress / / wp-content / plugins / plugin.php


The undefined get_currentuserinfo function error normally happens in a poorly coded plugin. Các chức năng undefined get_currentuserinfo lỗi thường xảy ra tại một plugin kém mã hoá. If the user deactivate the plug-in that causes the error, the issue will be fixed, resolved and go away. Nếu người dùng tắt plug-in là nguyên nhân gây lỗi, vấn đề này sẽ được cố định, giải quyết và biến mất. 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ỗi này xảy ra vì $ userdata hoặc $ user_id biến toàn cầu trở thành null, không được xác định hoặc giá trị sản phẩm nào sau khi plugin được khởi xướng, bao gồm, nối và nạp.

The User ID and User Data (which User ID is part of) is globally-available var when in the WordPress admin pages. ID người dùng và sử dụng dữ liệu (có User ID là một phần của) là trên toàn cầu-sẵn var khi trong các trang: 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(). Để giải quyết và sửa chữa lỗi get_currentuserinfo undefined chức năng (), đặt lại và phạm vi biến đến toàn cầu trong plugin trước khi bắt đầu của chức năng đó gọi 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: Để thiết lập $ userdata hoặc vars $ user_id đến phạm vi toàn cầu, thêm vào một trong những dòng sau vào phần đầu của tập tin PHP plugin:

$userdata = $GLOBALS['userdata']; $ userdata = $ GLOBALS [ 'userdata'];

or, hoặc,

global $userdata; global $ userdata;

For user id, use “global $user_id;” instead. Đối với người dùng id, sử dụng "global $ user_id;" để thay thế.

Update: Above trick does not work in new WordPress version, try the Cập nhật: Trên trick không làm việc trong phiên bản WordPress mới, hãy thử fix undefined function get_currentuserinfo() fatal error sửa chữa get_currentuserinfo chức năng undefined () gây tử vong lỗi guide instead. hướng dẫn để thay thế.

IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. Quan trọng: Bạn đang đọc một máy dịch trang mà là cung cấp "như là" không có bảo hành. 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. Không giống như các bản dịch của con người, máy phiên dịch không hiểu được ngữ pháp, ngữ nghĩa, cú pháp, thành ngữ của ngôn ngữ tự nhiên, do đó thường không chính xác và sản xuất thấp, chất lượng văn bản đó là sai lầm và không thể hiểu được. Thus, please refer to Vì vậy, xin tham khảo original English article bản gốc tiếng Anh bài viết when in doubt. khi nghi ngờ.



Leave a Reply Để lại một trả lời

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> Bạn có thể sử dụng các thẻ: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q <strike> <strong>

Subscribe to comments feature has been disabled. Thuê bao với ý kiến đều đã bị vô hiệu hoá. To receive notification of latest comments posted, subscribe to Để nhận được thông báo mới nhất đăng ý kiến, đăng ký với Tip and Trick Comments RSS feed Mẹo và Trick Comments RSS feed or hoặc register to receive đăng ký để nhận được new comments in daily email digest. Các ý kiến mới trong email tiêu hàng ngày.
Custom Search

Incoming Search Terms for the Article Tìm đến các Điều khoản Điều

Call to undefined function get_currentuserinfo() Gọi đến get_currentuserinfo chức năng undefined () - -- get_currentuserinfo get_currentuserinfo - -- Fatal error: Call to undefined function get_currentuserinfo() Fatal error: Call to undefined get_currentuserinfo chức năng () - -- wordpress get_currentuserinfo wordpress get_currentuserinfo - -- get_currentuserinfo() get_currentuserinfo () - -- Call to undefined function get_currentuserinfo() Gọi đến get_currentuserinfo chức năng undefined () - -- Call to undefined function get_currentuserinfo Gọi đến get_currentuserinfo chức năng undefined - -- get_currentuserinfo wordpress get_currentuserinfo wordpress - -- Call to undefined function wordpress Gọi đến wordpress chức năng undefined - -- Call to undefined function: get_currentuserinfo() Gọi đến chức năng undefined: get_currentuserinfo () - -- "Call to undefined function get_currentuserinfo()" "Gọi đến get_currentuserinfo chức năng undefined ()" - -- undefined function get_currentuserinfo undefined chức năng get_currentuserinfo - -- wordpress get_currentuserinfo() wordpress get_currentuserinfo () - -- Fatal error: Call to undefined function get_currentuserinfo() in Fatal error: Call to undefined get_currentuserinfo chức năng () trong - -- error lỗi - -- Fatal error: Call to undefined function get_currentuserinfo() Fatal error: Call to undefined get_currentuserinfo chức năng () - -- get_currentuserinfo(); get_currentuserinfo (); - -- undefined function get_currentuserinfo() undefined chức năng get_currentuserinfo () - -- wordpress Fatal error: Call to undefined function wordpress Fatal error: Gọi đến chức năng undefined - -- wordpress undefined function wordpress chức năng undefined - -- call function error gọi hàm lỗi - -- wordpress Fatal error: Call to undefined function get_currentuserinfo() wordpress Fatal error: Call to undefined get_currentuserinfo chức năng () - -- "Call to undefined function get_currentuserinfo" "Gọi đến get_currentuserinfo chức năng không xác định" - -- wordpress Call to undefined function get_currentuserinfo() wordpress Gọi đến get_currentuserinfo chức năng undefined () - -- wordpress call plugin function wordpress gọi chức năng plugin - -- wordpress get_currentuserinfo(); wordpress get_currentuserinfo (); - -- wordpress 2.5 get_currentuserinfo() wordpress 2,5 get_currentuserinfo () - -- get_currentuserinfo() get_currentuserinfo () - -- Fatal error: Call to undefined function get_currentuserinfo Fatal error: Call to get_currentuserinfo chức năng undefined - -- wordpress Call to undefined function get_currentuserinfo( wordpress Gọi đến get_currentuserinfo chức năng undefined ( - -- get_currentuserinfo() wordpress get_currentuserinfo () wordpress - -- Call to undefined function: get_currentuserinfo() Gọi đến chức năng undefined: get_currentuserinfo () - -- Call to undefined function get_currentuserinfo() wordpress Gọi đến get_currentuserinfo chức năng undefined () wordpress - -- get_currentuserinfo plugin get_currentuserinfo plugin - -- demonoid Demonoid - -- wordpress get_currentuserinfo undefined function wordpress get_currentuserinfo chức năng undefined - -- get_currentuserinfo undefined get_currentuserinfo undefined - -- wordpress $get_currentuserinfo() undefined function wordpress $ get_currentuserinfo () undefined chức năng - -- "undefined function get_currentuserinfo()" "undefined chức năng get_currentuserinfo ()" - -- "Fatal error: Call to undefined function get_currentuserinfo()" "Fatal error: Call to undefined get_currentuserinfo chức năng ()" - -- wordpress get_currentuserinfo undefined wordpress get_currentuserinfo undefined - -- Call to undefined function get_currentuserinfo() in Gọi đến get_currentuserinfo chức năng undefined () trong - -- get_currentuserinfo wordpress 2.7 get_currentuserinfo wordpress 2,7 - -- how to call plugin function from wordpress page làm thế nào để gọi chức năng plugin từ trang wordpress - -- wordpress get_currentuserinfo() undefined wordpress get_currentuserinfo () undefined - -- php get_currentuserinfo() php get_currentuserinfo () - -- get_currentuserinfo not working get_currentuserinfo không làm việc - -- wordpress create plugin get_currentuserinfo wordpress tạo get_currentuserinfo plugin - -- error get_currentuserinfo() lỗi get_currentuserinfo () - -- wordpress get_currentuserinfo() refresh wordpress get_currentuserinfo () làm mới - --