<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>v3.77 - Error Log Bug - no dateLogged</title>
        <link>https://interactivetools.com/forum/forum-posts.php?v3_77---Error-Log-Bug---no-dateLogged-83025</link>
        <description></description>
        <pubDate>Tue, 14 Jul 2026 09:22:46 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;v3_77---Error-Log-Bug---no-dateLogged-83025" rel="self" type="application/rss+xml" />

                <item>
          <title>v3.77 - Error Log Bug - no dateLogged</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2248026#post2248026</link>
          <description><![CDATA[<p>Okay, great.  Thanks for the update!</p>]]></description>
          <pubDate>Fri, 13 Jun 2025 10:07:50 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2248026#post2248026</guid>
        </item>
                <item>
          <title>v3.77 - Error Log Bug - no dateLogged</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2248025#post2248025</link>
          <description><![CDATA[<p>Hey Dave</p>
<p>Thanks - and yup, this has fixed it.<br /><br />Going from:</p>
<pre class="language-markup"><code>NULL DEFAULT \'0000-00-00 00:00:00\'</code></pre>
<p>to:</p>
<pre class="language-markup"><code>NULL DEFAULT CURRENT_TIMESTAMP</code></pre>
<p>Thanks :-)</p>]]></description>
          <pubDate>Thu, 12 Jun 2025 15:01:04 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2248025#post2248025</guid>
        </item>
                <item>
          <title>v3.77 - Error Log Bug - no dateLogged</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2248023#post2248023</link>
          <description><![CDATA[<p>Hi Rob,</p>
<p>The error_log schema you're seeing is correct. We switched that field to TIMESTAMP a while back because TIMESTAMP values are stored in UTC, making them timezone-independent, which is what we wanted for error log entries. This means that when the server's timezone changes, the dates are automatically adjusted. In contrast, DATETIME stores fixed dates without timezone conversion.</p>
<p>This issue could have occurred if:</p>
<ul>
<li>A backup file containing an old error_log structure was restored</li>
<li>The schema file wasn't properly uploaded (though yours appears to be current)</li>
<li>The upgrade code somehow failed</li>
</ul>
<p>To fix this:</p>
<p style="padding-left:40px;">1. Edit the dateLogged field and save it to trigger the custom column checking update:<br />/cmsb/admin.php?menu=database&amp;action=editField&amp;tableName=_error_log&amp;fieldname=dateLogged</p>
<p style="padding-left:40px;">2. Verify the correct column type appears in the MySQL Source tab: `dateLogged` timestamp NULL DEFAULT CURRENT_TIMESTAMP,<br />/cmsb/admin.php?menu=database&amp;action=editTable&amp;tableName=_error_log&amp;fieldSaved=1#tab_mysqlSource</p>
<p>Note: We included code in version 3.77 to handle this conversion automatically, so if this issue persists, please let me know and we'll investigate further.</p>
<p>Thanks for reporting this! Please confirm if the above solution works for you.</p>]]></description>
          <pubDate>Wed, 11 Jun 2025 23:00:08 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2248023#post2248023</guid>
        </item>
                <item>
          <title>v3.77 - Error Log Bug - no dateLogged</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2248017#post2248017</link>
          <description><![CDATA[<p>Hey,</p>
<p>Yeah I wondered that.</p>
<p>The MySQL type for the dateLogged field is, as reported on admin.php?menu=database&amp;action=editTable&amp;tableName=_error_log is</p>
<p>datetime NOT NULL DEFAULT 0000-00-00 00:00:00</p>
<p>and in the schema file:</p>
<pre class="language-markup"><code>  'dateLogged' =&gt; [
    'customColumnType' =&gt; 'TIMESTAMP DEFAULT CURRENT_TIMESTAMP',
    'label' =&gt; 'Date',
    'type' =&gt; 'date',
    'isSystemField' =&gt; 1,
    'defaultDate' =&gt; '',
    'defaultDateString' =&gt; '',
    'showTime' =&gt; 1,
    'showSeconds' =&gt; 1,
    'actualColumnType' =&gt; 'datetime NOT NULL DEFAULT \'0000-00-00 00:00:00\'',
  ],
</code></pre>
<p>And all the entries in the MySQL table have dateLogged (and updatedDate) as 0000-00-00 00:00:00.</p>
<p>I see in other schema files, system date fields are:</p>
<pre class="language-markup"><code>  'updatedDate' =&gt; [
    'type' =&gt; 'none',
    'label' =&gt; 'Last Updated',
    'isSystemField' =&gt; '1',
  ],
</code></pre>
<p>So is there perhaps an issue with our schema config for _error_log.schema.php?</p>
<p>This install was recently upgraded from a very old verison (a good year + old) to 3.76 and then 3.77.</p>
<p>Cheers</p>
<p>Rob</p>]]></description>
          <pubDate>Wed, 11 Jun 2025 16:51:25 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2248017#post2248017</guid>
        </item>
                <item>
          <title>v3.77 - Error Log Bug - no dateLogged</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2248015#post2248015</link>
          <description><![CDATA[<p>Hello Rob,</p>
<p>The dateLogged field is a timestamp database field with a default of the current timestamp. You shouldn't need to set it in the code as MySQL will set it at time of insertion. Are you seeing this with all the error log entries or just certain log entries? Did it just start with your upgrade to v3.77?</p>
<p>Additional information may help us track down the reason. Perhaps somewhere a date is being inserted that is bad and so MySQL is setting it to null or some other value that equates to the UI showing "never". </p>
<p>Note: If you have the developer console plugin enabled, you could query the error_logs table and see if there are bad values in the dateLogged table. Might offer a clue. :)</p>]]></description>
          <pubDate>Wed, 11 Jun 2025 15:39:52 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2248015#post2248015</guid>
        </item>
                <item>
          <title>v3.77 - Error Log Bug - no dateLogged</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2248013#post2248013</link>
          <description><![CDATA[<p>Hey</p>
<p>Errors logged into _error_log are being inserted without a <span>dateLogged, so they appear as "never" in the UI, as per attached screenshot.</span></p>
<p>Looking at</p>
<p><em>function errorDB_addErrorRecord($colsToValues):</em></p>
<p><span>and</span></p>
<p><em>function _errorlog_logErrorRecord</em></p>
<p><span>the dateLogged variable is not set anywhere within either of those.</span></p>
<p><span>Would likely make best sense to set it in the:</span></p>
<p><em> //  create log record data<br /></em><em>$colsToValues = [</em></p>
<p><span>errorlog_functions.php line 313</span></p>
<p><span>Cheers!</span></p>
<p><span>Rob</span></p>]]></description>
          <pubDate>Wed, 11 Jun 2025 14:20:48 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2248013#post2248013</guid>
        </item>
              </channel>
    </rss>
  