Title: PHP8 Error
Last modified: April 5, 2023

---

# PHP8 Error

 *  Resolved [DavidGMiles](https://wordpress.org/support/users/davidgmiles/)
 * (@davidgmiles)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php8-error-11/)
 * When I try to upgrade to PHP8 – Codesnippets causes a critical error on the sites–
   create_function() is the culprit – the log shows PHP Fatal error: Uncaught Error:
   Call to undefined function create_function() in /home/naturesl/public_html/wp-
   content/plugins/code-snippets-pro/php/snippet-ops.php(510) : eval()’d code:1 –
   I guess that call to create_function is internal? Because I cannot find any of
   my snippets using create_function

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

 *  Plugin Contributor [Verdi Heinz](https://wordpress.org/support/users/ver3/)
 * (@ver3)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php8-error-11/#post-16633107)
 * Hi David, we are now answering your support ticket. The error seems to be in 
   one of your Snippets (your content) but we’re looking deeper as I’m writing this.
   Please see the definitive answer in your email soon.
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php8-error-11/#post-16634431)
 * Hi [@davidgmiles](https://wordpress.org/support/users/davidgmiles/),
 * We don’t use `create_function` anywhere in the plugin, and never have. The error
   message indicates that it is indeed coming from one of your snippets.
 * I’d recommend doing a search for `create_function` from the snippets menu – or
   failing that, you could look directly at the `snippets` database table – to ensure
   that it’s not still being used somewhere in one of your snippets.

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

The topic ‘PHP8 Error’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/php8-error-11/#post-16634431)
 * Status: resolved