Title: create_function() is deprecated
Last modified: June 8, 2023

---

# create_function() is deprecated

 *  Resolved [Michael Nelson](https://wordpress.org/support/users/mnelson4/)
 * (@mnelson4)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/create_function-is-deprecated-16/)
 * Getting this warning on PHP 7.4:
 * Function create_function() is deprecated
 * from file resize-images-before-upload/resize-images-before-upload.php line 304

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

 *  Plugin Author [TMM Technology](https://wordpress.org/support/users/tmmtechnology/)
 * (@tmmtechnology)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/create_function-is-deprecated-16/#post-16807617)
 * That is quite inteteresting because this file file has only 175 lines, and we
   do not have such a function at all (in none of the files)
   Are you sure it comes
   from this plugin? Maybe you could share more info (a screenshot)?You can see 
   it in the repository: [https://plugins.svn.wordpress.org/resize-image-before-upload/trunk/resize-image-before-upload.php](https://plugins.svn.wordpress.org/resize-image-before-upload/trunk/resize-image-before-upload.php)
 *  Plugin Author [TMM Technology](https://wordpress.org/support/users/tmmtechnology/)
 * (@tmmtechnology)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/create_function-is-deprecated-16/#post-16807629)
 * Maybe you got infected with malware which adds additional code to the scripts?
   You can share the code of this file with me here or at [wp@tmm.ventures](https://wordpress.org/support/topic/create_function-is-deprecated-16/wp@tmm.ventures?output_format=md)
   and I will take a look at this, that is quite interesting.
   If I find some malicious
   code in there, I will let you know, and will also give you an instruction how
   to clean up your site from malware, for free. Had experience with such kind of
   things. Other than that, I do not see any reasons how this is possible.
 *  Thread Starter [Michael Nelson](https://wordpress.org/support/users/mnelson4/)
 * (@mnelson4)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/create_function-is-deprecated-16/#post-16813252)
 * Hi thanks for the reply and offer to help. The error is coming from a site of
   a user who also uses my plugin (Print My Blog). But upon further investigation,
   I see this warning is coming from a different plugin with the same name: [https://github.com/WPsites/Resize-images-before-upload/blob/master/resize-images-before-upload.php#L304](https://github.com/WPsites/Resize-images-before-upload/blob/master/resize-images-before-upload.php#L304)(
   but isn’t on WP.org). It’s also super out-of-date which explains some things.
 * So we’re good. Thanks!
 *  Plugin Author [TMM Technology](https://wordpress.org/support/users/tmmtechnology/)
 * (@tmmtechnology)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/create_function-is-deprecated-16/#post-16839944)
 * [@mnelson4](https://wordpress.org/support/users/mnelson4/) Maybe he can try my
   plugin 🙂 It has to work, tested.

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

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

 * ![](https://ps.w.org/resize-image-before-upload/assets/icon.svg?rev=2869616)
 * [Resize Image Before Upload](https://wordpress.org/plugins/resize-image-before-upload/)
 * [Support Threads](https://wordpress.org/support/plugin/resize-image-before-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/resize-image-before-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/resize-image-before-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/resize-image-before-upload/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [TMM Technology](https://wordpress.org/support/users/tmmtechnology/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/create_function-is-deprecated-16/#post-16839944)
 * Status: resolved