Title: Notice errors related to API
Last modified: August 20, 2020

---

# Notice errors related to API

 *  Resolved [Mateus Machado Luna](https://wordpress.org/support/users/wetah/)
 * (@wetah)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/notice-errors-related-to-api/)
 * Hi there! Thank you for the amazing plugin. It is really great the amount of 
   effort put into the popup builder.
 * I’m facing a weird issue here. Whenever a I open the post/page editor page, some
   notices are printed right into my body tag. Here is the code:
 *     ```
       Notice: register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>brave/v1/popups</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /var/www/html/wp-includes/functions.php on line 5225
   
       Notice: register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>brave/v1/popup(?:/(?P<id>\d+))?</id></code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /var/www/html/wp-includes/functions.php on line 5225
   
       Notice: register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>brave/v1/settings</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /var/www/html/wp-includes/functions.php on line 5225
   
       Notice: register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>brave/v1/presets</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /var/www/html/wp-includes/functions.php on line 5225
   
       Notice: register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>brave/v1/integrations/aweberverfier</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /var/www/html/wp-includes/functions.php on line 5225
   
       Notice: register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>brave/v1/posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /var/www/html/wp-includes/functions.php on line 5225
   
       Notice: register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>brave/v1/products</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /var/www/html/wp-includes/functions.php on line 5225
   
       Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:5225) in /var/www/html/wp-admin/admin-header.php on line 9
       ```
   
 * Any idea on what might be causing this? It didn’t seem to affect any functionality
   so far.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnotice-errors-related-to-api%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Brave](https://wordpress.org/support/users/getbrave/)
 * (@getbrave)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/notice-errors-related-to-api/#post-13288821)
 * [@wetah](https://wordpress.org/support/users/wetah/) Thanks for reporting! This
   issue was introduced with WordPress 5.5. Just fixed the issue. Kindly update 
   the plugin.
 * If you like the plugin, would you be kind enough to leave a review? It would 
   mean a lot to us.
 * [https://wordpress.org/support/plugin/brave-popup-builder/reviews/](https://wordpress.org/support/plugin/brave-popup-builder/reviews/)
 * Thanks
 *  Thread Starter [Mateus Machado Luna](https://wordpress.org/support/users/wetah/)
 * (@wetah)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/notice-errors-related-to-api/#post-13304685)
 * Thanks, its fine now 🙂
 * I’ll write the review.

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

The topic ‘Notice errors related to API’ is closed to new replies.

 * ![](https://ps.w.org/brave-popup-builder/assets/icon-256x256.gif?rev=2407788)
 * [Brave Popup Builder - Popup, Optins, Lead Generation, Survey & Interactive Content](https://wordpress.org/plugins/brave-popup-builder/)
 * [Support Threads](https://wordpress.org/support/plugin/brave-popup-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/brave-popup-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/brave-popup-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/brave-popup-builder/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [brave](https://wordpress.org/support/topic-tag/brave/)
 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mateus Machado Luna](https://wordpress.org/support/users/wetah/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/notice-errors-related-to-api/#post-13304685)
 * Status: resolved