https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162023-02-06T12:34:01ZpfSense bugtrackerpfSense Packages - Bug #13936: PHP error from RRD Graphs when attempting a query a newly created empty databasehttps://redmine.pfsense.org/issues/13936?journal_id=655402023-02-06T12:34:01ZJim Pingle
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/65540/diff?detail_id=55887">diff</a>)</li></ul> pfSense Packages - Bug #13936: PHP error from RRD Graphs when attempting a query a newly created empty databasehttps://redmine.pfsense.org/issues/13936?journal_id=655952023-02-09T05:39:30ZDanilo Zrenjanin
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Confirmed</i></li></ul><p>I replicated the issue.</p>
<pre>
23.01-RC (amd64)
built on Wed Feb 08 14:19:05 UTC 2023
FreeBSD 14.0-CURRENT
</pre>
<p>The error message is the same.</p>
<pre>
PHP errors
PHP ERROR: Type: 1, File: /usr/local/www/rrd_fetch_json.php, Line: 430, Message: Uncaught ValueError: min(): Argument #1 ($value) must contain at least one element in /usr/local/www/rrd_fetch_json.php:430
Stack trace:
#0 /usr/local/www/rrd_fetch_json.php(430): min(Array)
#1 {main}
thrown @ 2023-02-09 11:14:21
</pre> pfSense Packages - Bug #13936: PHP error from RRD Graphs when attempting a query a newly created empty databasehttps://redmine.pfsense.org/issues/13936?journal_id=662942023-03-23T02:48:31ZLev Prokofev
<ul></ul><p>Can replicate on</p>
<pre>
23.01-RELEASE (amd64)
built on Fri Feb 10 20:06:33 UTC 2023
FreeBSD 14.0-CURRENT
</pre>
<pre><code class="php syntaxhl"><span class="o">@</span><span class="no">PHP</span> <span class="no">ERROR</span><span class="o">:</span> <span class="nc">Type</span><span class="o">:</span> <span class="mi">1</span><span class="p">,</span> <span class="nc">File</span><span class="o">:</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">www</span><span class="o">/</span><span class="n">rrd_fetch_json</span><span class="mf">.</span><span class="n">php</span><span class="p">,</span> <span class="nc">Line</span><span class="o">:</span> <span class="mi">431</span><span class="p">,</span> <span class="nc">Message</span><span class="o">:</span> <span class="nc">Uncaught</span> <span class="nc">ValueError</span><span class="o">:</span> <span class="nb">min</span><span class="p">()</span><span class="o">:</span> <span class="nc">Argument</span> <span class="c1">#1 ($value) must contain at least one element in /usr/local/www/rrd_fetch_json.php:431</span>
<span class="nc">Stack</span> <span class="n">trace</span><span class="o">:</span>
<span class="c1">#0 /usr/local/www/rrd_fetch_json.php(431): min(Array)</span>
<span class="c1">#1 {main}</span>
<span class="n">thrown</span><span class="o">@</span>
</code></pre>
<p>Is there any workaround?</p> pfSense Packages - Bug #13936: PHP error from RRD Graphs when attempting a query a newly created empty databasehttps://redmine.pfsense.org/issues/13936?journal_id=663202023-03-25T18:34:58ZChristopher Cope
<ul><li><strong>Status</strong> changed from <i>Confirmed</i> to <i>Pull Request Review</i></li></ul><p><a class="external" href="https://gitlab.netgate.com/pfSense/FreeBSD-ports/-/merge_requests/333">https://gitlab.netgate.com/pfSense/FreeBSD-ports/-/merge_requests/333</a></p> pfSense Packages - Bug #13936: PHP error from RRD Graphs when attempting a query a newly created empty databasehttps://redmine.pfsense.org/issues/13936?journal_id=663872023-03-27T10:14:50ZJim Pingle
<ul><li><strong>Assignee</strong> set to <i>Jim Pingle</i></li></ul> pfSense Packages - Bug #13936: PHP error from RRD Graphs when attempting a query a newly created empty databasehttps://redmine.pfsense.org/issues/13936?journal_id=665362023-04-03T08:11:18ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>Pull Request Review</i> to <i>Feedback</i></li><li><strong>Assignee</strong> changed from <i>Jim Pingle</i> to <i>Christopher Cope</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>MR merged</p> pfSense Packages - Bug #13936: PHP error from RRD Graphs when attempting a query a newly created empty databasehttps://redmine.pfsense.org/issues/13936?journal_id=669892023-04-22T05:38:51ZDanilo Zrenjanin
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>Tested against:<br /><pre>
2.7.0.a.20230420.0600
</pre></p>
<p>The patch fixes it. I am marking this ticket resovled.</p>