Title: Function create_function() is deprecated
Last modified: October 17, 2022

---

# Function create_function() is deprecated

 *  [travelwithabutterfly](https://wordpress.org/support/users/travelwithabutterfly/)
 * (@travelwithabutterfly)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/function-create_function-is-deprecated-31/)
 * On my wordpress I’m getting “Deprecated: Function create_function() is deprecated
   in /var/www/wp-content/themes/softwind/rock-widgets/image.php on line 139”. My
   media page shows no previously uploaded images and when I upload an image, it
   says “Deprecated: Function create_function() is deprecated in /var/www/wp-content/
   themes/softwind/rock-widgets/image.php on line 139
    10323” and the status bar
   is stuck on “Crunching.” Please help.
 * P.s. Even though there were other couple deprecated questions before, I want 
   to make sure I get the correct fix as I’m afraid an improper code will destroy
   my website!
 * P.p.s: While the images don’t show up in media directly, if I create a new post
   and click on the media button, the images show up.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunction-create_function-is-deprecated-31%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [ahmadalim](https://wordpress.org/support/users/ahmadalim/)
 * (@ahmadalim)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/function-create_function-is-deprecated-31/#post-16105235)
 * Deprecated error usually means that your website needs an older PHP version to
   work properly, and some used functions are deprecated in the current version.
   In this case, you can try to find PHP version, that suits your site the most 
   by trying to use and older PHP version for your website.
 * Furthermore, I can see that your website is showing ERR_SSL_PROTOCOL_ERROR now,
   to fix this, you will need to install an SSL for the website.
    -  This reply was modified 3 years, 7 months ago by [ahmadalim](https://wordpress.org/support/users/ahmadalim/).

Viewing 1 replies (of 1 total)

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

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [function](https://wordpress.org/support/topic-tag/function/)
 * [images](https://wordpress.org/support/topic-tag/images/)
 * [media](https://wordpress.org/support/topic-tag/media/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [ahmadalim](https://wordpress.org/support/users/ahmadalim/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/function-create_function-is-deprecated-31/#post-16105235)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
