• Resolved Howdy_McGee

    (@howdy_mcgee)


    I’m having trouble with my REST API whenever this plugin is enabled, I get the following error:

    PHP Notice: rest_enabled is deprecated since version 4.7.0! Use rest_authentication_errors instead. The REST API can no longer be completely disabled, the rest_authentication_errors filter can be used to restrict access to the API, instead. in \wp-includes\functions.php on line 4104

    followed immediately by

    PHP Warning: Cannot modify header information – headers already sent by (output started at \wp-includes\functions.php:4104) in \wp-includes\rest-api\class-wp-rest-server.php on line 1248

    Whenever I disable this plugin my custom REST functions start working as expected.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    I remember a similar issue being reported some time ago, but I can’t find it on the development list, so perhaps it has been already fixed.

    What version are you using? Please update to the latest version.

    Cheers,

    Thread Starter Howdy_McGee

    (@howdy_mcgee)

    @gabrielberzescu I’m up to date in both the plugin and WordPress. If I search for rest_enabled I do find it in the plugin:

    features/functions.php LN 1174
    
    add_filter('rest_enabled', 'wppb_disable_rest');

    Hello again,

    It would appear that the issue is already fixed and arriving in the next update.

    Cheers,

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

The topic ‘REST API Issue’ is closed to new replies.