Hi @hellothereuk, I just tested on a fresh 5.5 install and I’m not getting these warnings. Tested on other active sites with 5.5 updated as well and no warnings.
I’ll wait to see if other users report this before trying to replicate.
Hello,
I have exactly the same problem since I’ve updated to WordPress 5.5, this error message appears when I’m on a post on back-office :
Notice: register_rest_route est appelée de la mauvaise manière. La définition de la route de l’API REST pour instant-images/test n’a pas l’argument permission_callback nécessaire. Pour les routes de l’API REST qui sont destinées à être publiques, utilisez __return_true comme rappel de permission. Veuillez lire Débogage dans WordPress (en) pour plus d’informations. (Ce message a été ajouté à la version 5.5.0.) in /app/public/wp-includes/functions.php on line 5225 Notice: register_rest_route est appelée de la mauvaise manière. La définition de la route de l’API REST pour instant-images/download n’a pas l’argument permission_callback nécessaire. Pour les routes de l’API REST qui sont destinées à être publiques, utilisez __return_true comme rappel de permission. Veuillez lire Débogage dans WordPress (en) pour plus d’informations. (Ce message a été ajouté à la version 5.5.0.) in /app/public/wp-includes/functions.php on line 5225 Notice: Undefined variable: suffix in /app/public/wp-content/plugins/instant-images/instant-images.php on line 88 Notice: Undefined variable: suffix in /app/public/wp-content/plugins/instant-images/instant-images.php on line 97
Regards,
David
@stashhouse @hellothereuk
Can either of you give me server specs?
– PHP version?
– NGINX or Apache?
– Is this on localhost?
Hi there, my cpanel gives me this info, if this is any help:
Apache Version 2.4.43
PHP Version PHP 7.2 (ea-php72)
MySQL Version 10.3.23-MariaDB
Architecture x86_64
Operating System linux
I’m not on localhost, this is a site being worked on with ‘discourage from search results’ turned on
-
This reply was modified 4 years, 10 months ago by
hellothereuk.
Hi,
for me it’s on :
– PHP : 7.2.9
– NGINX
– MySql 5.7.23
– on localhost (Local by Flywheel)
When I move to PHP version 7.3.2 and/or from NGINX to Apache, it’s the same.
Just tested on Local Lightning (by Flywheel) using apache and nginx on php 7.3.5 and 7.2.x and I’m not getting these errors.
Hmmm. not sure why this would be happening.
Oh, I just reproduced this on another build. Will fix it up.
I don’t understand either, is this https://make.wordpress.org/core/2020/07/22/rest-api-changes-in-wordpress-5-5/ (section Miscellaneous) related ?
it seems register_rest_route need a permission callback now, but I’m not very familiar with the subject …
Same for me on Plugin version 4.3.4 WP 5.5
PHP 7.2
Apache.
SiteGround hosting.
Notice: register_rest_route was called incorrectly. The REST API route definition for instant-images/test 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 for more information. (This message was added in version 5.5.0.) in /home/site/public_html/mysite.com/devel/staging/wp-includes/functions.php on line 5225
Notice: register_rest_route was called incorrectly. The REST API route definition for instant-images/download 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 for more information. (This message was added in version 5.5.0.) in /home/site/public_html/mysite.com/devel/staging/wp-includes/functions.php on line 5225
Notice: Undefined variable: suffix in /home/site/public_html/mysite.com/devel/staging/wp-content/plugins/instant-images/instant-images.php on line 88
Just released 4.3.5 to fix these warning/error messages
@dcooney works for me ! thanks a lot !
Nice, thanks for following up!