Dashboard does not save settings
-
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