Title: PHP Warnings
Last modified: January 8, 2023

---

# PHP Warnings

 *  Resolved [Malae](https://wordpress.org/support/users/malae/)
 * (@malae)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-warnings-148/)
 * Hello,
 * I am using this plugin and the wp-debug.log file is being flooded with PHP warnings:
 * `PHP Warning: strnatcasecmp() expects parameter 1 to be string, array given in/
   wp-includes/class-wp-customize-widgets.php on line 1111`
   `PHP Warning: strnatcasecmp()
   expects parameter 2 to be string, array given in /wp-includes/class-wp-customize-
   widgets.php on line 111`
 * Searching for the string, the only instance found was as follows:
 * `…ipslashes|stristr|strlen|strnatcasecmp|strnatcmp|strncasecmp|st… /wp-content/
   plugins/easy-image-collage/vendor/vafpress/public/js/vendor/ace/mode-php.js`
   
   Is this the culprit. If so, can you fix the issue?
    -  This topic was modified 3 years, 5 months ago by [Malae](https://wordpress.org/support/users/malae/).

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

 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-warnings-148/#post-16353631)
 * Hi there,
 * Are you sure the warning is coming from Easy Image Collage? Does it stop generating
   them if you deactivate our plugin for a second?
 * That file you find is a JavaScript file and shouldn’t be generating any PHP warnings.
   It’s related to a library that displays a code editor, so the “strnatcasecmp”
   string is essentially in there to highlight that as being a PHP function. It 
   doesn’t actually execute that function.
 * The `/wp-includes/class-wp-customize-widgets.php` file it references is a core
   WordPress file and it seems to use that `strnatcasecmp` function to sort widgets
   by name.
 * Easy Image Collage doesn’t include any widgets, so I’d be very surprised if the
   warning is caused by it.
    -  This reply was modified 3 years, 5 months ago by [Brecht](https://wordpress.org/support/users/brechtvds/).
 *  Thread Starter [Malae](https://wordpress.org/support/users/malae/)
 * (@malae)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-warnings-148/#post-16356995)
 * Hi Brecht,
 * Thanks for your prompt response. I think you are correct, I was probably wrong
   in assuming that it was not caused by code in a core file. There are several 
   files in wp-includes that have the string and I will check further.

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

The topic ‘PHP Warnings’ is closed to new replies.

 * ![](https://ps.w.org/easy-image-collage/assets/icon-256x256.png?rev=1077322)
 * [Easy Image Collage](https://wordpress.org/plugins/easy-image-collage/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-image-collage/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-image-collage/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-image-collage/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-image-collage/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-image-collage/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Malae](https://wordpress.org/support/users/malae/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/php-warnings-148/#post-16356995)
 * Status: resolved