Title: Call to undefined function get_plugin_data()
Last modified: August 30, 2016

---

# Call to undefined function get_plugin_data()

 *  Resolved [xnite](https://wordpress.org/support/users/xnite/)
 * (@xnite)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_plugin_data-2/)
 * After updating this plugin I started getting the following error
    `PHP Fatal 
   error: Call to undefined function get_plugin_data() in htdocs/wp-content/plugins/
   uptime-robot-monitor/uptime-robot-nh.php on line 16`
 * [https://wordpress.org/plugins/uptime-robot-monitor/](https://wordpress.org/plugins/uptime-robot-monitor/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Aphotrax](https://wordpress.org/support/users/vlijmen/)
 * (@vlijmen)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_plugin_data-2/#post-6708324)
 * Hi,
 * Sorry to hear that, is this still with version 1.7.7.1 or did you update to 1.7.7?
 * Hope to hear from you,
 * Regards,
    Niels
 *  Thread Starter [xnite](https://wordpress.org/support/users/xnite/)
 * (@xnite)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_plugin_data-2/#post-6708342)
 * 1.7.7.1
 *  Plugin Author [Aphotrax](https://wordpress.org/support/users/vlijmen/)
 * (@vlijmen)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_plugin_data-2/#post-6708353)
 * That is strange, it seems that the other users that ran into this don’t have 
   the issue in 1.7.7.1 anymore. Could you give me Your website link, and wp version
   so I can look into it.
 * Niels
 *  Thread Starter [xnite](https://wordpress.org/support/users/xnite/)
 * (@xnite)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_plugin_data-2/#post-6708355)
 * Well, for now what I have done was just modify the variable to return a blank
   string and commented out the previous line. I couldn’t just disable the plugin,
   or leave the wp-admin area broken, so, kind of put a bandaid over it lol.
 *     ```
       /*$plugin_data = get_plugin_data( __FILE__ );*/
       $plugin_data = '';
       ```
   
 * but site is [http://www.AltSociety.co](http://www.AltSociety.co) wp version 4.3.1
 *  Thread Starter [xnite](https://wordpress.org/support/users/xnite/)
 * (@xnite)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_plugin_data-2/#post-6708359)
 * followup: leaving $plugin_data as blank just makes options reset to default when
   I save them. So if I put the word ‘bandaid’ into the variable it seems to function
   fine. 😐
 *  Plugin Author [Aphotrax](https://wordpress.org/support/users/vlijmen/)
 * (@vlijmen)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_plugin_data-2/#post-6708426)
 * Hi xnite,
 * I just double checked the fix from this morning and it should be ok now. As you
   can see on the other two reports in this support forum it solved the problem 
   for them aswell. Changing the plugin_data to a empty or incorrect value is not
   a solution. This value is needed to be able to give propper update commands.
 * There reason it went wrong is because I accidentaly requested it from the frontend,
   and ofcourse this is not possible. So the best fix is to only requested in on
   the admin side as it was intented to.
 * Sure that 1.7.7.1 did not fix it for you?
 *  Plugin Author [Aphotrax](https://wordpress.org/support/users/vlijmen/)
 * (@vlijmen)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_plugin_data-2/#post-6708558)
 * Sorry for the caused inconvinience, could you please try the updated I just pushed.
   Version number 1.7.7.2 should hopefully finally fix the issue. I reverted back
   to the old way.
 * Please let me know if it’s oké after updating.
 * Regards,
    Niels
 *  Plugin Author [Aphotrax](https://wordpress.org/support/users/vlijmen/)
 * (@vlijmen)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_plugin_data-2/#post-6708665)
 * I assume this issue is resolved. Topic closed

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Call to undefined function get_plugin_data()’ is closed to new replies.

 * ![](https://ps.w.org/uptime-robot-monitor/assets/icon-128x128.png?rev=1499382)
 * [Uptime Robot Plugin for Wordpress](https://wordpress.org/plugins/uptime-robot-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/uptime-robot-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/uptime-robot-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/uptime-robot-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/uptime-robot-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/uptime-robot-monitor/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Aphotrax](https://wordpress.org/support/users/vlijmen/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_plugin_data-2/#post-6708665)
 * Status: resolved