PHP Notice: register_rest_route was called
-
wp version 5.4.2
PHP 7.2.29
wp_debug activated
elementor plugin activated
elementskit plugin activatednotice found on :
– add new post
– mydomain.com/wp-jsondebug log :
PHP Notice: register_rest_route was called <strong>incorrectly</strong>. Namespace must not start or end with a slash. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.4.2.) in /home/myuserid/path/mydomain.com/public_html/path/wp-includes/functions.php on line 5167
tried to trace this notice :
line 47 – 49 wp/wp-includes/rest-api.php$clean_namespace = trim( $namespace, '/' ); print_r($clean_namespace . ' -vs- ' . $namespace); if ( $clean_namespace !== $namespace ) {
output :
elementskit/ -vs- elementskit
- The topic ‘PHP Notice: register_rest_route was called’ is closed to new replies.