테스트 사이트 - 개발 중인 베타 버전입니다

GNUCOMMERCE 플러그인에서 워드프레스 디버깅하면 이런 메세지가뜨네요

쇼핑몰잘만드셨네요 5년 전 조회 2,498

이런게 rest_api 관련해서 딜레이를 유발하는거 같습니다.

 

혹시 해결방법 아시는분 계세요??

미리감사드립니다.

 

--------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------

 

 

사이트 건강 상태

사이트 상태 확인에는 워드프레스의 설정과 주의가 필요한 항목에 대한 중요한 정보를 보여줄 것입니다.

4 critical issues

2 recommended improvements

 

 

 

Notice: register_rest_route 은 잘못불렀습니다. The REST API route definition for gnucommerce/captcha is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. https://wordpress.org/support/article/debugging-in-wordpress/">워드프레스 디버깅 하기를 참고하시면, 더 많은 정보를 얻을 수 있습니다. (이 메세지는 버전 5.5.0에서 추가되었습니다.) in /home/www/xxx/wp-includes/functions.php on line 5225 Notice: register_rest_route 은 잘못불렀습니다. The REST API route definition for gnucommerce/personalpayform is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. https://wordpress.org/support/article/debugging-in-wordpress/">워드프레스 디버깅 하기를 참고하시면, 더 많은 정보를 얻을 수 있습니다. (이 메세지는 버전 5.5.0에서 추가되었습니다.) in /home/www/xxx/wp-includes/functions.php on line 5225 Notice: register_rest_route 은 잘못불렀습니다. The REST API route definition for gnucommerce/personalpay is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. https://wordpress.org/support/article/debugging-in-wordpress/">워드프레스 디버깅 하기를 참고하시면, 더 많은 정보를 얻을 수 있습니다. (이 메세지는 버전 5.5.0에서 추가되었습니다.) in /home/www/xxx/wp-includes/functions.php on line 5225 Notice: register_rest_route 은 잘못불렀습니다. The REST API route definition for gnucommerce/inicisreturn is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. https://wordpress.org/support/article/debugging-in-wordpress/">워드프레스 디버깅 하기를 참고하시면, 더 많은 정보를 얻을 수 있습니다. (이 메세지는 버전 5.5.0에서 추가되었습니다.) in /home/www/xxx/wp-includes/functions.php on line 5225

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

wp-content/plugins/gnucommerce/lib/gc_api.class.php

 

라인 62를 수정하였습니다. REST_API 문제는 해결되었습니다.

하지만 사이트 상태는 여전히  메롱이네요.. 뭐 좋은 거 없으까요??

 

    public function api_default_filters(){         //캡챠관련 ( 1.4.2 이하버전에서 사용, 지금은 안씀 )         register_rest_route( 'gnucommerce', '/captcha', array(             'methods' => 'GET',             'callback' => array( $this, 'captcha'),             'permission_callback' => '__return_true'         ));

        // 개인결제 추가하기 ( 관리자만 )  ( 1.4.2 이하버전에서 사용, 지금은 안씀 )         register_rest_route( 'gnucommerce', '/personalpayform', array(             'methods' => 'GET, POST',             'callback' => array( $this, 'personalpayform'),             'permission_callback' => '__return_true'         ));

        // 개인결제 관련  ( 1.4.2 이하버전에서 사용, 지금은 안씀 )         register_rest_route( 'gnucommerce', '/personalpay', array(             'methods' => 'GET, POST',             'callback' => array( $this, 'personalpay'),             'permission_callback' => '__return_true'         ));

        // inicis PC 관련 ( 1.4.2 이하버전에서 사용, 지금은 안씀 )         register_rest_route( 'gnucommerce', '/inicisreturn', array(             'methods' => 'GET, POST',             'callback' => array( $this, 'inicisreturn'),             'permission_callback' => '__return_true'         ));     }  

 

wp-content/plugins/gnucommerce$ vi gnucommerce.php

의 두줄을 커멘트 처리하면 딜레이는 없는데 장바구니에 이상이 생기는것 같습니다.

올바른 해결점은 아닌거 같어요 

아시는 분 커멘트 부탁드립니다.

-------------------------------------------------------------------------------

 

137         //if (!headers_sent() && !isset($_SESSION)) 138         //      @session_start();---

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인