pfsense 2.4.4 - traffic shapper: Call to undefined method altq_root_queue::GetParent()



  • I have a pfsense 2.4.4-p1 installed and configured with traffic shape active, but today I went to "Firewall ->Traffic shapper" and changed to HFSC, and as soon i click Ok, pfsense crashed with the following error:

    PHP errors
        PHP ERROR: Type: 1, File: /etc/inc/shaper.inc, Line: 517, Message: Uncaught Error: Call to undefined method altq_root_queue::GetParent() in /etc/inc/shaper.inc:517
        Stack trace:
        #0 /etc/inc/shaper.inc(1301): get_queue_bandwidth(Object(altq_root_queue))
        #1 /etc/inc/shaper.inc(1515): priq_queue->CheckBandwidth(NULL, NULL)
        #2 /etc/inc/shaper.inc(3229): priq_queue->validate_input(Array, NULL)
        #3 /etc/inc/shaper.inc(854): fairq_queue->validate_input(Array, NULL)
        #4 /etc/inc/shaper.inc(5047): altq_root_queue->add_queue('opt1', Array, Array, NULL)
        #5 /usr/local/www/firewall_shaper.php(46): read_altq_config()
        #6 {main}
        thrown @ 2019-03-29 16:47:46
        PHP ERROR: Type: 1, File: /etc/inc/shaper.inc, Line: 517, Message: Uncaught Error: Call to undefined method altq_root_queue::GetParent() in /etc/inc/shaper.inc:517
        Stack trace:
        #0 /etc/inc/shaper.inc(1301): get_queue_bandwidth(Object(altq_root_queue))
        #1 /etc/inc/shaper.inc(1515): priq_queue->CheckBandwidth(NULL, NULL)
        #2 /etc/inc/shaper.inc(3229): priq_queue->validate_input(Array, NULL)
        #3 /etc/inc/shaper.inc(854): fairq_queue->validate_input(Array, NULL)
        #4 /etc/inc/shaper.inc(5047): altq_root_queue->add_queue('opt1', Array, Array, NULL)
        #5 /usr/local/www/firewall_shaper.php(46): read_altq_config()
        #6 {main}
        thrown @ 2019-03-29 16:52:52
        PHP ERROR: Type: 1, File: /etc/inc/shaper.inc, Line: 517, Message: Uncaught Error: Call to undefined method altq_root_queue::GetParent() in /etc/inc/shaper.inc:517
        Stack trace:
        #0 /etc/inc/shaper.inc(1301): get_queue_bandwidth(Object(altq_root_queue))
        #1 /etc/inc/shaper.inc(1515): priq_queue->CheckBandwidth(NULL, NULL)
        #2 /etc/inc/shaper.inc(3229): priq_queue->validate_input(Array, NULL)
        #3 /etc/inc/shaper.inc(854): fairq_queue->validate_input(Array, NULL)
        #4 /etc/inc/shaper.inc(5047): altq_root_queue->add_queue('opt1', Array, Array, NULL)
        #5 /usr/local/www/firewall_shaper.php(46): read_altq_config()
        #6 {main}
        thrown @ 2019-03-29 16:56:11
    

    Now i can't go to "firewall -> traffic shapper", everytime i click on "Firewall -> Traffic shapper" the following error apears:

    Fatal error: Uncaught Error: Call to undefined method altq_root_queue::GetParent() in /etc/inc/shaper.inc:517 Stack trace: #0 /etc/inc/shaper.inc(1301): get_queue_bandwidth(Object(altq_root_queue)) #1 /etc/inc/shaper.inc(1515): priq_queue->CheckBandwidth(NULL, NULL)
    

    How can I revert the configuration? is there any CLI command to reset traffic shapper or disable ?



  • Diagnostics - Backup & Restore - Config History. You can restore previous configs from there.



  • @KOM Thank you very much, it fixed the problem.

    I've missed this simple step, thank you again for the very fast answer.



  • A harder way would have been to export your current config, edit out the traffic shaper details, reset your instance back to factory defaults and then imported the edited config.

    Glad you got it going again.


Log in to reply