Polyglot 설치 에러 – 한국워드프레스사용자모임 https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/feed/ Sat, 04 May 2024 20:12:15 +0000 https://bbpress.org/?v=2.6.9 ko-KR https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1413 <![CDATA[Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1413 Wed, 12 Apr 2006 03:53:56 +0000 larsulrich 답변이 늦어져서 죄송합니다.

제가 polyglot 플러그인을 사용하질 않아 정확하게 답변이 될지는 모르겠네요.

플러그인 파일의 중간쯤에 보면 function polyglot_list_langs() 함수를 정의 하는 부분에서(481~539번째줄) 링크를 표시할때 get_settings(‘siteurl’)을 사용하더군요.

저나 larsulrich님처럼 블로그주소와 워드프레스 설치폴더가 다른경우는 이부분을 get_settings(‘home’)으로 사용해야합니다.

get_settings(‘siteurl’) : 워드프레스가 설치된폴더 경로(url)
get_settings(‘home’) : 워드프레스 블로그 접속 주소(url)

다른 플러그인의 경우에도 "http://도메인/나머지주소&quot; 로 표시되어야 할 링크 주소가 "http://도메인주소/워드프레스설치폴더/나머지주소"로 표시된다면 플러그인 파일에서 get_settings(‘siteurl’)부분을 찾아서 ‘home’으로 바꿔주시면 해결될겁니다.

]]>
https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1414 <![CDATA[Reply To: Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1414 Wed, 12 Apr 2006 03:53:56 +0000 larsulrich http://blog.aeronova.org/2006/04/04/wp-plugin-polyglot/
aeronova님 블로그를 참조하여 모든 셋팅을 마친후 플러그인을 활성화 하면
아래와 같은 에러 메시지가 뜹니다

Warning: Cannot modify header information – headers already sent by (output started at /home/larsulrich/html/blog/wp-content/plugins/polyglot/polyglot.php:1) in /home/larsulrich/html/blog/wp-admin/plugins.php on line 16

뒤로 가면 활성화는 일단 되어있습니다
그리고 포스트를 하나 작성하려고 write를 클릭하면 아래 이미지 업로드 부분에

Warning: Cannot modify header information – headers already sent by (output started at /home/larsulrich/html/blog/wp-content/plugins/polyglot/polyglot.php:1) in /home/larsulrich/html/blog/wp-admin/inline-uploading.php on line 5

Warning: Cannot modify header information – headers already sent by (output started at /home/larsulrich/html/blog/wp-content/plugins/polyglot/polyglot.php:1) in /home/larsulrich/html/blog/wp-admin/inline-uploading.php on line 140
위와 같은 2개의 에러 메시지가 출력되어있습니다

다시 비활성화를 클릭하면 한번에 되지 않고
Warning: Cannot modify header information – headers already sent by (output started at /home/larsulrich/html/blog/wp-content/plugins/polyglot/polyglot.php:1) in /home/larsulrich/html/blog/wp-admin/plugins.php on line 22
위와 같이 에러 메시지가 출력되며 뒤로 가서 한번 더 클릭하면 비활성화가 됩니다

그런데 Ajax Spoiler 0.4 플러그인도 같이 비활성화가 되네요.

]]>
https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1420 <![CDATA[Reply To: Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1420 Wed, 12 Apr 2006 03:53:56 +0000 larsulrich http://blog.aeronova.org/2006/04/04/wp-plugin-polyglot/
aeronova님 블로그를 참조하여 모든 셋팅을 마친후 플러그인을 활성화 하면
아래와 같은 에러 메시지가 뜹니다

Warning: Cannot modify header information – headers already sent by (output started at /home/larsulrich/html/blog/wp-content/plugins/polyglot/polyglot.php:1) in /home/larsulrich/html/blog/wp-admin/plugins.php on line 16

뒤로 가면 활성화는 일단 되어있습니다
그리고 포스트를 하나 작성하려고 write를 클릭하면 아래 이미지 업로드 부분에

Warning: Cannot modify header information – headers already sent by (output started at /home/larsulrich/html/blog/wp-content/plugins/polyglot/polyglot.php:1) in /home/larsulrich/html/blog/wp-admin/inline-uploading.php on line 5

Warning: Cannot modify header information – headers already sent by (output started at /home/larsulrich/html/blog/wp-content/plugins/polyglot/polyglot.php:1) in /home/larsulrich/html/blog/wp-admin/inline-uploading.php on line 140
위와 같은 2개의 에러 메시지가 출력되어있습니다

다시 비활성화를 클릭하면 한번에 되지 않고
Warning: Cannot modify header information – headers already sent by (output started at /home/larsulrich/html/blog/wp-content/plugins/polyglot/polyglot.php:1) in /home/larsulrich/html/blog/wp-admin/plugins.php on line 22
위와 같이 에러 메시지가 출력되며 뒤로 가서 한번 더 클릭하면 비활성화가 됩니다

그런데 Ajax Spoiler 0.4 플러그인도 같이 비활성화가 되네요.

]]>
https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1415 <![CDATA[Reply To: Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1415 Wed, 12 Apr 2006 04:14:59 +0000 Gosinga polyglot.php 파일을 utf-8로 저장하실 때 유니코드 표식(BOM)을 함께 저장하면 위의 오류가 나타날 수 있습니다.

다음의 내용은 제 블로그에 썼던 내용인데 참고하시기 바랍니다:

Headers already sent … 오류의 해결

워드프레스 사용자들뿐만 아니라 다른 프로그램 사용자들도 자주 겪는 Headers already sent … 오류는 주로 플러그인 파일과 관련하여 발생한다. 이 오류가 발생할 경우에는 다음의 경우 중 어느 하나에 속한다:

1. 해당 플러그인 파일의 첫 문장은 <?php 로 시작할텐데, 이 <?php 앞에 공백을 두면 이 오류가 발생할 수 있다.
2. 해당 플러그인 파일의 마지막 문장은 ?> 로 끝날텐데, 이 ?> 뒤에 공백을 남기면 이 오류가 발생할 수 있다.
3. 해당 플러그인 파일을 저장할 때 노트패드나 편집기에서 utf-8 인코딩 형식으로 저장하면 이런 결과가 발생할 수 있다.

위 사유들 중에서 utf-8로 저장한다고 해서 무조건 이 오류가 발생하는 것은 아니다. 대부분의 편집기는 파일을 utf-8 형식으로 저장할 때 그 파일이 유니코드로 인코딩되었음을 알리는 표식(Unicode Signature, 혹은 BOM이라고 함. utf-8 문서의 처음 2 bytes에 추가되는 0xFF 0xFE를 말함)을 문서의 맨 처음에 보이지 않게 추가한다. 노트패드 역시 이 표식을 추가하여 저장한다. 그 결과, 파일을 열어보면 이 표식은 보이지 않지만 실제로는 <?php 앞에 이 표식이 위치해 있는 셈이다.

이런 이유에서, 노트패드나 기타 편집기로 플러그인 파일을 utf-8로 저장하여 실행해 보면 어김없이 Headers already sent … 오류가 발생하게 된다. 이 오류가 발생하는 좀더 근본적인 이유는 PHP가 이 utf-8 BOM을 무시하지 않고 하나의 문자로 읽기 때문이다. 이 문제를 해결하려면 파일을 utf-8 형식으로 저장할 때 utf-8 BOM을 추가하지 말아야 한다. 그러나 노트패드는 파일을 utf-8 형식으로 저장할 때 무조건 BOM을 추가하므로 노트패드로는 해결 불가능하다.

그러나, 좀더 고급인 편집기에서는 “Unicode Signature(BOM) 추가 여부”를 옵션으로 설정할 수 있다. 주로 파일저장과 관련한 옵션에 이 설정항목이 있다. 대부분의 경우라면 기본값으로 Unicode Signature를 추가하도록 설정되어 있으므로 이를 변경해야 한다. 그리고 나서 파일을 utf-8 인코딩 형식으로 저장해야 한다.

나같은 경우에는 주로 EmEditor를 편집기로 사용하고 있는데, 이 편집기의 경우 Tools > Properties for All Configurations > File > Saving … > Add a Unicode Signature(BOM)의 체크를 해제하면 된다.

]]>
https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1421 <![CDATA[Reply To: Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1421 Wed, 12 Apr 2006 04:14:59 +0000 Gosinga polyglot.php 파일을 utf-8로 저장하실 때 유니코드 표식(BOM)을 함께 저장하면 위의 오류가 나타날 수 있습니다.

다음의 내용은 제 블로그에 썼던 내용인데 참고하시기 바랍니다:

Headers already sent … 오류의 해결

워드프레스 사용자들뿐만 아니라 다른 프로그램 사용자들도 자주 겪는 Headers already sent … 오류는 주로 플러그인 파일과 관련하여 발생한다. 이 오류가 발생할 경우에는 다음의 경우 중 어느 하나에 속한다:

1. 해당 플러그인 파일의 첫 문장은 <?php 로 시작할텐데, 이 <?php 앞에 공백을 두면 이 오류가 발생할 수 있다.
2. 해당 플러그인 파일의 마지막 문장은 ?> 로 끝날텐데, 이 ?> 뒤에 공백을 남기면 이 오류가 발생할 수 있다.
3. 해당 플러그인 파일을 저장할 때 노트패드나 편집기에서 utf-8 인코딩 형식으로 저장하면 이런 결과가 발생할 수 있다.

위 사유들 중에서 utf-8로 저장한다고 해서 무조건 이 오류가 발생하는 것은 아니다. 대부분의 편집기는 파일을 utf-8 형식으로 저장할 때 그 파일이 유니코드로 인코딩되었음을 알리는 표식(Unicode Signature, 혹은 BOM이라고 함. utf-8 문서의 처음 2 bytes에 추가되는 0xFF 0xFE를 말함)을 문서의 맨 처음에 보이지 않게 추가한다. 노트패드 역시 이 표식을 추가하여 저장한다. 그 결과, 파일을 열어보면 이 표식은 보이지 않지만 실제로는 <?php 앞에 이 표식이 위치해 있는 셈이다.

이런 이유에서, 노트패드나 기타 편집기로 플러그인 파일을 utf-8로 저장하여 실행해 보면 어김없이 Headers already sent … 오류가 발생하게 된다. 이 오류가 발생하는 좀더 근본적인 이유는 PHP가 이 utf-8 BOM을 무시하지 않고 하나의 문자로 읽기 때문이다. 이 문제를 해결하려면 파일을 utf-8 형식으로 저장할 때 utf-8 BOM을 추가하지 말아야 한다. 그러나 노트패드는 파일을 utf-8 형식으로 저장할 때 무조건 BOM을 추가하므로 노트패드로는 해결 불가능하다.

그러나, 좀더 고급인 편집기에서는 “Unicode Signature(BOM) 추가 여부”를 옵션으로 설정할 수 있다. 주로 파일저장과 관련한 옵션에 이 설정항목이 있다. 대부분의 경우라면 기본값으로 Unicode Signature를 추가하도록 설정되어 있으므로 이를 변경해야 한다. 그리고 나서 파일을 utf-8 인코딩 형식으로 저장해야 한다.

나같은 경우에는 주로 EmEditor를 편집기로 사용하고 있는데, 이 편집기의 경우 Tools > Properties for All Configurations > File > Saving … > Add a Unicode Signature(BOM)의 체크를 해제하면 된다.

]]>
https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1416 <![CDATA[Reply To: Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1416 Wed, 12 Apr 2006 05:06:45 +0000 larsulrich 인코딩을 ansi로 설정해서 저장하니 바로 활성화 됩니다 😀
감사드리구요 8)

포스팅을 할때 언어를 선택하는 부분이 있는가요?
전 사이드 바에 언어선택하는 부분만 출력되고 별다른 변화가 없네요 :-//
그리고 사이드바의 언어를 선택하면

Forbidden
You don’t have permission to access /blog/ on this server.

——————————————————————————–

Apache/1.3.34 Server at larsulrich.skynet.co.kr Port 80

위와 같은 에러메시지가 출력됩니다

http://larsulrich.skynet.co.kr

]]>
https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1422 <![CDATA[Reply To: Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1422 Wed, 12 Apr 2006 05:06:45 +0000 larsulrich 인코딩을 ansi로 설정해서 저장하니 바로 활성화 됩니다 😀
감사드리구요 8)

포스팅을 할때 언어를 선택하는 부분이 있는가요?
전 사이드 바에 언어선택하는 부분만 출력되고 별다른 변화가 없네요 :-//
그리고 사이드바의 언어를 선택하면

Forbidden
You don’t have permission to access /blog/ on this server.

——————————————————————————–

Apache/1.3.34 Server at larsulrich.skynet.co.kr Port 80

위와 같은 에러메시지가 출력됩니다

http://larsulrich.skynet.co.kr

]]>
https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1417 <![CDATA[Reply To: Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1417 Wed, 12 Apr 2006 19:44:09 +0000 aeronova

포스팅을 할때 언어를 선택하는 부분이 있는가요?
전 사이드 바에 언어선택하는 부분만 출력되고 별다른 변화가 없네요 Embarassed

포스팅할때 언어별로 tag를 넣어주어야 합니다. 예를 들면


<lang_en>
Posted in English.
</lang_en>
<lang_ko>
한국어로 포스트.
</lang_ko>

tag는 <lang_en>이나 [lang_en] 둘 다 됩니다.

그리고 sidebar의 메뉴에서 언어를 선택하면 왜 에러가 나는지 저도 모르겠네요. 🙁

]]>
https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1423 <![CDATA[Reply To: Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1423 Wed, 12 Apr 2006 19:44:09 +0000 aeronova

포스팅을 할때 언어를 선택하는 부분이 있는가요?
전 사이드 바에 언어선택하는 부분만 출력되고 별다른 변화가 없네요 Embarassed

포스팅할때 언어별로 tag를 넣어주어야 합니다. 예를 들면


<lang_en>
Posted in English.
</lang_en>
<lang_ko>
한국어로 포스트.
</lang_ko>

tag는 <lang_en>이나 [lang_en] 둘 다 됩니다.

그리고 sidebar의 메뉴에서 언어를 선택하면 왜 에러가 나는지 저도 모르겠네요. 🙁

]]>
https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1418 <![CDATA[Reply To: Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1418 Thu, 13 Apr 2006 02:20:16 +0000 테그였군요 잘되네요 X-D
퀵태그에 넣어 보려고 했는데 잘안되네요 8)

aeronova님 블로그는 사이드바에서 언어선택하면 잘 작동하는군요 :-//
호스팅문제일까요?

]]>
https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1424 <![CDATA[Reply To: Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1424 Thu, 13 Apr 2006 02:20:16 +0000 테그였군요 잘되네요 X-D
퀵태그에 넣어 보려고 했는데 잘안되네요 8)

aeronova님 블로그는 사이드바에서 언어선택하면 잘 작동하는군요 :-//
호스팅문제일까요?

]]>
https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1419 <![CDATA[Reply To: Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1419 Thu, 13 Apr 2006 15:29:29 +0000 aeronova 이제보니 larsulrich님의 사이드바 언어 링크가 이상합니다.
저는 이렇게 나오는데,


http://blog.aeronova.org/?lp_lang_pref=en
http://blog.aeronova.org/?lp_lang_pref=ko

larsulrich님의 경우는


http://larsulrich.skynet.co.kr/blog/?lp_lang_pref=en
http://larsulrich.skynet.co.kr/blog/?lp_lang_pref=ko

이렇습니다. 원래는 링크가 아래와 같으면 제대로 나오게 됩니다.


http://larsulrich.skynet.co.kr/?lp_lang_pref=ko
http://larsulrich.skynet.co.kr/?lp_lang_pref=en

아무래도 퍼머링크 문제인 듯 싶네요.
.htaccess의 rewrite rule을 적어 주셔야 문제가 해결되겠네요.
(저도 rewrite rule은 잘 몰라서 도움 드리기가 곤란합니다.ㅠㅜ)

]]>
https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1425 <![CDATA[Reply To: Polyglot 설치 에러]]> https://kopress.kr/topic/polyglot-%ec%84%a4%ec%b9%98-%ec%97%90%eb%9f%ac/#post-1425 Thu, 13 Apr 2006 15:29:29 +0000 aeronova 이제보니 larsulrich님의 사이드바 언어 링크가 이상합니다.
저는 이렇게 나오는데,


http://blog.aeronova.org/?lp_lang_pref=en
http://blog.aeronova.org/?lp_lang_pref=ko

larsulrich님의 경우는


http://larsulrich.skynet.co.kr/blog/?lp_lang_pref=en
http://larsulrich.skynet.co.kr/blog/?lp_lang_pref=ko

이렇습니다. 원래는 링크가 아래와 같으면 제대로 나오게 됩니다.


http://larsulrich.skynet.co.kr/?lp_lang_pref=ko
http://larsulrich.skynet.co.kr/?lp_lang_pref=en

아무래도 퍼머링크 문제인 듯 싶네요.
.htaccess의 rewrite rule을 적어 주셔야 문제가 해결되겠네요.
(저도 rewrite rule은 잘 몰라서 도움 드리기가 곤란합니다.ㅠㅜ)

]]>