Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush inの対応

概要説明

Noticeなので特に対応はしなくても問題はないのですが気になるという方のためのカスタマイズ。ob_end_flush()を使用する際には対象となるデータの存在確認を行うことでNotice表示の対応が行なえます。

削除・フラッシュするバッファがないことが原因

// 対象となるデータがあるかを判定してから使用
if( ob_get_length() ){
    ob_end_flush();
}

ログの確認について

関連機能

  1. WordPress 予約投稿の失敗を解決 Scheduled Post Trigger

  2. サイトマップエラー error on line 2 at column 6: XML declaration allowed only at the start of the document の修正…

  3. this will throw an Error in a future version of PHPの対応

サイドバー

よく使うカスタマイズ

最近の記事

アニメの名言集

ぜーんぶひっくるめてのお前なんだ
いいんだそれで

バガボンド
by 沢庵宗彭

Profile

PAGE TOP
Amazon プライム対象