Home 게시판 커뮤니티 Q&A OpenID 플러그인 설치에 관한 조언 부탁드립니다.

4개 답변, 2 voices Last updated by Avatar of 082net082net 17 years, 3 months 전
  • Avatar of dece24dece24
    Participant
    @dece24
    #2468

    감사합니다. 댓글을 조금 늦게 확인했습니다.
    아직 적용해 보지 못했는데 조언주신 대로 적용해 본 다음 문제가 있으면 또 질문 올리겠습니다.
    좋은 하루 되십시오. ^^;

    Avatar of dece24dece24
    Participant
    @dece24
    #2469

    윤석찬님의 블로그에 오픈아이디 플러그인 관련 포스트를 보고 저도 설치하려고 시도했다가 실패했습니다.

    제가 설치하려고 하는 플러그인은 아래 URL 을 참조해 주세요.
    http://the-notebook.org/12/01/2006/openid-comments-for-wordpress/

    윤석찬님도 "간만에 모든 서버 라이브러리를 업그레이드 하면서 curl 최신 버전이 php와 안맞아서 삽질을 좀 했네요." 라고 말씀하시던데 저는 이게 무슨소리인지 잘 모르겠구요. 혹시 이것과 관련된 문제 때문은 아닌지 궁금합니다.

    해당 플러그인의 설치도움말은 아래와 같았구요.

    INSTALLATION

    1. Upload the full directory into wp-content directory.
    2. Copy wp-content/themes/default/openidform.php and wp-content/themes/default/openidtrustpage.php into your current theme folder.
    3. Replace the code that outputs comment form in your comments.php template (or wp-paged-comments.php if you use it) with following: <?php include TEMPLATEPATH . ‘/openidform.php’?>.
    Usualy it begins with something like: <?php if ( get_option(‘comment_registration’) && !$user_ID ) : ?> and ends with something like: <?php do_action(‘comment_form’, $post->ID); ?> </form>
    4. If you used previous version of plugin you should deactivate it in Plugin options.
    5. Activate plugin in Plugin options.
    6. If you use SubscribeToComments or Brian’s Threaded Comments edit the file openidform.php and uncomment marked lines.

    일단 시키는대로 죄다 했음에도 불구하고 해당 플러그인을 활성화 하게 되면 아래와 같은 오류메시지가 나타납니다.

    Parse error: parse error, unexpected T_ELSE in /home/hosting_users/nurizip/www/wp/wp-content/themes/Naradesign_v1.0/comments.php on line 44

    오류메시지가 지적하는 부분의 comment.php 의 해당 코드는 아래와 같습니다.

    40 <!--Open ID Start-->
    41 <?php include TEMPLATEPATH . '/openidform.php'?>
    42 <!--Open ID End-->
    43 <?php endif; // If registration required and not logged in ?>
    44 <?php else : // Comments are closed ?>
    45 <p>
    46 <?php _e('Sorry, the comment form is closed at this time.'); ?>
    47 </p>
    48 <?php endif; ?>

    서버사이드쪽 지식이 없어서 오류수정방법을 가급적 구체적으로 설명해 주시면 감사드리겠습니다.
    부탁드립니다.

    Avatar of dece24dece24
    Participant
    @dece24
    #2471

    윤석찬님의 블로그에 오픈아이디 플러그인 관련 포스트를 보고 저도 설치하려고 시도했다가 실패했습니다.

    제가 설치하려고 하는 플러그인은 아래 URL 을 참조해 주세요.
    http://the-notebook.org/12/01/2006/openid-comments-for-wordpress/

    윤석찬님도 "간만에 모든 서버 라이브러리를 업그레이드 하면서 curl 최신 버전이 php와 안맞아서 삽질을 좀 했네요." 라고 말씀하시던데 저는 이게 무슨소리인지 잘 모르겠구요. 혹시 이것과 관련된 문제 때문은 아닌지 궁금합니다.

    해당 플러그인의 설치도움말은 아래와 같았구요.

    INSTALLATION

    1. Upload the full directory into wp-content directory.
    2. Copy wp-content/themes/default/openidform.php and wp-content/themes/default/openidtrustpage.php into your current theme folder.
    3. Replace the code that outputs comment form in your comments.php template (or wp-paged-comments.php if you use it) with following: <?php include TEMPLATEPATH . ‘/openidform.php’?>.
    Usualy it begins with something like: <?php if ( get_option(‘comment_registration’) && !$user_ID ) : ?> and ends with something like: <?php do_action(‘comment_form’, $post->ID); ?> </form>
    4. If you used previous version of plugin you should deactivate it in Plugin options.
    5. Activate plugin in Plugin options.
    6. If you use SubscribeToComments or Brian’s Threaded Comments edit the file openidform.php and uncomment marked lines.

    일단 시키는대로 죄다 했음에도 불구하고 해당 플러그인을 활성화 하게 되면 아래와 같은 오류메시지가 나타납니다.

    Parse error: parse error, unexpected T_ELSE in /home/hosting_users/nurizip/www/wp/wp-content/themes/Naradesign_v1.0/comments.php on line 44

    오류메시지가 지적하는 부분의 comment.php 의 해당 코드는 아래와 같습니다.

    40 <!--Open ID Start-->
    41 <?php include TEMPLATEPATH . '/openidform.php'?>
    42 <!--Open ID End-->
    43 <?php endif; // If registration required and not logged in ?>
    44 <?php else : // Comments are closed ?>
    45 <p>
    46 <?php _e('Sorry, the comment form is closed at this time.'); ?>
    47 </p>
    48 <?php endif; ?>

    서버사이드쪽 지식이 없어서 오류수정방법을 가급적 구체적으로 설명해 주시면 감사드리겠습니다.
    부탁드립니다.

    Avatar of 082net082net
    Keymaster
    @082net
    #2470

    오류내용으로 봐서는 PHP모듈이나 설정의 문제가 아닌 comments.php 파일 수정에 있어서의 문제로 보입니다.

    수정 하신 comments.php파일 전체를 볼 수가 없어 장담 하긴 힘들지만

    43 <?php endif; // If registration required and not logged in ?>

    이 라인을 삭제하시면 될 것으로 보입니다. openidform.php파일을 보니 그 부분까지 포함하고 있더군요.

    이렇게 해서 해결 되지 않는다면 comments.php 파일에서 if, else if(elseif), else, endif; 를 잘 살펴보시고, if구문이 제대로 마무리 되었는지를 확인 해 보세요.

    Avatar of 082net
    Facebook 사용자 모임 그룹 도 함께 운영되고 있으며, 격 주로 미트업과 스터디를 진행하고 있으니 관심 있으신 분들의 많은 참여 바랍니다 🙂
    Avatar of 082net082net
    Keymaster
    @082net
    #2472

    오류내용으로 봐서는 PHP모듈이나 설정의 문제가 아닌 comments.php 파일 수정에 있어서의 문제로 보입니다.

    수정 하신 comments.php파일 전체를 볼 수가 없어 장담 하긴 힘들지만

    43 <?php endif; // If registration required and not logged in ?>

    이 라인을 삭제하시면 될 것으로 보입니다. openidform.php파일을 보니 그 부분까지 포함하고 있더군요.

    이렇게 해서 해결 되지 않는다면 comments.php 파일에서 if, else if(elseif), else, endif; 를 잘 살펴보시고, if구문이 제대로 마무리 되었는지를 확인 해 보세요.

    Avatar of 082net
    Facebook 사용자 모임 그룹 도 함께 운영되고 있으며, 격 주로 미트업과 스터디를 진행하고 있으니 관심 있으신 분들의 많은 참여 바랍니다 🙂
5 글 보임 - 1에서 5 까지 (총 5 중에서)
  • 답변은 로그인 후 가능합니다.