Title: create_function() is deprecated
Last modified: February 7, 2020

---

# create_function() is deprecated

 *  [jpdacostas](https://wordpress.org/support/users/jpdacostas/)
 * (@jpdacostas)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/create_function-is-deprecated-12/)
 * When I enable debug mode in wp-config.php, I’m getting this message:
 * >  Deprecated: Function create_function() is deprecated in /var/www/wp-content/
   > plugins/revslider/includes/framework/functions-wordpress.class.php on line 
   > 257
   > Deprecated: The each() function is deprecated. This message will be suppressed
   > on further calls in /var/www/wp-content/plugins/js_composer/include/classes/
   > core/class-vc-mapper.php on line 111
   >  HOME TOUR CONTACT
   > Notice: Undefined index: menu_page_is_menu in /var/www/wp-content/themes/lush/
   > parts/top-menu.php on line 18
   >  HOME Notice: Undefined index: menu_page_is_menu
   > in /var/www/wp-content/themes/lush/parts/top-menu.php on line 18 TOUR Notice:
   > Undefined index: menu_page_is_menu in /var/www/wp-content/themes/lush/parts/
   > top-menu.php on line 18 CONTACT
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcreate_function-is-deprecated-12%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [jpdacostas](https://wordpress.org/support/users/jpdacostas/)
 * (@jpdacostas)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/create_function-is-deprecated-12/#post-12409024)
 * UPDATE: I have reversed PHP 7.3 to PHP 7.0 and the first 2 errors have gone away.
   
   So now I’m guessing Revolution Slider does not support PHP 7.3?
 *  [Dion](https://wordpress.org/support/users/diondesigns/)
 * (@diondesigns)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/create_function-is-deprecated-12/#post-12410718)
 * I personally would be very concerned about that first deprecated message. `create_function()`
   has many issues, and as of PHP 5.3 (released 10 years ago!), [a vastly superior replacement](https://www.php.net/manual/en/functions.anonymous.php)
   is available.
 * Hopefully there is a newer version of Revslider that uses more modern (and more
   secure) coding.

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

The topic ‘create_function() is deprecated’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 2 participants
 * Last reply from: [Dion](https://wordpress.org/support/users/diondesigns/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/create_function-is-deprecated-12/#post-12410718)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
