Dashboard does not save settings



  • Testing the embedded image on an Alix2c3 the dashboard keeps reverting to blank after customizing it (was also blank on initial setup).
    This is with the 20080714-1022.img, worked fine on 20080709-1514.img
    It was a fresh install to the cf (physdiskwrite).



  • I also see that when i log into Pfsense webgui it does not save the dashboard settings, and bottom banner is off to the left.

    release 7/14/08




  • I see the same thing and we're taking a look into it.



  • Did that issue ever get looked into? with the image and also with the saving the dashboard so everytime i login it's there?

    gratzi



  • This should be resolved now. Try the next snapshot in about an hour and see how it goes.



  • The footer offset is now corrected
    BUT, now it is not possible to add any dashboard items. (ALPHA-20080722-0152)

    Have tried both IE and FF3.01 and when you press "+" and select an item for the dashboard
    nothing happens and it does not appear on the dashboard screen…

    Tried several times and on both browsers.

    In IE I get the error "Line 44, Char 2, Error: document.getByElementId(...) is null or not an object, Code 0" in index.php

    //Dan Lundqvist



  • Seeing the same thing on pfSense-20080722-0909.img
    No dashboard intro, blank dashboard, nothing happens when you add an item.



  • Have tested latest build "ALPHA-20080722-1318" and still same problem…



  • Hmm. Ok, I'm not seeing the same results, but I'm looking into it.



  • Tried the latest again "ALPHA-20080722-1722.tgz" but same.

    Just to be sure that it isn't any old cached data running I cleared the Cache in FF and IE
    and closed down the browsers and started fresh.  But as said, same problem.

    I also noticed in IE, the following exceptions:
    1_login.jpg

    This comes straight after you have logged in and done nothing.

    2_mousecursor_over__blank_Dashboard.jpg

    This comes continously when the cursor is hovering the dashboard.  Once every few seconds

    3_select_widget_carp.jpg

    This comes when you press the PLUS and selects a widget to show on dashboard (in this case the CARP)

    //Dan Lundqvist








  • Ok I'm not able to duplicate this. Can you post the widget config entry in your config.xml? To view the config entry, go to Diagnostics > Edit File. Enter "/conf/config.xml" in the "Save/load" text box and click 'Load'. Now look for the section like this:

    <widgets><sequence>blah blah blah</sequence></widgets>

    Can you post this information to this thread? (include the <widget>tags)</widget>



  • Here is my config.xml, at the bottom widgets doesn't show anything.

    <pfsense><version>4.8</version>
    …........................

    <shaper></shaper></pfsense>



  • Ahh, thats a problem. It should never be blank. Remove

    and save the config, then reboot. Tell me how that looks.



  • I am running off of Monday July21st snapshot, should i upgrade first to latest and then do as suggested? or try as is?



  • I'm committing a data check for this issue. You can either remove the config entries or wait for the next snapshot to be built. Either way will restore the dashboard. Thanks for your assistance!



  • Mine was:

    <pfsense><version>4.8</version>
    …........................
    <dyndnses><dnsupdates></dnsupdates></dyndnses></pfsense>

    Thumbs up!  I removed the section and rebooted and now it seems to work.
    Got SystemInfo, Interfaces and Traffic Graphs as default when logging in
    and was able to add additional and drag them around and place them where
    I wanted...

    If you have included a sanity check for this I have no problem to close
    this topic.  Case closed... :-)

    Best regards
    Dan Lundqvist

    Ps.  Thanks for quick response on this one ...  :D 
    And thanks for a VERY good piece of software...



  • Have double-checked that the widget data is stored correctly in config = YES.

    <widgets><sequence>system_information-container:col1:show,interfaces-container:col1:show,carp_status-container:col1:close,gateways-container:col1:close,installed_packages-container:col1:close,interface_statistics-container:col2:close,load_balancer_status-container:col2:close,log-container:col2:close,services_status-container:col2:close,cpu_graphs-container:col2:show,traffic_graphs-container:col2:show,ipsec-container:col2:show</sequence></widgets>



  • Good to hear, thanks for helping troubleshoot :)



  • Hmm mine gets overridden with the default setting everytime I logon. Did a pfSense reinstall with pfSense-Full-Update-1.3-ALPHA-ALPHA-20080723-0948.tgz
    what i did (config.xml):

    
    After Logon
    -------------------
    	 <widgets><traffic_graphs-config>LAN_graph-config:show,WAN_graph-config:show,refreshInterval=1</traffic_graphs-config></widgets> 
    -----------------------------------
    After adding widgets and saving
    ----------------------------------------
    	 <widgets><sequence>system_information-container:col1:show,carp_status-container:col1:close,cpu_graphs-container:col1:close,gateways-container:col1:close,interface_statistics-container:col2:show,installed_packages-container:col2:show,interfaces-container:col2:show,ipsec-container:col2:close,load_balancer_status-container:col2:close,log-container:col2:close,services_status-container:col2:close,traffic_graphs-container:col2:show</sequence>
    		<traffic_graphs-config>LAN_graph-config:show,WAN_graph-config:show,refreshInterval=1</traffic_graphs-config></widgets> 
    --------------------------------------------------------
    Close browser (FF3 and IE7) start browser and login:
    -------------------------------------------------------
    	 <widgets><traffic_graphs-config>LAN_graph-config:show,WAN_graph-config:show,refreshInterval=1</traffic_graphs-config></widgets> 
    


  • @Perry:

    Hmm mine gets overridden with the default setting everytime I logon. Did a pfSense reinstall with pfSense-Full-Update-1.3-ALPHA-ALPHA-20080723-0948.tgz
    what i did (config.xml):

    
    After Logon
    -------------------
    	 <widgets><traffic_graphs-config>LAN_graph-config:show,WAN_graph-config:show,refreshInterval=1</traffic_graphs-config></widgets> 
    -----------------------------------
    After adding widgets and saving
    ----------------------------------------
    	 <widgets><sequence>system_information-container:col1:show,carp_status-container:col1:close,cpu_graphs-container:col1:close,gateways-container:col1:close,interface_statistics-container:col2:show,installed_packages-container:col2:show,interfaces-container:col2:show,ipsec-container:col2:close,load_balancer_status-container:col2:close,log-container:col2:close,services_status-container:col2:close,traffic_graphs-container:col2:show</sequence>
    		<traffic_graphs-config>LAN_graph-config:show,WAN_graph-config:show,refreshInterval=1</traffic_graphs-config></widgets> 
    --------------------------------------------------------
    Close browser (FF3 and IE7) start browser and login:
    -------------------------------------------------------
    	 <widgets><traffic_graphs-config>LAN_graph-config:show,WAN_graph-config:show,refreshInterval=1</traffic_graphs-config></widgets> 
    

    Now that is even stranger than before. The config is in no way session based. Once you save the dashboard its written to the config. I would remove the entire <widget>entry in your config and see how that works. Sounds like your config is really messed up somehow.</widget>



  • Now that is even stranger than before. The config is in no way session based. Once you save the dashboard its written to the config. I would remove the entire <widget>entry in your config and see how that works. Sounds like your config is really messed up somehow.</widget>

    I thought the same, that was why i did a reinstall from a 1.2 cd to snapshot. But let's see if others confirms it or i find a empty cd so i can burn a image :).



  • I tend to agree with Perry.  I think I spoke to soon.

    1. I removed the old "broken" settings in config.xml and rebooted.
    2. I now get the default 3 widgets and the config.xml is empty with widget data.
    3. I added some extra items to dashboard and saved. (saw in config.xml that it is saved OK)
    4. I then rebooted the machine again and when I logged in it was back to before square 1
    with no data on the dashboard and the config.xml was:

    5. I then edited the config.xml again and removed the whole widgets section and rebooted.
    6. I now get the default 3 widgets and the config.xml is empty with widget data.
    7. I added some extra items to dashboard and saved. (saw in config.xml that it is saved OK)
    8. Closed the FF window and open it again. (didn't have to give password !?)  Dashboard intact with my saved data.
    9. Closed the FF window and logged in using IE (this time I had to enter user/psw) and used same
    as in FF.  (admin/pfsense) and NOW we are back to square 1 again.  No data on dashboard
    and the config file shows:

    Conclusion:
    It feels like something is saving widget data to config.xml once to many with empty data
    when you login.

    It corrupts the widget data somehow between sessions.

    ///Dan Lundqvist

    Ps. I will try again with the latest ALPHA-20080723-1247.tgz to see if anything is different. Get back with result.

    Updates on ALPHA-20080723-1247:

    • Now I can see that your functions is removing the invalid widget setting (and the default dashboard is presented).
    • I then added an extra item on dash and saved.  config.xml shows the corrected save-data.
    • I then closed the browser window and opened up IE and logged in again.
    • Now i'm back to the default dash (as something has corrupted the data again and your function has kicked
      in to remove the faulty data.)
      And now the "Traffic Graphs" widget has broken images.


  • Tested by loading a new card with pfSense-20080723-1145.img
    Seeing the same behavior as Perry. Getting a default page with Sys Info, Interfaces, Traffic Graphs. (Used to have Sys Info and the welcome to dashboard wizard). When I add say, service status, it's gone the next time I log in.



  • Ok, I'm able to duplicate this issue and will take a look into it soon.



  • Can you all confirm that this fixes the problems.

    Diagnostics->Edit File /usr/local/www/index.php
    go to line 141 or search for _POST and change from
    141 if ($_POST){

    to
    141 if ($_POST && $_POST['submit']){

    Report back so i can fix it in CVS too.



  • Yes that did it  ;)



  • @ermal:

    Can you all confirm that this fixes the problems.

    Diagnostics->Edit File /usr/local/www/index.php
    go to line 141 or search for _POST and change from
    141 if ($_POST){

    to
    141 if ($_POST && $_POST['submit']){

    Report back so i can fix it in CVS too.

    Thanks Ermal! That's interesting why it needs that now. I would say lets modify it to only "if($_POST['submit']){…."



  • The fix seems to be working on my system- I logged out and back in and the dashboard settings are retained. Thanks Ermal



  • I have commited Ermals suggestion.  Thanks Ermal



  • Have done the change and it seems to work for me as well…

    ///Dan Lundqvist


Log in to reply