공개 자료실에 올라와 있는 윤삼님의 엑셀저장 모듈을 설치하고
게시판 엑셀 저장 버튼을 클릭하면 아래와 같은 에러가 발생합니다.
에러내용 :
TypeError #0 "Argument 1 passed to Rhymix\Modules\Extravar\Models\Value::__construct() must be of the type int, null given, called in /now2011/www/modules/board/board.model.php on line 48" in modules/extravar/models/Value.php on line 91
modules/extravar/models/Value.php:91
Value.php 91번째 줄의 내용은
function __construct(int $module_srl, int $idx, string $name, string $type = 'text', $default = null, $desc = '', $is_required = 'N', $search = 'N', $value = null, $eid = '', $parent_type = 'document', $is_strict = '', $options = null)
{
if (!$idx)
{
return;
}
$this->module_srl = $module_srl;
$this->idx = $idx;
$this->eid = $eid;
$this->type = $type;
$this->parent_type = $parent_type;
$this->value = $value;
$this->name = $name;
$this->desc = $desc;
$this->default = $default;
$this->options = $options ? json_decode($options) : null;
$this->is_required = $is_required;
$this->is_strict = $is_strict;
$this->search = $search;
}
입니다.
아시는 분 꼭 좀 부탁드립니다.
코어의 확장변수 지원이 향상되면서 엑셀 모듈의 호환성에 문제가 생긴 것 같네요.
다만 직접 재연은 어려워서 몇 말씀 여쭙겠습니다.
게시판 목록에 있는 저장 버튼을 눌렀을 때 생기는 오류인가요?
아니면 팝업창 로드 후에 생기는 오류인가요?
후자의 경우라면 어떤 조건을 주고 저장 버튼을 누르신 건가요?
덧. 그리고 기회가 되신다면 가급적 php버전은 7.4 이상으로 올리시는 게 좋겠습니다. 코어 자체에서 7.4 이상을 권장하기도 하고, 해당 자료 또한 7.4 환경에서 제작됐었거든요.