Title: PHP Fatal error: Uncaught Error: Call to undefined function plugin_basename()
Last modified: December 23, 2023

---

# PHP Fatal error: Uncaught Error: Call to undefined function plugin_basename()

 *  Resolved [Nico Marcuz](https://wordpress.org/support/users/nick7766/)
 * (@nick7766)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-plugin_basename/)
 * Hi There!
 * We updated to the new version yesterday and found the following error message
   in our PHP ErrorLog this morning:
 * ===
 * PHP Fatal error: Uncaught Error: Call to undefined function plugin_basename()
   in /kunden/469469_76275/webseiten/hello-world.net/wordpress/wp-content/plugins/
   contact-form-7/wp-contact-form-7.php:23
   Stack trace: 0 {main}
 * thrown in /kunden/469469_76275/webseiten/hello-world.net/wordpress/wp-content/
   plugins/contact-form-7/wp-contact-form-7.php on line 23
 * ===
 * Thank you very much for the brief information about where the error lies.
 * Nico
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-uncaught-error-call-to-undefined-function-plugin_basename%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-plugin_basename/#post-17299076)
 * What other plugins and theme do you use on the site?
 *  Thread Starter [Nico Marcuz](https://wordpress.org/support/users/nick7766/)
 * (@nick7766)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-plugin_basename/#post-17299280)
 * Good morning Takayuki!
   Thank you very much for your quick response.We work with
   the Generate Press theme (current Pro version).
 * The plugins we use are:
    1.  Advanced Custom Fields PRO
    2.  Borlabs Cookie – Cookie Opt-in
    3.  Classic Editor
    4.  Contact Form 7
    5.  Custom Post Type UI
    6.  Elementor Pro
    7.  Elementor
    8.  GP Premium
    9.  Post Types Order
    10. Product Filter for WooCommerce
    11. WooCommerce
    12. Yoast SEO Premium
    13. Yoast SEO
    14. WP Grid Builder – Elementor
    15. WP Grid Builder
    16. WP Rocket
    17. wpDiscuz
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-plugin_basename/#post-17300038)
 * Try switching to the default theme, deactivating all plugins excluding Contact
   Form 7, Classic Editor and WooCommerce, and clearing all cache data.
 * [Why you are advised to deactivate plugins and switch to the default theme.](https://contactform7.com/2019/12/02/why-you-are-advised-to-deactivate-plugins-and-switch-to-the-default-theme/)
 *  Thread Starter [Nico Marcuz](https://wordpress.org/support/users/nick7766/)
 * (@nick7766)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-plugin_basename/#post-17300293)
 * thnx Takayuki

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

The topic ‘PHP Fatal error: Uncaught Error: Call to undefined function plugin_basename()’
is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Nico Marcuz](https://wordpress.org/support/users/nick7766/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-plugin_basename/#post-17300293)
 * Status: resolved