01. Warning: count(): Parameter must be an array or an object that implements Countable

modules/module/module.admin.model.php:157

modules/eventsticker/eventsticker.admin.view.php:38

classes/module/ModuleObject.class.php:600

classes/module/ModuleHandler.class.php:816

index.php:52

 

 

02. Warning: count(): Parameter must be an array or an object that implements Countable

modules/module/tpl/module_grants.html:30

classes/template/TemplateHandler.class.php:358

classes/template/TemplateHandler.class.php:156

modules/module/module.admin.model.php:209

modules/eventsticker/eventsticker.admin.view.php:38

classes/module/ModuleObject.class.php:600

classes/module/ModuleHandler.class.php:816

index.php:52

 

 

1번 에러 과련 코드 내용

 

 

modules/eventsticker/eventsticker.admin.view.php:38

            $grant_content = $oModuleAdminModel->getModuleGrantHTML($this->module_info->module_srl, $this->xml_info->grant);

 

 

 

라이믹스 코어

 

modules/module/module.admin.model.php:157

 

        if(count($source_grant_list))
        {
            foreach($source_grant_list as $key => $val)
            {
                if(!$val->default) $val->default = 'guest';
                if($val->default == 'root') $val->default = 'manager';
                $grant_list->{$key} = $val;
            }
        }

 

 

 

 

2번 관련 코드 내용

 

라이믹스 코어

modules/module/tpl/module_grants.html:30

<select name="_admin_member" multiple="multiple" size="{max(3, count($admin_member))}">

 

 

 

 

 

ps: 기본 탑재 모듈인 게시판 설정의 각 탭들에서도 count 관련 warning 에러는 굉장히 많이 뜨고 있네요.

 

  • profile
    아마 기본탑재 모듈은 라이믹스 2.0에서 보수되서 나오지 않을까요..?
  • profile profile
    2.0에서 보수되어 나오는 것은 당연하겠지만 이게 코어의 문제인지 확인하고 서드파티 문제라면 제가 고쳐야 하는데 문제점 확인이 어려워 질문을 등록했습니다.

    그리고 2.0 전에 고칠 수 있다면 고치면 좋겠죠.
  • profile

    어디에서 어떻게 호출했든지 상관없이, 실제로 워닝이 뜨는 위치가 코어에 포함된 파일이라면 깃허브에 제보해 주시면 감사하겠습니다. ㅎㅎ

  • profile profile
    네. 이슈 남발하지 않으려고 제 문제는 일단 거르려고 하는데요. 일단 이슈로 올리겠습니다.
    기본모듈인 게시판의 설정,권한관리 탭 등에서도 워닝이 뜨는 것으로 보아 코어에서 문제가 있지 않을까 합니다.