Warning: Cannot use a scalar value as an array in /usr/local/…........



  • 1.2-RC2
    While testing captive portal, i read in this forum that scheduled rules and CP cannot coexist so i deleted the schedules rules and the schedules. The check box "Enable captive portal" was enabled. Then the text below appeared at the top of my browser, and pfSense failed back to an old configuration.

    Warning: Cannot use a scalar value as an array in /usr/local/www/firewall_rules.php on line 38 Warning: Cannot use a scalar value as an array in /usr/local/www/guiconfig.inc on line 347 Warning: usort(): The argument should be an array in /usr/local/www/guiconfig.inc on line 347 Warning: Cannot use a scalar value as an array in /usr/local/www/firewall_rules.php on line 41

    From ssh login:
    *** Welcome to pfSense 1.2-RC2-pfSense on  ***

    Warning: Cannot use a scalar value as an array in /etc/inc/util.inc on line 328

    Warning: Invalid argument supplied for foreach() in /etc/inc/util.inc on line 32                                                          8

    Warning: Cannot use a scalar value as an array in /etc/inc/util.inc on line 328

    Warning: Invalid argument supplied for foreach() in /etc/inc/util.inc on line 32                                                          8

    Warning: Cannot use a scalar value as an array in /etc/inc/util.inc on line 328

    Warning: Invalid argument supplied for foreach() in /etc/inc/util.inc on line 32                                                          8

    Warning: Cannot use a scalar value as an array in /etc/inc/util.inc on line 328

    Warning: Invalid argument supplied for foreach() in /etc/inc/util.inc on line 32                                                          8

    Warning: Cannot use a scalar value as an array in /etc/inc/util.inc on line 328

    Warning: Invalid argument supplied for foreach() in /etc/inc/util.inc on line 32                                                          8

    Warning: Cannot use a scalar value as an array in /etc/inc/util.inc on line 328

    Warning: Invalid argument supplied for foreach() in /etc/inc/util.inc on line 32                                                          8

    Warning: Cannot use a scalar value as an array in /etc/inc/util.inc on line 328

    Warning: Invalid argument supplied for foreach() in /etc/inc/util.inc on line 32                                                          8

    From system.log:
    Aug 26 18:13:34 fw1 check_reload_status: reloading filter
    Aug 26 18:13:43 fw1 php: : XML error: not well-formed (invalid token) at line 3334



  • I have the same problem any ideas ?



  • @jchuerta:

    I have the same problem any ideas ?

    We need your config.xml to track this down.  I believe all the php errors are due to the XML parse error showing in your logs.  Thanks

    –Bill


Log in to reply