Title: Fatal error: Undefined function wp_create_nonce()
Last modified: May 2, 2022

---

# Fatal error: Undefined function wp_create_nonce()

 *  [michael.orlitzky](https://wordpress.org/support/users/michaelorlitzky/)
 * (@michaelorlitzky)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_create_nonce/)
 * Hi, I’ve tried to install both version 1.1.0 and 1.1.1 from scratch (clean installs,
   not upgrades). As soon as I hit “activate” on the plugin, the site crashes, and
   the following appears in the PHP log:
 * `PHP Fatal error: Uncaught Error: Call to undefined function wp_create_nonce()
   in /var/www/example.com/www/public/wp-includes/functions.php:1860`
 * This is with the latest WP and php-7.4.x.

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

 *  Plugin Author [Darko G.](https://wordpress.org/support/users/darkog/)
 * (@darkog)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_create_nonce/#post-15611701)
 * Interesting. The plugin does not call wp_create_nonce anywhere. I will do some
   more tests.
 *  Thread Starter [michael.orlitzky](https://wordpress.org/support/users/michaelorlitzky/)
 * (@michaelorlitzky)
 * [4 years ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_create_nonce/#post-15647471)
 * I think it’s a result of `define('FS_METHOD', 'direct');` in `wp-config.php`.
   I commented out a call to `request_filesystem_credentials()` in `classes/class-
   ip-location-block-file.php` and after that, I can activate the plugin.
 * (NB: the database download still doesn’t work after that, but I was able to move
   the database into the expected location manually. The “Settings” page still can’t
   see the database I put there, but if I try to look up my own IP address, it does
   work.)
 *  Plugin Author [Darko G.](https://wordpress.org/support/users/darkog/)
 * (@darkog)
 * [4 years ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_create_nonce/#post-15670466)
 * [@michaelorlitzky](https://wordpress.org/support/users/michaelorlitzky/) thanks
   for reporting that issue.

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

The topic ‘Fatal error: Undefined function wp_create_nonce()’ is closed to new replies.

 * ![](https://ps.w.org/ip-location-block/assets/icon-256x256.png?rev=2662027)
 * [IP Location Block](https://wordpress.org/plugins/ip-location-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ip-location-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ip-location-block/)
 * [Active Topics](https://wordpress.org/support/plugin/ip-location-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ip-location-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ip-location-block/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Darko G.](https://wordpress.org/support/users/darkog/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_create_nonce/#post-15670466)
 * Status: not a support question