• Resolved pobyzaarif

    (@pobyzaarif)


    wp version 5.4.2
    PHP 7.2.29
    wp_debug activated
    elementor plugin activated
    elementskit plugin activated

    notice found on :
    – add new post
    – mydomain.com/wp-json

    debug 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @pobyzaarif ,

    This is a notice produced by wordpress from version 5.4.2 which is a namespace issue. It will be fixed on our next update. You can just ignore the message or just turn off the wp debug to hide the notice if you want.

    Regards

    Thread Starter pobyzaarif

    (@pobyzaarif)

    hello @benjirahmed ,
    ya ya its ok, i ignored this notice, its only small notice about namespace, not a big problem. Will wait the update.
    btw thank you for awesome plugin.

    Cheers,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Notice: register_rest_route was called’ is closed to new replies.