<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									除外カテゴリーを表示した際、エラーメッセージが表示される - 不具合報告				            </title>
            <link>https://wp-cocoon.com/community/bugs/%e9%99%a4%e5%a4%96%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e9%9a%9b%e3%80%81%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8/</link>
            <description>Cocoon ディスカッション掲示板</description>
            <language>ja</language>
            <lastBuildDate>Sun, 06 Sep 2026 08:43:06 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: 除外カテゴリーを表示した際、エラーメッセージが表示される</title>
                        <link>https://wp-cocoon.com/community/bugs/%e9%99%a4%e5%a4%96%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e9%9a%9b%e3%80%81%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8/#post-86757</link>
                        <pubDate>Thu, 16 Oct 2025 14:53:53 +0000</pubDate>
                        <description><![CDATA[ご確認いただきありがとうございます。]]></description>
                        <content:encoded><![CDATA[<p>ご確認いただきありがとうございます。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/bugs/">不具合報告</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/bugs/%e9%99%a4%e5%a4%96%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e9%9a%9b%e3%80%81%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8/#post-86757</guid>
                    </item>
				                    <item>
                        <title>RE: 除外カテゴリーを表示した際、エラーメッセージが表示される</title>
                        <link>https://wp-cocoon.com/community/bugs/%e9%99%a4%e5%a4%96%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e9%9a%9b%e3%80%81%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8/#post-86728</link>
                        <pubDate>Tue, 14 Oct 2025 06:19:07 +0000</pubDate>
                        <description><![CDATA[----------------------------------------------テーマ名：Cocoonバージョン：2.8.8カテゴリー数：18タグ数：123ユーザー数：2----------------------------------------------
修正されていることを確認しました。本件をクローズとします。]]></description>
                        <content:encoded><![CDATA[<p>----------------------------------------------<br />テーマ名：Cocoon<br />バージョン：2.8.8<br />カテゴリー数：18<br />タグ数：123<br />ユーザー数：2<br />----------------------------------------------</p>
<p>修正されていることを確認しました。<br />本件をクローズとします。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/bugs/">不具合報告</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/bugs/%e9%99%a4%e5%a4%96%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e9%9a%9b%e3%80%81%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8/#post-86728</guid>
                    </item>
				                    <item>
                        <title>RE: 除外カテゴリーを表示した際、エラーメッセージが表示される</title>
                        <link>https://wp-cocoon.com/community/bugs/%e9%99%a4%e5%a4%96%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e9%9a%9b%e3%80%81%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8/#post-86724</link>
                        <pubDate>Tue, 14 Oct 2025 05:45:30 +0000</pubDate>
                        <description><![CDATA[ご指摘いただきありがとうございます。コードを追加させて頂きました]]></description>
                        <content:encoded><![CDATA[<p>ご指摘いただきありがとうございます。<br />コードを追加させて頂きました。<br />https://github.com/xserver-inc/cocoon/commit/e4666ff92ae3dfe6f19157e866f3e9addf291cb6</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/bugs/">不具合報告</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/bugs/%e9%99%a4%e5%a4%96%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e9%9a%9b%e3%80%81%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8/#post-86724</guid>
                    </item>
				                    <item>
                        <title>除外カテゴリーを表示した際、エラーメッセージが表示される</title>
                        <link>https://wp-cocoon.com/community/bugs/%e9%99%a4%e5%a4%96%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e9%9a%9b%e3%80%81%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8/#post-86709</link>
                        <pubDate>Mon, 13 Oct 2025 10:29:38 +0000</pubDate>
                        <description><![CDATA[----------------------------------------------
テーマ名：Cocoon
バージョン：2.8.8
カテゴリー数：18
タグ数：123
ユーザー数：2
----------------------------------------------
●設定
→→除外カテゴリーを設定
[C...]]></description>
                        <content:encoded><![CDATA[<div>----------------------------------------------</div>
<div>テーマ名：Cocoon</div>
<div>バージョン：2.8.8</div>
<div>カテゴリー数：18</div>
<div>タグ数：123</div>
<div>ユーザー数：2</div>
<div>----------------------------------------------</div>
<div><span style="font-size: 14pt"><strong>●設定</strong></span></div>
<div>→→除外カテゴリーを設定</div>
<div>→</div>
<div><span> →目次の表示をオン</span></div>
<div><span> →本文全ての目次を表示するをオン★</span></div>
<div><hr /></div>
<div><span style="font-size: 14pt"><strong>●現象</strong></span></div>
<div>以下のエラーが表示れる。</div>
<div>
<pre contenteditable="false">Warning: Attempt to read property "post_content" on null in /virtual/gas2monkey/public_html/wp-content/themes/cocoon-child-master/functions.php on line 43</pre>
</div>
<div><hr /></div>
<div><span style="font-size: 14pt"><strong>●原因</strong></span></div>
<div>除外し、post自体が存在しないのに参照している。</div>
<div>https://github.com/xserver-inc/cocoon/blob/b858041cc1b1e82e5c2617fec0b79537d72d5a43/lib/toc.php#L47</div>
<div><hr /></div>
<div><span style="font-size: 14pt"><strong>●対策</strong></span></div>
<div>https://github.com/xserver-inc/cocoon/blob/b858041cc1b1e82e5c2617fec0b79537d72d5a43/lib/toc.php#L37</div>
<div> </div>
<div>以下を追加。</div>
<div>
<pre contenteditable="false">if (empty($post) || !isset($post-&gt;post_content)) return '';</pre>
</div>
<div id="wpfa-44077" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wp-cocoon.com/wp-content/uploads/wpforo/default_attachments/1760351378-2025-10-13_19h19_14.png" target="_blank" title="2025-10-13_19h19_14.png"><i class="fas fa-paperclip"></i>&nbsp;2025-10-13_19h19_14.png</a></div>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/bugs/">不具合報告</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/bugs/%e9%99%a4%e5%a4%96%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e9%9a%9b%e3%80%81%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8/#post-86709</guid>
                    </item>
							        </channel>
        </rss>
		