User:
Pass:
Keep:   
Xoops Cube Project
XOOPS Cube Project Site
Powered by Google


Powered by XOOPS Cube Legacy 2.1.8
PukiWikiMod 1.5.1
WordPress Module 0.6.0 Alpha
記事編集でエラー 投稿者: tm 投稿日:2005/07/01(Fri) 01:08 No.1723  
0.5.0にしてから記事編集できていたのですが
(一部のユーザさんがHTLMモードでは変更が反映しないとの報告がありました)

今はなぜか記事編集後、書き出ししても、保存して編集しても

Notice [PHP]: Undefined variable: edit_date in file modules/wordpress/wp-admin/post.php line 231
Warning [PHP]: Cannot add header information - headers already sent by (output started at /home/xxxx/public_html/modules/wordpress/wp-includes/functions.php:3881) in file modules/wordpress/wp-admin/post.php line 269
Notice [PHP]: Undefined variable: post_pingback in file modules/wordpress/wp-admin/post.php line 280
Notice [PHP]: Undefined variable: useutf8 in file modules/wordpress/wp-admin/post.php line 284
Notice [PHP]: Undefined variable: meta in file modules/wordpress/wp-admin/post.php line 287
Notice [PHP]: Undefined variable: deletemeta in file modules/wordpress/wp-admin/post.php line 292
Notice [PHP]: Undefined index: metakeyselect in file modules/wordpress/wp-admin/admin-functions.php line 268


がでるようになりました。
触った箇所をチェック中です。updateping関係が怪しいのかな?
とも思います(今朝1サイト削除したので)が、まだよくわかりません。

[WordPress]-[一般設定]画面中の、BLOCKのCSS参照をHTMLヘッダ部分に挿入
も「いいえ」に戻してみています。


Re: 記事編集でエラー 投稿者: tm 投稿日:2005/07/03(Sun) 08:23 No.1739  

wp-config-custom.phpが0.5.0になってかわっているんですね。
0.5.0に付属のwp-config-custom.phpをテーマディレクトリに入れてみました。

結果は同じで、上記のエラーがでるようです。

またコメントを送信してもPHPエラーを確認しました。

Warning [PHP]: Cannot add header information - headers already sent by (output started at /home/apap/public_html/modules/wordpress/wp-includes/functions.php:3881) in file modules/wordpress/wp-comments-post.php line 188
Warning [PHP]: Cannot add header information - headers already sent by (output started at /home/××××/public_html/modules/wordpress/wp-includes/functions.php:3881) in file modules/wordpress/wp-comments-post.php line 189
Warning [PHP]: Cannot add header information - headers already sent by (output started at /home/××××/public_html/modules/wordpress/wp-includes/functions.php:3881) in file modules/wordpress/wp-comments-post.php line 190
Warning [PHP]: Cannot add header information - headers already sent by (output started at /home/××××/public_html/modules/wordpress/wp-includes/functions.php:3881) in file modules/wordpress/wp-comments-post.php line 191
Warning [PHP]: Cannot add header information - headers already sent by (output started at /home/××××/public_html/modules/wordpress/wp-includes/functions.php:3881) in file modules/wordpress/wp-comments-post.php line 192
Warning [PHP]: Cannot add header information - headers already sent by (output started at /home/××××/public_html/modules/wordpress/wp-includes/functions.php:3881) in file modules/wordpress/wp-comments-post.php line 193
Warning [PHP]: Cannot add header information - headers already sent by (output started at /home/××××/public_html/modules/wordpress/wp-includes/functions.php:3881) in file modules/wordpress/wp-comments-post.php line 194
Warning [PHP]: Cannot add header information - headers already sent by (output started at /home/××××/public_html/modules/wordpress/wp-includes/functions.php:3881) in file modules/wordpress/wp-comments-post.php line 198



Re[2]: 記事編集でエラー 投稿者: tm 投稿日:2005/07/03(Sun) 08:31 No.1740  

コメントの削除をした場合も

Warning [PHP]: Cannot add header information - headers already sent by (output started at /home/××××/public_html/modules/wordpress/wp-includes/functions.php:3881) in file modules/wordpress/wp-admin/post.php line 469



がでているようです。示された行をみても
タブコードしかなかったりして、てづまり状態です。
なにかチェック項目がありましたら、フォローいただければ幸いです。


Re: 記事編集でエラー 投稿者: のぶのぶ 投稿日:2005/07/03(Sun) 08:59 No.1741  

引用:

tmさんは書きました:
0.5.0にしてから記事編集できていたのですが
(一部のユーザさんがHTLMモードでは変更が反映しないとの報告がありました)

