채택완료

그누커머스 목록화면 상세화면이 나오지 않습니다.

2017-01-24 (화) 16:39:32 4,644

오류리포트로 찍어보니

Warning: ksort() expects parameter 1 to be array, object given in /home/hosting_users/dddddd/www/wp-content/plugins/gnucommerce/lib/gc_client.lib.php on line 697 

이런 메시지가 나옵니다.

그래서 $wp_filter[$tag] 배열함수를 찍어보았더니

Copy
object(WP_Hook)#580 (5) {  ["callbacks"]=>  array(1) {    [10]=>    array(1) {      ["gc_get_template_directory"]=>      array(2) {        ["function"]=>        string(25) "gc_get_template_directory"        ["accepted_args"]=>        int(1)      }    }  }  ["iterations":"WP_Hook":private]=>  array(0) {  }  ["current_priority":"WP_Hook":private]=>  array(0) {  }  ["nesting_level":"WP_Hook":private]=>  int(0)  ["doing_action":"WP_Hook":private]=>  bool(false)}

이렇게 나옵니다.

원래는 

Copy
array(1) {  [10]=>  array(1) {    ["gc_get_template_directory"]=>    array(2) {      ["function"]=>      string(25) "gc_get_template_directory"      ["accepted_args"]=>      int(1)    }  }}

이렇게 나와야 정상인데 말이죠.

데이터와 소스를 카피해서 이전을 했는데 왜 이런문제가 생기는지 모르겠습니다.

혹시 아시는분 답변 좀 부탁드려요.

|

답변 1개

채택된 답변
+20 포인트

워드프레스 4.7 버전으로 업데이트 되면서 수정된 부분입니다.

그누커머스 최신버전으로 업데이트 하시거나,

수정한 부분이 많으시면 그누커머스 최신버전하고 비교해서 해당 함수를 고쳐 보세요.

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