Title: create_function throws error in PHP8
Last modified: January 16, 2023

---

# create_function throws error in PHP8

 *  Resolved [tomroyal](https://wordpress.org/support/users/tomroyal/)
 * (@tomroyal)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/create_function-throws-error-in-php8/)
 * The plugin causes an error in PHP8 as create_function(), used in line 67, has
   been removed:
 * [https://www.php.net/manual/en/function.create-function.php](https://www.php.net/manual/en/function.create-function.php)
 * If anyone else hits this – it seems fixable by replacing with an arrow function
   returning “html”.
 * [https://www.php.net/manual/en/functions.arrow.php](https://www.php.net/manual/en/functions.arrow.php)

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

 *  Plugin Author [DeveloperWil](https://wordpress.org/support/users/developerwil/)
 * (@developerwil)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/create_function-throws-error-in-php8/#post-16379681)
 * Updated for PHP 8.x, thanks. Version 2.4.4 pushed to the repo – should be available
   soon.
 *  Thread Starter [tomroyal](https://wordpress.org/support/users/tomroyal/)
 * (@tomroyal)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/create_function-throws-error-in-php8/#post-16380788)
 * Ah, that’s great. Thanks so much for the quick fix!

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

The topic ‘create_function throws error in PHP8’ is closed to new replies.

 * ![](https://ps.w.org/always-edit-in-html/assets/icon-256x256.jpg?rev=1434816)
 * [Always Edit In HTML](https://wordpress.org/plugins/always-edit-in-html/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/always-edit-in-html/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/always-edit-in-html/)
 * [Active Topics](https://wordpress.org/support/plugin/always-edit-in-html/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/always-edit-in-html/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/always-edit-in-html/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [tomroyal](https://wordpress.org/support/users/tomroyal/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/create_function-throws-error-in-php8/#post-16380788)
 * Status: resolved