CRON使用時子テーマでエラーが起きています。
-
WebCronを使わずサーバーのCronを使うように設定したところ、
子テーマのfunction.phpとwp-includes/media.phpでエラーが起きているようです。PHP Warning: Missing argument 1 for wp_get_attachment_image_src(), called in /home/users/WORDPRESS/wp-content/themes/twentyfourteen-child/functions.php on line 38 and defined in /home/users/WORDPRESS/wp-includes/media.php on line 822
function.php ※38行目は下の3行目。
if(strpos(get_bloginfo(‘url’), ‘https’) !== false) {
$url = str_replace(‘http:’, ‘https:’, get_the_post_thumbnail());
$url = str_replace(‘http:’, ‘https:’, wp_get_attachment_image_src());
}media.php ※エラー指摘の抜粋
function wp_get_attachment_image_src( $attachment_id, $size = ‘thumbnail’, $icon = false ) {サイトはSSLを使用しています。
そしてhttpsへリダイレクトさせています。RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]おそらくhttp<>httpsの変換でミスっていると思うんですが、
リダイレクト設定のせいでこのエラー/警告がでているのでしょうか?
これは無視しても問題ないのでしょうか?よろしくお願いします。
- トピック「CRON使用時子テーマでエラーが起きています。」には新たに返信することはできません。