WordPress Call To Undefined Function get_currentuserinfo() PHP Error Tumawag sa WordPress Upang Undefined Function get_currentuserinfo () PHP Error
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: Matapos mag-upload, i-install at activation ilang mga plugins para sa WordPress blog-publish na sistema, ang mga plug-ins maaaring maging sanhi ng mga sumusunod na PHP mensahe ng error, naka-log sa pamamagitan ng Apache web server error_log file o ay ipinapakita sa mga pahina ng web na kung saan tila ang mga sumusunod na linya:
Fatal error: Call to undefined function: get_currentuserinfo() in /wordpress/wp-content/plugins/plugin.php Fatal error: Tawag sa malabo function: get_currentuserinfo () in / wordpress / content-WP / plugins / plugin.php
To make matter worse, these plugins are working fine previously, and suddenly broken down or throwing out the error. Upang gumawa ng bagay na mas masahol pa, ang mga ito plugin ay gumawa pagmultahin dati, at biglang nasira down o masusuka ang mga error. The cause of the issue is due to the reason that get_currentuserinfo() function is defined within pluggable.php of WordPress core. Ang sanhi ng isyu ay dahil sa ang dahilan na get_currentuserinfo () function ay tinukoy sa loob ng pluggable.php ng WordPress core. The problem is that pluggable.php is only been loaded after all the plugins has been loaded. Ang problema ay na pluggable.php lamang ay puno na matapos ang lahat ng mga plugins ay na-load. It means that get_currentuserinfo() is not yet available when plugins are triggering and needing the function. Ibig sabihin nito na get_currentuserinfo () ay hindi pa magagamit kapag plugin ay naghuhudyat at nangangailangan ng function.
To resolve the fix the “call to undefined get_currentuser() function error, just call pluggable.php prior to calling function the requires it. Upang malutas ang ayusin ang "ang tawag sa hindi tiyak get_currentuser () function error, tumawag lamang pluggable.php bago pagtawag ang function ay nangangailangan nito. 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. Ang isang maliit na PHP programming kasanayan ay kailangan, ngunit para sa mga baguhan, ito ay hindi mahirap na muli ang code plugin source code para makuha ang error na lutasin.
Search for the get_currentuser in the PHP file which the error indicates having problem. Search para sa get_currentuser sa PHP file na kung saan ang error ay nagpapahiwatig ng pagkakaroon ng problema. Then copy and paste the following lines before (on top of) the line of get_current_user(). Pagkatapos, kopyahin at idikit ang mga sumusunod na linya sa harap (sa itaas) sa linya ng get_current_user ().
require(ABSPATH . WPINC . '/pluggable.php'); nangangailangan (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. Tip: Posible din nangangailangan ng kapalit sa requice_once kaya pluggable.php na diskargado sa sandaling ang get_currentuser () function ay naisakatuparan.
For example, Halimbawa, ang
require (ABSPATH . WPINC . '/pluggable.php');
get_currentuserinfo();
IMPORTANT : The page is machine translated and provided "as is" without warranty. MAHALAGA: Ang pahina ng makina ay isinalin at ibinigay "bilang ganito" walang warranty. Machine translation may be difficult to understand. Machine pagsasalin ay maaaring mahirap maintindihan. Please refer to Mangyaring sumangguni sa original English article orihinal na Ingles na artikulo whenever possible. hangga't maaari.
Related Articles Mga Kaugnay na Akda
- Fix Fatal Error Call to Function get_link() on Non-Object in WordPress 2.8 Dashboard with Technorati Incoming Links RSS Ayusin ang Fatal Error Tawag sa Function get_link () sa Non-Object sa WordPress 2.8 Dashboard sa Technorati Incoming Links RSS
- gmmktime Error in WordPress and MagpieRSS gmmktime Error sa WordPress at MagpieRSS
- How to Customize, Modify or Change WordPress Database Connection Error Page Paano Customize, Baguhin o Palitan WordPress Database Connection Error Page
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL SQL Query Error sa WPDB Klase
- The Call to DllRegisterServer Failed with Error Code 0×80004005 on Windows Vista Ang Tawag sa DllRegisterServer Bigo sa Error Code 0 × 80,004,005 sa Windows Vista
- Must Have WordPress Plugins Kailangan ba WordPress Plugins
- Integrate WordPress including Comments with bbPress Forum using bbSync Integrate WordPress kabilang ang mga Komento sa bbPress Forum gamit ang bbSync
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 Haligi pagpapalubay WordPress Theme comments-paged.php para sa Paged-ukol ng puna WordPress Plugin
- Disable WordPress 2.3 Core and Plugins Update Check and Notification Huwag paganahin ang WordPress 2.3 Core at Plugins I-update ang Suriin at Pagbibigay-alam
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating o Split WordPress Post o pahina sa NextPage sa WordPress Hindi Paggawa










































October 28th, 2009 22:23 Oktubre 28, 2009 22:23
[...] Above trick does not work in new WordPress version, try the fix undefined function get_currentuserinfo() fatal error guide [...] [...] Lansihin itaas ay hindi gumagana sa bagong bersyon ng WordPress, subukan ang ayusin malabo get_currentuserinfo function () mortal error gabay sa [...]