Title: PHP Notice, plugin not working
Last modified: May 24, 2022

---

# PHP Notice, plugin not working

 *  [Lucy Beer](https://wordpress.org/support/users/webtrainingwheels/)
 * (@webtrainingwheels)
 * [4 years ago](https://wordpress.org/support/topic/php-notice-plugin-not-working/)
 * Hello!
 * I am testing your plugin on my local site.
 * After clicking the scan button, a minute or so later the page simply refreshes
   with no further information.
    Sometimes it shows “Incomplete crawl: Please try
   again”
 * Checking the error log I see this:
    PHP Notice: register_rest_route was called
   incorrectly. The REST API route definition for `find-unused-images/v1/(?P<num
   >\d+)` is missing the required `permission_callback` argument. For REST API routes
   that are intended to be public, use `__return_true` as the permission callback.
   Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 5.5.0.) in /wp-includes/
   functions.php on line 5768`
 * I’m on WordPress 5.9
    The plugin is currently non-functioning 🙁
 * Thanks for your help!

The topic ‘PHP Notice, plugin not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/find-unused-images.svg)
 * [Find Unused Images](https://wordpress.org/plugins/find-unused-images/)
 * [Support Threads](https://wordpress.org/support/plugin/find-unused-images/)
 * [Active Topics](https://wordpress.org/support/plugin/find-unused-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/find-unused-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/find-unused-images/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Lucy Beer](https://wordpress.org/support/users/webtrainingwheels/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/php-notice-plugin-not-working/)
 * Status: not resolved