API call is missing...
 
Share:
Notifications
Clear all

[Solved] API call is missing a required argument

3 Posts
2 Users
0 Likes
630 Views
Posts: 4
Topic starter
(@yeshuaislord)
Active Member
Joined: 4 years ago

Hi,

Something goes wrong with the WPDiscuz plugin. I tried to deactivate and reactivate the plugin and flushed the cache. But as soon as I activate the plugin I get the following message in the WP_DEBUG_LOG:

[25-Nov-2020 09:07:24 UTC] PHP Notice: register_rest_route was called incorrectly. The REST API route definition for wpdiscuz/v1/update 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/lean9310/public_html/yeshua.academy/wp-includes/functions.php on line 5229

How can I fix this? I am running WP 5.5.3 and PHP 7.3

Thannks

2 Replies
Asti
Posts: 7056
 Asti
Support
(@asti)
Illustrious Member
Joined: 6 years ago

Hi @yeshuaislord,

Thank you for letting us know.

We will fix the issue in the next version (no ETA).

1 Reply
(@yeshuaislord)
Joined: 4 years ago

Active Member
Posts: 4

@asti OK Thank you

Share: