OpenMediaVault-Plugin-Developers / openmediavault-sensors

openmediavault-sensors
11 stars 5 forks source link

[BUG] openmediavault-sensors #5

Open KronFacer opened 8 years ago

KronFacer commented 8 years ago

OMV 2.2.5

If uninstalling the plugin when there is still a sensors window in the dashboard the webgui breaks after gui reload.

I fixed the broken gui by re-installing the plugin via apt, removing the windows from the dashboard, then uninstalling the plugin via webgui.

ryecoaaron commented 8 years ago

This could probably be fixed by Resetting the GUI to defaults option in the top right shutdown menu or using the apt clean button in omv-extras. If neither of those work, I can't think of a way that the plugin's uninstall code could fix it.

KronFacer commented 8 years ago

The reset gui to defaults option is not available. This is all that is shown after the login screen. Cache was cleared and another browser was tried. http://i.imgur.com/TZ442Wr.png

ryecoaaron commented 8 years ago

omv-aptclean from command line?

KronFacer commented 8 years ago

I didnt try that, I fixed it by re-installing the plugin via apt.

ryecoaaron commented 8 years ago

Can you try it again? That would be the method left that I can think of to fix the problem. I don't use the plugin so I have no idea what to try.

KronFacer commented 8 years ago

This is the gui output after uninstalling the plugin http://pastebin.com/1vzh8bb8

GUI breaks again, screenshot is the same as above.

omv-aptclean did not fix the issue.

ryecoaaron commented 8 years ago

If you ran omv-aptclean after uninstalling and still had the same problem, there is nothing (I can think of) that the plugin can do. This is a client side javascript issue (as far as I can tell) that the postrm script can't fix. omv-aptclean clears the server side javascript cache. Did you try a different browser with clear cache or private window after omv-aptclean?

KronFacer commented 8 years ago

Jump in IRC.

ryecoaaron commented 8 years ago

Can't for many reasons right now. Don't have a client installed either.

KronFacer commented 8 years ago

No worries.

I have tried IE and Chrome with cleared caches and a Chrome incognito window.

I'll hunt around a bit and see if i can pin point it.

cptjhmiller commented 8 years ago

After uninstall check /var/www/openmediavault/js/omv/module/admin/dashboard/view/Sensors.js /var/www/openmediavault/js/omv/module/admin/dashboard/part/Sensors.js If they are there delete them and run rm -f /var/cache/openmediavault/cache.*.json refresh the page and see if that fixes the issue, i will update the code if it does.