Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Firewall_aliases.php

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    3 Posts 2 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ExolonE
      Exolon
      last edited by

      I've been tidying up the HTML generated by the various PHP scripts but have come across the following errors:

      
          <table  border="0" cellspacing="0" cellpadding="1">[![](/themes/pfsense_ng/images/icons/icon_plus.gif)Warning: Missing argument 2 for dom_title(), called in /usr/local/www/firewall_aliases.php on line 192 and defined in /etc/inc/functions.inc on line 126
      onmouseout="this.style.color = ''; domTT_mouseout(this, event);" onmouseover="domTT_activate(this, event, 'content', 'Add a new alias', 'trail', true, 'delay', 250, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle' );">](firewall_aliases_edit.php?tab=ip)</table > 
      
      
      | 
                              [![](/themes/pfsense_ng/images/icons/icon_plus.gif)Warning: Missing argument 2 for dom_title(), called in /usr/local/www/firewall_aliases.php on line 269 and defined in /etc/inc/functions.inc on line 126
      onmouseout="this.style.color = ''; domTT_mouseout(this, event);" onmouseover="domTT_activate(this, event, 'content', 'Add a new alias', 'trail', true, 'delay', 250, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle' );">](firewall_aliases_edit.php?tab=ip)
                           | 
                              [![](/themes/pfsense_ng/images/icons/icon_import_alias.gif)Warning: Missing argument 2 for dom_title(), called in /usr/local/www/firewall_aliases.php on line 272 and defined in /etc/inc/functions.inc on line 126
      onmouseout="this.style.color = ''; domTT_mouseout(this, event);" onmouseover="domTT_activate(this, event, 'content', 'Bulk import aliases from list', 'trail', true, 'delay', 250, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle' );" alt="" />](firewall_aliases_import.php)                 
                           |
      
      

      There was a commit on 25-JUN-2012, to change the "gettext" statements to "dom_title", my PHP knowledge is almost non-existent so can't get my head around /etc/inc/functions.inc, I have placed a comment on GitHub, but as the commit was a month ago, I'm not sure if anyone will pick it up.

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        Yes - the same warnings spit out in my /tmp/PHP_errors.log
        function dom_title already handles the parameter being empty, it just needs to be told to default the parameter value to empty when it is not passed at all. Easily fixed.
        I submitted a pull request - https://github.com/bsdperimeter/pfsense/pull/193

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • ExolonE
          Exolon
          last edited by

          Thanks Phil, that's sorted!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.