refプラグインで画像サイズ取得に関するwarning†
- ページ: BugTrack
- 投稿者: reimy
- 優先順位: 重要
- 状態: 完了
- カテゴリー: プラグイン
- 投稿日: 2003-03-05 (水) 00:14:56
- バージョン: ref.inc.php 1.10
メッセージ†
ref.inc.phpで下記のwarningが出るようになりました。3/4のcvs各ファイルの更新を行なってから発生してます。
Warning: php_hostconnect: connect failed
in /hogehoge/public_html/plugin/ref.inc.php on line 143
Warning: getimagesize: Unable to open 'http://www.hogehoge.co.jp/images/hoge.jpg' for reading.
in /hogehoge/public_html/plugin/ref.inc.php on line 143
- あっ、更新の衝突でページの先頭が消えた…。BugTrack/245が皮肉にもここで再現しました。 -- reimy 2003-03-05 (水) 00:21:42
- ref.inc.phpの141~152、154行めをコメントアウトして暫定対処(^^;; -- reimy 2003-03-05 (水) 00:30:10
- fopen wrapperが無効だと、このあたりでエラーがでます。
php.iniのallow_url_fopen が On になっていますか?
セキュリティ上の問題などでallow_url_fopenをOnにできない場合のための対処は盛り込んでおきます。 -- ぱんだ 2003-03-05 (水) 14:39:40
- cvsに投入しました。cvs:plugin/ref.inc.php(r1.4:v1.11) -- ぱんだ 2003-03-05 (水) 16:02:56
- ふむふむ。,htaccessでphp_flag allow_url_fopen onにしました。 -- reimy 2003-03-05 (水) 18:28:01
- もともとallow_url_openはonだった。まだごくたまにwarningが出ます。画像の取得に失敗することがあるらしい。-- reimy 2003-03-07 (金) 00:20:51
- それはもう回避のしようがないですから、getimagesizeの頭に@をつけて、メッセージを抑止するしかないですね。 -- ぱんだ 2003-03-07 (金) 09:09:57
- cvsに投入しました。cvs:plugin/ref.inc.php(r1.4:v1.12) -- ぱんだ 2003-03-07 (金) 09:25:32