Title: Error: Call to undefined function get_plugin_data()
Last modified: September 28, 2022

---

# Error: Call to undefined function get_plugin_data()

 *  [zuperuser](https://wordpress.org/support/users/zuperuser/)
 * (@zuperuser)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/error-call-to-undefined-function-get_plugin_data/)
 * Hi,
 * Since updating the plugin I get an error my website (and admin) goes blanc.
 * I commented line 38 (‘version’ => get_plugin_data( __FILE__ )[‘Version’],) and
   the error dissapeared.
 * Fatal error: Uncaught Error: Call to undefined function get_plugin_data() in /
   data/sites/web/domainnamecom/subsites/staging.domain.be/site/wp-content/plugins/
   acf-city-selector/ACF_City_Selector.php:38 Stack trace: #0 /data/sites/web/domainnamecom/
   subsites/staging.domain.be/site/wp-content/plugins/acf-city-selector/ACF_City_Selector.
   php(417): ACF_City_Selector->__construct() #1 /data/sites/web/domainnamecom/subsites/
   staging.domain.be/site/wp-settings.php(428): include_once(‘/data/sites/web…’)#
   2 /data/sites/web/domainnamecom/subsites/staging.domain.be/site/wp-config.php(
   101): require_once(‘/data/sites/web…’) #3 /data/sites/web/domainnamecom/subsites/
   staging.domain.be/site/wp-load.php(50): require_once(‘/data/sites/web…’) #4 /
   data/sites/web/domainnamecom/subsites/staging.domain.be/site/wp-blog-header.php(
   13): require_once(‘/data/sites/web…’) #5 /data/sites/web/domainnamecom/subsites/
   staging.domain.be/index.php(17): require(‘/data/sites/web…’) #6 {main} thrown
   in /data/sites/web/domainnamecom/subsites/staging.domain.be/site/wp-content/plugins/
   acf-city-selector/ACF_City_Selector.php on line 38

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

 * ![](https://ps.w.org/acf-city-selector/assets/icon-256x256.png?rev=2445741)
 * [ACF City Selector](https://wordpress.org/plugins/acf-city-selector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-city-selector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-city-selector/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-city-selector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-city-selector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-city-selector/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [zuperuser](https://wordpress.org/support/users/zuperuser/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/error-call-to-undefined-function-get_plugin_data/)
 * Status: not resolved