<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Website Comments 1.05 Error - Trying to access array offset on value of type bool</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Website-Comments-1_05-Error---Trying-to-access-array-offset-on-value-of-type-bool-82438</link>
        <description></description>
        <pubDate>Tue, 09 Jun 2026 08:41:10 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Website-Comments-1_05-Error---Trying-to-access-array-offset-on-value-of-type-bool-82438" rel="self" type="application/rss+xml" />

                <item>
          <title>Website Comments 1.05 Error - Trying to access array offset on value of type bool</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245586#post2245586</link>
          <description><![CDATA[<p>Hi degreesnorth,</p>
<p>This particular issue should be resolved in newer versions of CMSB. You can find the details of the latest release here: <a href="https://www.interactivetools.com/forum/forum-posts.php?CMSB-v3.54-Released---October-29-2020-82341" rel="nofollow">https://www.interactivetools.com/forum/forum-posts.php?CMSB-v3.54-Released---October-29-2020-82341</a></p>
<p>If you're unable to upgrade currently, you can also fix this error with a simple patch. In /cmsb/lib/menus/header_functions.php, replace this line (line 167):</p>
<pre class="language-php"><code>  elseif (@$menu['visibility'] == 'requireAdmin' &amp;&amp; $CURRENT_USER['isAdmin'])                           { $userHasMenuAccess = true; } // allow access to admin for admin menus</code></pre>
<p>With this:</p>
<pre class="language-php"><code>  elseif (@$menu['visibility'] == 'requireAdmin' &amp;&amp; !empty($CURRENT_USER['isAdmin']))                   { $userHasMenuAccess = true; } // allow access to admin for admin menus</code></pre>
<p>Note that there may be other PHP 7.4 compatibility issues in CMSB 3.50, so I would still recommend upgrading if possible.</p>
<p>Let me know if you have any other questions!</p>
<p>Thanks,</p>]]></description>
          <pubDate>Tue, 13 Jul 2021 14:17:34 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245586#post2245586</guid>
        </item>
                <item>
          <title>Website Comments 1.05 Error - Trying to access array offset on value of type bool</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245582#post2245582</link>
          <description><![CDATA[<p>Hi</p>
<p>I am getting this error as well, after upgrading my client's CMS/PHP.  It appears at the top of the cmsb login screen.  </p>
<p><span>CMS Builder v3.50 (Build 2215)<br />PHP v7.4.12<br /></span></p>
<p>Is there any way of fixing this issue please?</p>

<blockquote>
<p><span>Notice: Trying to access array offset on value of type bool in /home/gege1237/public_html/cmsb/lib/menus/header_functions.php on line 167 Notice: Trying to access array offset on value of type bool in /home/gege1237/public_html/cmsb/lib/menus/header_functions.php on line 167 Notice: Trying to access array offset on value of type bool in /home/gege1237/public_html/cmsb/lib/menus/header_functions.php on line 167</span></p>
</blockquote>]]></description>
          <pubDate>Thu, 08 Jul 2021 18:06:08 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245582#post2245582</guid>
        </item>
                <item>
          <title>Website Comments 1.05 Error - Trying to access array offset on value of type bool</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245569#post2245569</link>
          <description><![CDATA[<p>Hi Craig,</p>
<p>Steve was generally correct - this is an error that started showing up in PHP 7.4. Newer versions of CMSB have improved compatibility, but this doesn't necessarily extend to plugins. We will work on getting the official plugins updated, but in the meantime, here's a patch for this particular error in Website Comments 1.5:</p>
<p>If you locate this block of code in websiteComments.php (around line 275)</p>
<pre class="language-php"><code>function wsc_thread_isSubscribed($tableOrTag, $recordNum) {
  global $CURRENT_USER;

  $isSubscribed = mysql_count('_wsc_subscribers', array(
    'userNum'    =&gt; $CURRENT_USER['num'],
    'tableOrTag' =&gt; $tableOrTag,
    'recordNum'  =&gt; $recordNum,
  ));

  return (bool) $isSubscribed;
}</code></pre>
<p>And replace it with this:</p>
<pre class="language-php"><code>function wsc_thread_isSubscribed($tableOrTag, $recordNum) {
  global $CURRENT_USER;

  if (!empty( $CURRENT_USER )) {
    $isSubscribed = mysql_count('_wsc_subscribers', array(
      'userNum'    =&gt; $CURRENT_USER['num'],
      'tableOrTag' =&gt; $tableOrTag,
      'recordNum'  =&gt; $recordNum,
    ));
  }
  
  return (bool) $isSubscribed;
}</code></pre>
<p>That should allow you to run the plugin in PHP 7.4.</p>
<p>Let me know if you have any other issues!<br />Thanks,</p>]]></description>
          <pubDate>Tue, 22 Jun 2021 16:07:32 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245569#post2245569</guid>
        </item>
                <item>
          <title>Website Comments 1.05 Error - Trying to access array offset on value of type bool</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245566#post2245566</link>
          <description><![CDATA[<p>Steve!</p>
<p>You are genius!  I changed the PHP version to 7.3 and the error magically disappeared!  I'll look to upgrade to 3.54.</p>
<p>Thanks!</p>
<p>Craig</p>
]]></description>
          <pubDate>Thu, 17 Jun 2021 14:41:00 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245566#post2245566</guid>
        </item>
                <item>
          <title>Website Comments 1.05 Error - Trying to access array offset on value of type bool</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245565#post2245565</link>
          <description><![CDATA[<p>Hi Craig,</p>
<p>I could be wrong, but it sounds like the function "wsc_thread_isSubscribed" might be getting called on your page code before checking if a site visitor is logged in. I signed up a test account and no longer saw the error after being logged in.</p>
<p>Could do something like this for things that require a user to be logged in:</p>
<pre class="language-markup"><code>if (@$CURRENT_USER) { 
// do stuff like checking if subscribed to current post
}</code></pre>
<p>Also, I noticed you are running cmsb 3.53 on php7.4 and I believe 7.4 compatibility was added in 3.54. I suppose it's possible that a php version change may have presented the error in handling code differently. Could try updating as well.</p>
<p>Hopefully this helps. Let me know how you make out.</p>
<p>Best,<br />Steve</p>]]></description>
          <pubDate>Thu, 17 Jun 2021 14:21:51 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245565#post2245565</guid>
        </item>
                <item>
          <title>Website Comments 1.05 Error - Trying to access array offset on value of type bool</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245564#post2245564</link>
          <description><![CDATA[<p>Hi -</p>
<p>I started getting this error with website comments 1.05 just out of the clear blue sky (I am sure something happened I just don't know what) </p>
<p><span>On the website it shows up like this:</span></p>
<p><strong>Notice: Trying to access array offset on value of type bool in /home/customer/www/delanceyplace.com/public_html/cmsAdmin/plugins/websiteComments/websiteComments.php on line 279</strong></p>
<p><span>In the error log it shows up like this: </span></p>
<p><strong> E_NOTICE: Trying to access array offset on value of type bool</strong><br /><strong>/home/customer/www/delanceyplace.com/public_html/cmsAdmin/plugins/websiteComments/websiteComments.php (line 279)</strong><br /><strong><a href="https://delanceyplace.com/view-search-results.php?2509" rel="nofollow">https://delanceyplace.com/view-search-results.php?2509</a></strong></p>
<p>It looks like the error is in the plugin itself.</p>
<p>We are running:</p>
<ul><li><span>CMS Builder v3.53 (Build 2265)</span></li>
<li><span>Website comments 1.05</span></li>
<li><span>PHP v7.4.18</span></li>
</ul><p><span>Can you guys help?</span></p>
<p>Thanks!</p>
<p>Craig</p>


]]></description>
          <pubDate>Thu, 17 Jun 2021 12:35:04 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245564#post2245564</guid>
        </item>
              </channel>
    </rss>
  