https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162023-02-14T07:24:18ZpfSense bugtrackerpfSense - Bug #13953: PHP Error loading Floating rule tab with OpenVPN group rules when there are no OpenVPN instances in the configurationhttps://redmine.pfsense.org/issues/13953?journal_id=656252023-02-14T07:24:18ZJim Pingle
<ul><li><strong>Project</strong> changed from <i>pfSense Plus</i> to <i>pfSense</i></li><li><strong>Subject</strong> changed from <i>PHP ERROR: Type: 1</i> to <i>PHP Error loading Floating rule tab with OpenVPN group rules when there are no OpenVPN instances in the configuration</i></li><li><strong>Category</strong> changed from <i>Rules / NAT</i> to <i>Rules / NAT</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>Low</i></li><li><strong>Target version</strong> set to <i>2.7.0</i></li><li><strong>Affected Plus Version</strong> deleted (<del><i>23.01</i></del>)</li><li><strong>Plus Target Version</strong> set to <i>23.05</i></li><li><strong>Affected Version</strong> set to <i>2.7.0</i></li></ul><p>Looks like maybe you have rules defined for the OpenVPN group on the Floating tab but you have no OpenVPN clients or servers present on that system.</p>
<p>Is that correct?</p>
<p>You can add a dummy client or service entry for the moment and then fix your invalid rules, then delete it again. Or edit them out of the config.</p>
<p>The only way I could reproduce this was:</p>
<p>1. Add an OpenVPN instance<br />2. Add a floating rule using OpenVPN as its interface<br />3. Delete the OpenVPN instance<br />4. Try to view the Floating tab</p> pfSense - Bug #13953: PHP Error loading Floating rule tab with OpenVPN group rules when there are no OpenVPN instances in the configurationhttps://redmine.pfsense.org/issues/13953?journal_id=656372023-02-15T08:12:01ZChristos Messios
<ul></ul><p>Jim Pingle wrote in <a href="#note-1">#note-1</a>:</p>
<blockquote>
<p>Looks like maybe you have rules defined for the OpenVPN group on the Floating tab but you have no OpenVPN clients or servers present on that system.</p>
<p>Is that correct?</p>
<p>You can add a dummy client or service entry for the moment and then fix your invalid rules, then delete it again. Or edit them out of the config.</p>
<p>The only way I could reproduce this was:</p>
<p>1. Add an OpenVPN instance<br />2. Add a floating rule using OpenVPN as its interface<br />3. Delete the OpenVPN instance<br />4. Try to view the Floating tab</p>
</blockquote>
<p>Worked, thank you!</p> pfSense - Bug #13953: PHP Error loading Floating rule tab with OpenVPN group rules when there are no OpenVPN instances in the configurationhttps://redmine.pfsense.org/issues/13953?journal_id=657132023-02-18T09:08:33ZJim Pingle
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-1 status-11 priority-4 priority-default closed" href="/issues/13982">Bug #13982</a>: PHP error: /usr/local/www/firewall_rules.php:805</i> added</li></ul> pfSense - Bug #13953: PHP Error loading Floating rule tab with OpenVPN group rules when there are no OpenVPN instances in the configurationhttps://redmine.pfsense.org/issues/13953?journal_id=661542023-03-13T10:58:58ZJim Pingle
<ul><li><strong>Assignee</strong> set to <i>Jim Pingle</i></li></ul> pfSense - Bug #13953: PHP Error loading Floating rule tab with OpenVPN group rules when there are no OpenVPN instances in the configurationhttps://redmine.pfsense.org/issues/13953?journal_id=661552023-03-13T11:05:19ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Improve floating rule handling of missing VPNs. Fixes #13953" href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/5f121e6a11df8f640f01d27795afeaefb55c50d6">5f121e6a11df8f640f01d27795afeaefb55c50d6</a>.</p> pfSense - Bug #13953: PHP Error loading Floating rule tab with OpenVPN group rules when there are no OpenVPN instances in the configurationhttps://redmine.pfsense.org/issues/13953?journal_id=662162023-03-16T06:29:01ZDanilo Zrenjanin
<ul></ul><p>Tested the patch on the:<br /><pre>
23.01-RELEASE (amd64)
built on Fri Feb 10 20:06:33 UTC 2023
FreeBSD 14.0-CURRENT
</pre></p>
<p>The patch fixes it. I was able to see the floating rule without PHP errors after removing the OpenVPN instance.</p>
<p>I am marking this ticket resolved.</p> pfSense - Bug #13953: PHP Error loading Floating rule tab with OpenVPN group rules when there are no OpenVPN instances in the configurationhttps://redmine.pfsense.org/issues/13953?journal_id=662172023-03-16T06:29:21ZDanilo Zrenjanin
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul>