OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: Andrew Berdnik on May 30, 2024, 09:52:48 AM

Title: GUI access failed with error
Post by: Andrew Berdnik on May 30, 2024, 09:52:48 AM
After update to 24.1.7 web gui works fine. Next mornig connection to web gui fail with error displayed at browser:

Fatal error: Uncaught Error: Call to undefined function get_current_theme() in /usr/local/etc/inc/authgui.inc:349 Stack trace: #0 /usr/local/etc/inc/authgui.inc(265): display_login_form(NULL) #1 /usr/local/www/guiconfig.inc(115): require_once('/usr/local/etc/...') #2 /usr/local/www/index.php(31): require_once('/usr/local/www/...') #3 {main} thrown in /usr/local/etc/inc/authgui.inc on line 349

Any ideas how to fix that ?
Title: Re: GUI access failed with error
Post by: bartjsmit on May 30, 2024, 08:37:19 PM
Try a different browser? Do SSH and console login still work?
Title: Re: GUI access failed with error
Post by: Andrew Berdnik on May 31, 2024, 08:01:36 AM
Same error in other browsers.
SSH and console works fine.
Title: Re: GUI access failed with error
Post by: franco on May 31, 2024, 08:32:17 AM
We don't have "get_current_theme" function in our code anymore so I think the error is at least understandable. Any idea what's using it?

If in doubt just try to reset the core package:

# opnsense-revert opnsense


Cheers,
Franco
Title: Re: GUI access failed with error
Post by: StodaraHodan on July 09, 2024, 01:53:14 PM
I have this same issue after installing a vanilla opnsense 24.1 from the image, and then struggeling with the update to the latest minor version, had to "pkg install opnsense" for the package manager to recognize that its actually installed, then after upgrade to 24.1.9 i cannot login to the webgui because of this error. i have not changed any meaningful setting after vanilla install, only activated ssh and root login.

also did opnsense-bootstrap, but didn't fix it.
Title: Re: GUI access failed with error
Post by: franco on July 10, 2024, 08:19:40 AM
It still sounds like the files on the disk are not 100% the state they should be in.


Cheers,
Franco