Title: Plugin causes a PHP warning
Last modified: March 27, 2020

---

# Plugin causes a PHP warning

 *  [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-causes-a-php-warning/)
 * The function `get_upgrade_url()` in `staff-directory-plugin.settings.page.class.
   php` has this line:
 * `$file_data = get_file_data('/some/real/path/to/your/plugin', array('Version'),'
   plugin');`
 * The fake path in the function call causes three warnings from PHP. The `$file_data`
   variable is not used, so please remove the line so that the warnings go away.

The topic ‘Plugin causes a PHP warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/staff-directory-pro_ffffff.svg)
 * [Staff Directory Plugin: Company Directory](https://wordpress.org/plugins/staff-directory-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/staff-directory-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/staff-directory-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/staff-directory-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/staff-directory-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/staff-directory-pro/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-causes-a-php-warning/)
 * Status: not resolved