コメント統合機能
- このフォーラムに新規トピックを投稿できます
- このフォーラムではゲスト投稿が許可されています
投稿ツリー
- コメント統合機能 (かぷりこ, 2010/11/16 16:04)
- Re: コメント統合機能 (なーお, 2010/11/16 16:50)
- Re: コメント統合機能 (かぷりこ, 2010/11/18 9:21)
- Re: コメント統合機能 (ゲスト, 2010/11/18 9:43)
- Re: コメント統合機能 (なーお, 2010/11/18 11:43)
- Re: コメント統合機能 (ゲスト, 2010/11/19 9:27)
- Re: コメント統合機能 (ゲスト, 2010/11/19 9:36)
- Re: コメント統合機能 (ゲスト, 2010/11/19 9:41)
コメント統合機能
msg# 1以前Web鯖機のアップデート時にPHPが5.3になってまたダウングレードもいやだったのでXOOPSのサイトを閉鎖していたのですが、やっとXOOPSがPHP5.3に対応してくれたおかげでメインサイトをXOOPSに戻せた者です。
D3blogのSQLデータだけバックアップを残しXCL2.2を新規でインストールしてインポートの為にD3blogをインストール。その後d3diaryをインストールしてD3blogからインポートをして正常に表示、投稿等を確認しました。
しかし、コメント統合を使いたくてコメント統合機能を使うとd3diaryのメイン表示がおかしくなります(cssが読み込まれてない感じ?)
コメント統合は以前D3blogで設定したときと同じようにD3forum側では触らず、d3diary側でD3forumディレクティブ名、統合したいフォーラムidの記載です。
このままでは困るのでD3forumのフォーラム設定のところで
d3diary::d3diaryD3commentContent::d3diary
を入力したところ表示が正常になりましたが、
今度はコメントを投稿したり統合対象のフォーラムを開こうとすると真っ白な画面で投稿もされていません。
よろしければお助けください
サイト/システム情報
XC Legacyバージョン : XOOPS Cube Legacy 2.2 beta
使用言語 : ja_utf8
オペレーティングシステム : Linux b
サーバー : Apache/2.2.14 (Ubuntu)
PHPバージョン : 5.3.2-1ubuntu4.5
MySQLのバージョン : 5.1.41-3ubuntu12.6
PHPの設定
セーフモード : オフ
最大実行時間 : 30 sec.
メモリ制限 : 64Mb
表示エラー : オフ
ショートオープンタグ : オン
ファイルをアップロード : オン ( アップロード最大ファイルサイズ:M, Post最大サイズ:M )
マジッククオート : オフ
グローバル変数の登録 : オフ
出力バッファリング : オフ
open_basedir : オフ
url_fopenを許可 : オフ
DOMの拡張 : はい
exifの拡張 : はい
gettextの拡張 : はい
JSONの拡張 : はい
XMLを有効 : はい
Curlの拡張 : はい
Zlibを有効 : はい
Soapの拡張 : はい
Mbstringを有効 : はい
Iconvの利用 : はい
GDの拡張 : はい
GD Version: 2.0
GDの拡張 Image create Truecolor
かぷりこさん、こんにちは。
d3diaryのバージョンと、d3forumのバージョンを確認して教えてください。
- d3forumの他のフォーラムでは正常に書き込みできるのですよね?
- d3forumのバージョンは、0.85でしか検証できていませんので、もしかすると0.84以前では問題が出るかもしれません。 もしそうでしたら、試しに0.85にバージョンアップしてみていただくことは可能でしょうか。
- それと、自鯖でしたらapacheのエラーログを確認してみてください。 何かFatalが出ていそうです。
よろしくお願いします。
Re: コメント統合機能
msg# 1.1.12010年11月からのapacheのエラーログ
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/imagick.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Sun Nov 07 08:01:59 2010] [notice] Apache/2.2.14 (Ubuntu) mod_ssl/2.2.14 OpenSSL/0.9.8k configured -- resuming normal operations
[Fri Nov 12 16:55:36 2010] [notice] Graceful restart requested, doing restart
[Fri Nov 12 16:55:36 2010] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/imagick.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Fri Nov 12 16:55:36 2010] [notice] Apache/2.2.14 (Ubuntu) mod_ssl/2.2.14 OpenSSL/0.9.8k configured -- resuming normal operations
[Fri Nov 12 17:01:51 2010] [notice] caught SIGTERM, shutting down
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/imagick.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Fri Nov 12 17:01:55 2010] [notice] Apache/2.2.14 (Ubuntu) mod_ssl/2.2.14 OpenSSL/0.9.8k configured -- resuming normal operations
[Sun Nov 14 07:51:21 2010] [notice] Graceful restart requested, doing restart
[Sun Nov 14 07:51:21 2010] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
よろしくお願いします
Re: コメント統合機能
msg# 1.2Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3diary/class/d3diaryConf.class.php line 109
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3diary/class/d3diaryConf.class.php line 110
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3diary/class/d3diaryConf.class.php line 111
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3diary/class/d3diaryConf.class.php line 119
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3diary/class/d3diaryConf.class.php line 139
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 1614
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 1634
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 1637
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 1647
Unknown Condition [8192]: Function split() is deprecated in file /xoops_trust_path/modules/d3diary/main/detail.php line 71
Notice [PHP]: Undefined offset: 3 in file /xoops_trust_path/modules/d3diary/main/detail.php line 142
Unknown Condition [8192]: Function split() is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 336
Unknown Condition [8192]: Function split() is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 336
Unknown Condition [8192]: Function split() is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 632
Unknown Condition [8192]: Function split() is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 632
Unknown Condition [8192]: Function split() is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 632
Unknown Condition [8192]: Function split() is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 632
Unknown Condition [8192]: Function split() is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 522
Unknown Condition [8192]: Function split() is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 522
Unknown Condition [8192]: Function split() is deprecated in file /xoops_trust_path/modules/d3diary/class/func.class.php line 522
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3forum/class/D3commentObj.class.php line 17
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3forum/class/D3commentObj.class.php line 38
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3forum/class/D3commentObj.class.php line 42
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3forum/class/D3commentObj.class.php line 52
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3forum/include/comment_functions.php line 349
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3forum/include/common_functions.php line 159
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /xoops_trust_path/modules/d3forum/include/common_functions.php line 163
Warning [PHP]: include_once(/xoops_trust_path/modules//class/D3commentAbstract.class.php) [function.include-once]: failed to open stream: No such file or directory in file /xoops_trust_path/modules/d3diary/class/func.class.php line 1613
Warning [PHP]: include_once() [function.include]: Failed opening '/xoops_trust_path/modules//class/D3commentAbstract.class.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in file /xoops_trust_path/modules/d3diary/class/func.class.php line 1613
Warning [PHP]: include_once(/xoops_trust_path/modules//class/D3commentAbstract.class.php) [function.include-once]: failed to open stream: No such file or directory in file /xoops_trust_path/modules/d3diary/class/func.class.php line 1633
Warning [PHP]: include_once() [function.include]: Failed opening '/xoops_trust_path/modules//class/D3commentAbstract.class.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in file /xoops_trust_path/modules/d3diary/class/func.class.php line 1633
XOOPSのPHPデバグを忘れてました。
ONにするとこういったものが出ます。
modulesの後にスラッシュが2個なのは問題ないでしょうか?
かぷりこさん
原因がわかった気がします。
- case1:
この部分は、d3diaryのブロック「日記コメントトピック 」か「日記コメント投稿リスト」を表示した時に発生しますね。 もしこれをご使用でしたら、まずこれを非表示にしてみてください。
その上で、trust/modules/d3diary/class/func.class.php の1620行目付近を、以下のように修正してください。
修正したら、あらためて表示してみてください。
$mytrustdirpath = !empty($params['external_trustdirname']) ? XOOPS_TRUST_PATH.'/modules/'.$params['external_trustdirname'] : XOOPS_TRUST_PATH.'/modules/d3forum' ;
- case2:
私のサイトで別に配布している、コメント統合閲覧権限連動ハック-ver0.85_003、0.85_003aをご使用の場合も、同様の現象が発生する場合があるかもしれません。 ご使用中でしょうか。
その場合は、ハックで追加されたファイル trust/modules/d3forum/class/D3commentObj.class.php の13行目付近を、上記と同様に変更してみてください。
- 今回の不具合が起きる事象は
全ての場合に発生するわけではなく、コメント統合のフォーラム設定で、例えばd3diary::d3diaryD3commentContent::d3diary といったクラス指定が全ての統合フォーラム正しくされている場合は発生せず、 {XOOPS_URL}/modules/dirname から始まるsprintf()用のフォーマットで記述されたフォーラムが存在する場合のみに発生します。 クラスが配布されている場合はクラス指定してご使用ください。
- 今回の不具合が起きる事象は
以上、ご報告、ありがとうございました。 次回の版で修正します。
なお、かぷりこさんのphpの設定が、表示エラー : オフ になっているようですので、これをエラーが出力されるようにしないと、apacheにログが出ないんじゃなかったかな? とも思います。(良く調べてませんが)一度確認してみてください。
Re: コメント統合機能
msg# 1.31620行目と書かれているので
XOOPS_TRUST_PATH.'/modules/'.$params['external_trustdirname'].'/class' ,
を
$mytrustdirpath = !empty($params['external_trustdirname']) ? XOOPS_TRUST_PATH.'/modules/'.$params['external_trustdirname'] : XOOPS_TRUST_PATH.'/modules/d3forum' ;
に変更してみたところ真っ白になりブログが完全に表示できなくなりました。
Re: コメント統合機能
msg# 1.4コメント統合閲覧権限連動ハック-ver0.85_003、0.85_003aを使用していて1610行目が/modules/d3forum/class/D3commentObj.class.php の13行目と同じでしたので1610行目の
$mytrustdirpath = XOOPS_TRUST_PATH.'/modules/'.$params['external_trustdirname'] ;
を変更してみましたが表示は最初と同じでCSSが無いような状態です
でもWarningは無くなりました。
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/d3diaryConf.class.php line 109
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/d3diaryConf.class.php line 110
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/d3diaryConf.class.php line 111
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/d3diaryConf.class.php line 119
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/d3diaryConf.class.php line 139
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 1614
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 1634
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 1637
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 1647
Unknown Condition [8192]: Function split() is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/main/detail.php line 71
Notice [PHP]: Undefined offset: 3 in file /home/boomboom/xoops_trust_path/modules/d3diary/main/detail.php line 142
Unknown Condition [8192]: Function split() is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 336
Unknown Condition [8192]: Function split() is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 336
Unknown Condition [8192]: Function split() is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 632
Unknown Condition [8192]: Function split() is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 632
Unknown Condition [8192]: Function split() is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 632
Unknown Condition [8192]: Function split() is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 632
Unknown Condition [8192]: Function split() is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 522
Unknown Condition [8192]: Function split() is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 522
Unknown Condition [8192]: Function split() is deprecated in file /home/boomboom/xoops_trust_path/modules/d3diary/class/func.class.php line 522
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3forum/class/D3commentObj.class.php line 17
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3forum/class/D3commentObj.class.php line 38
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3forum/class/D3commentObj.class.php line 42
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3forum/class/D3commentObj.class.php line 52
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3forum/include/comment_functions.php line 349
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3forum/include/common_functions.php line 159
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/boomboom/xoops_trust_path/modules/d3forum/include/common_functions.php line 163
Re: コメント統合機能
msg# 1.5すみません
表示がおかしいどころか真っ白になるのでフォーラム側の
d3diary::d3diaryD3commentContent::d3diary
を消していましたが、上記変更後に再度設定したところ正常にコメント統合が使用できるようになりました。
ありがとうございました。