Title: PHP Fatal error: Uncaught Error: Call to undefined function create_function()
Last modified: September 22, 2025

---

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

 *  [dushansc](https://wordpress.org/support/users/dushansc/)
 * (@dushansc)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-create_function-2/)
 * Hello.
   Is there a plan to update the plugin functions to support PHP 8?We are
   getting: **PHP Fatal error: Uncaught Error: Call to undefined function create_function()**(
   The `create_function()` function has been removed in PHP 8.0. It was deprecated
   in PHP 7.2 due to security and performance concerns.)Thanks.Dushan.

Viewing 1 replies (of 1 total)

 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-create_function-2/#post-18698331)
 * That outdated code is in function `get_search_terms()` in file `include/class-
   job-post-type.php` at line 188:
 *     ```wp-block-code
       $search_terms = array_filter(array_map( create_function( '$a', 'return trim($a, "\\"\'\\n\\r ");' ), $matches[0] ));
       ```
   
 * Job Postings 2.7.17

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/job-postings/assets/icon-256x256.jpg?rev=1702382)
 * [Job Postings](https://wordpress.org/plugins/job-postings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/job-postings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/job-postings/)
 * [Active Topics](https://wordpress.org/support/plugin/job-postings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/job-postings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/job-postings/reviews/)

## Tags

 * [create_function](https://wordpress.org/support/topic-tag/create_function/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * Last activity: [7 months, 2 weeks ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-create_function-2/#post-18698331)
 * Status: not resolved