• Resolved hellothereuk

    (@hellothereuk)


    getting all this when editing any admin pages etc, using a custom basic theme with just Lazy Blocks and ACF plugins. All these error disappear when the plugin is disabled. Have tried removing and reinstalling, these errors just return:

    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/##########/wp-includes/functions.php on line 5225  (*my functions.php doesnt have this many lines)
    
    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/#########/wp-includes/functions.php on line 5225  (*my functions.php doesnt have this many lines)
    
    Notice: Undefined variable: suffix in /home/############/wp-content/plugins/instant-images/instant-images.php on line 88
    
    Notice: Undefined variable: suffix in /home/##############/wp-content/plugins/instant-images/instant-images.php on line 97
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/###########/wp-includes/functions.php:5225) in /home/############/wp-admin/admin-header.php on line 9
Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    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

    Plugin Author Darren Cooney

    (@dcooney)

    @stashhouse @hellothereuk
    Can either of you give me server specs?
    – PHP version?
    – NGINX or Apache?
    – Is this on localhost?

    Thread Starter hellothereuk

    (@hellothereuk)

    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 3 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.

    Plugin Author Darren Cooney

    (@dcooney)

    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.

    • This reply was modified 3 years, 10 months ago by Darren Cooney.
    Plugin Author Darren Cooney

    (@dcooney)

    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 …

    Ok great 🙂

    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

    Plugin Author Darren Cooney

    (@dcooney)

    Just released 4.3.5 to fix these warning/error messages

    @dcooney works for me ! thanks a lot !

    Thread Starter hellothereuk

    (@hellothereuk)

    all good here now too!

    Plugin Author Darren Cooney

    (@dcooney)

    Nice, thanks for following up!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘lots of errors on 5.5 wordpress update’ is closed to new replies.