今はなぜか記事編集後、書き出ししても、保存して編集しても

Notice [PHP]: Undefined variable: edit_date in file modules/wordpress/wp-admin/post.php line 231
Warning [PHP]: Cannot add header information - headers already sent by (output started at /home/xxxx/public_html/modules/wordpress/wp-includes/functions.php:3881) in file modules/wordpress/wp-admin/post.php line 269
Notice [PHP]: Undefined variable: post_pingback in file modules/wordpress/wp-admin/post.php line 280
Notice [PHP]: Undefined variable: useutf8 in file modules/wordpress/wp-admin/post.php line 284
Notice [PHP]: Undefined variable: meta in file modules/wordpress/wp-admin/post.php line 287
Notice [PHP]: Undefined variable: deletemeta in file modules/wordpress/wp-admin/post.php line 292
Notice [PHP]: Undefined index: metakeyselect in file modules/wordpress/wp-admin/admin-functions.php line 268


がでるようになりました。
触った箇所をチェック中です。updateping関係が怪しいのかな?
とも思います(今朝1サイト削除したので)が、まだよくわかりません。

[WordPress]-[一般設定]画面中の、BLOCKのCSS参照をHTMLヘッダ部分に挿入
も「いいえ」に戻してみています。

このメッセージは、更新後にページリダイレクト用のHTTP_HEADERの出力を行うときに、
すでに、HTML内に表示する為の文字列が出力されている場合のメッセージです。
この現象がある場合には、phpファイルを修正したときに誤って<?や?>の前後に
余分な改行や空白を埋め込んでしまっていないかをチェックしてみて下さい。


Re[2]: 記事編集でエラー 投稿者: のぶのぶ 投稿日:2005/07/03(Sun) 09:03 No.1742  

引用:

wp-config-custom.phpが0.5.0になってかわっているんですね。

変わったと言っても、カレンダで曜日や月の表記を変えたい場合以外には、そのままでも問題ありません。
あとは、TrackBackやモブログ用のデバッグ出力制御を行いたい場合のサンプル行が増えているくらいです。


Re[3]: 記事編集でエラー(解決) 投稿者: tm 投稿日:2005/07/03(Sun) 10:36 No.1743  

wp-config-custom.phpの末尾に


$GLOBALS['wp_month_format'] = '%MONTH %YEAR'; 年月表示の表示形式

*/

?>

[EOF]


のように無駄な改行がありました。
いったんモジュールを全入れ替えして
アップデートしても発生したので
テーマフォルダの中をチェックしました。

それに、PHPエラーをよくみると
該当箇所を示している箇所がありました。
お恥ずかしいありさまですが、勉強になりました。

ありがとうございます。


Re: 記事編集でエラー 投稿者: のぶのぶ 投稿日:2005/07/03(Sun) 14:07 No.1744  

引用:

(一部のユーザさんがHTLMモードでは変更が反映しないとの報告がありました)

FireFox上のSPAWにて、この不具合がある事を確認しました。
SPAWのバグ究明は少々手間がかかりそうなので、必ずDESINGモードに戻してから、
「書き出し」ボタンを押していただくようにお伝え下さい。


Re[2]: 記事編集でエラー 投稿者: のぶのぶ 投稿日:2005/07/03(Sun) 14:49 No.1745  

一応、不具合箇所の特定が出来ました。
common/spaw/class/script_gecko.js.phpの1193行目の

  function SPAW_getHtmlValue(editor, thefield)
  {
    // temporary simplified
    return document.getElementById(editor+"_rEdit").contentDocument.body.innerHTML;
  }



  function SPAW_getHtmlValue(editor, thefield)
  { // fixed bug by nobunobu 2005/07/05
    if(document.getElementById('SPAW_'+editor+'_editor_mode').value == 'design') {
      return document.getElementById(editor+"_rEdit").contentDocument.body.innerHTML;
    } else {
      return document.getElementById(editor).value;
    }
  }

に変更頂ければ、htmlモードのままで「書き出し」を行っても反映されると思います。


Re[3]: 記事編集でエラー 投稿者: tm 投稿日:2005/07/03(Sun) 23:15 No.1751  

調査ありがとうございました。

SPAWの中に問題があったんですね。
・・・問題というよりも gecko 対応は
そんな部分もまだあるっていう事なのかも。。。

差し替えて問題なく動作することを確認しました。
感謝いたします。


NO: PASS:

このプログラムは KENT 氏の yybbs を xoops(PHP) に移植したものです
- KENT -