Notice: compact(): Undefined variable: extras in /home/zf/vendor/zendframework/zend-view/src/Helper/HeadLink.php on line 404
Notice: compact(): Undefined variable: extras in /home/zf/vendor/zendframework/zend-view/src/Helper/HeadLink.php on line 404
Notice: compact(): Undefined variable: extras in /home/zf/vendor/zendframework/zend-view/src/Helper/HeadLink.php on line 404
PHP 7.0.33으로 운영하는 서버에 설치하면 될 일이지만 다행히 쉽게 코드 수정으로 해결 할 수 있었다.
https://github.com/zendframework/zend-view/issues/172#issue-388080603
1. vendor/zendframework/zend-view/src/Helper/HeadLink.php 화일을 열고 먼저 404번 라인쯤에 아래의 코드를 찾아 삭제 하거나 주석으로 처리 한다.
$attributes = compact('rel', 'type', 'href', 'media', 'conditionalStylesheet', 'extras');
2. 그리고 아래 라인의 코드를 그 자리에 삽입한다.
$attributes = compact('rel', 'type', 'href', 'media', 'conditionalStylesheet'); if ($args && is_array($args[0])) { $attributes['extras'] = array_shift($args); }
* 그럼에도 composer로 추가 설치한 콤퍼넌트 중에 에러 나는 부분이 많아서 결국 PHP를 7.2 바꿔 버렸다.
새댓글 등록