개발 Q&A

제목 Uncaught TypeError: Cannot read property 'impl' of undefined 에러 질문 드립니다.
글쓴이 Nate 작성시각 2015/08/13 15:20:30
댓글 : 0 추천 : 0 스크랩 : 0 조회수 : 12974   RSS
안녕하세요~

CI 한창 공부 중인데... 입력폼에 글자들을 입력하고 alerr_helper를 이용해서 페이지 이동 또는 history back을 시키는데

Cannot read property 'impl' of undefined 라는 애러가 발생합니다.

그리고 더 의아한 것은 항상 발생하는 애러가 아니라... 한번씩 이런다는 겁니다. 10번 정도 시도하면 7번 정도 에러가 발생합니다.

아래 코드는 alert helper 일부 코드입니다.
//메세지 출력 후 이동
function alert_goFoward($msg='이동합니다', $url='/') 
{
    echo "
        <script type='text/javascript'>
            alert('".$msg."');
            location.replace('".$url."');
        </script>
    ";
    exit;
}

//메세지 출력 후 뒤로가기
function alert_goBack($msg='메세지입니다.') 
{
    echo "
        <script type='text/javascript'>
            alert('".$msg."');
            history.back();
        </script>
    ";
    exit;
}


그리고 Controller에서
alert_goBack('로그인 되었습니다.');
또는
alert_goFoward('에러가 발생했습니다.', '/경로1/경로2/..../')
이런식으로 적어서 사용을 하죠.


그런데 브라우져에서 실행을 하면 (크롬브라우져를 사용하고 있습니다.)

Uncaught TypeError: Cannot read property 'impl' of undefined 라는 에러가 발생하고 에러 발생 코드를 보면
[extentions::messaging:184]
      // In case the extension never invokes the responseCallback, and also
      // doesn't keep a reference to it, we need to clean up the port. Do
      // so by attaching to the garbage collection of the responseCallback
      // using some native hackery.
      messagingNatives.BindToGC(responseCallback, function() {
        if (port) {
          privates(port).impl.destroy_(); //--> 에러부분
          port = null;
        }
      });
위와 같습니다.

무엇이 문제이고, 어떻게 해결해야 할까요~

계속 삽질하고 있는거 같아 답답한 마음에 질문 드립니다.~

더운날 건강들 조심하세요~
 다음글 phpstorm 자동완성 질문입니다.
 이전글 페이탈 에러 질문 드립니다. (2)

댓글

없음