Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON text must be an object or array: HTTP/1.0 500 Perl execution failed Server #230

Closed
unixjeff opened this issue Aug 31, 2015 · 4 comments

Comments

@unixjeff
Copy link

When loging in it takes me to a blank page, when i change the theme in the console loads just fine, i removed it and reinstall in and still no luck. any suggestions?

not sure if that error is related
**
HTTP/1.0 500 Perl execution failed Server: MiniServ/1.760 Date: Mon, 31 Aug 2015 06:33:27 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close
Error - Perl execution failed
JSON text must be an object or array (but found number, string, true, false or null, use allow_nonref to allow this) at /usr/share/webmin/authentic-theme/authentic-lib.cgi line 868.

@iliajie
Copy link
Collaborator

iliajie commented Aug 31, 2015

Hmm. I see. Probably this fix will make it work.

Open line 868 and replace this line

$fc = decode_json( $f =~ /\{(?:\{.*\}|[^{])*\}/sg );

with:

my ($f) = $f =~ /\{(?:\{.*\}|[^{])*\}/sg;
my $fc = decode_json( $f );

Works now?

@iliajie iliajie changed the title unable to load theme JSON text must be an object or array: HTTP/1.0 500 Perl execution failed Server Aug 31, 2015
@unixjeff
Copy link
Author

unixjeff commented Sep 1, 2015

Perfect that worked!

@iliajie
Copy link
Collaborator

iliajie commented Sep 1, 2015

Alright, thanks!

@iliajie iliajie closed this as completed Sep 1, 2015
@iliajie
Copy link
Collaborator

iliajie commented Sep 1, 2015

Please update to 15.51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants