今朝から、ワードプレスの新規インストールでこのエラーが発生する理由を知りたいと思っています。投稿プレビューに画像を配置しようとすると追加されます。src の URL が悪いため、プレビューが機能しません
<img src="http://myname.com/wp-content/uploads/2012/12/" width="" height="" style="position: absolute; opacity: 0;"/>
apache2 ログ:
[Sun Dec 09 15:54:44 2012] [error] PHP Warning: getimagesize() expects parameter 1 to be string, object given in /var/www/wordpress/wp-content/themes/montezuma/includes/thumb.php on line 222
[Sun Dec 09 15:54:44 2012] [error] PHP Warning: basename() expects parameter 1 to be string, object given in /var/www/wordpress/wp-content/themes/montezuma/includes/thumb.php on line 223
私のphpバージョン:PHP 5.3.3-7 + suhosin-Patch(cli)を使用したsqueeze14
私のワードプレスのバージョン: バージョン 3.4.2
thumb.php の行:
220 // no cache files - let's finally resize it
221 $new_img_path = image_resize( $file_path, $width, $height, $crop );
222 $new_img_size = getimagesize( $new_img_path );
223 $new_img = str_replace( basename( $image_src[0] ), basename( $new_img_path ), $image_src[0] );
何か案が?