Bug 12613

Summary: Core Update 156 Testing - Internal server error on WebGUI after upgrade
Product: IPFire Reporter: Rejjy_S <rejeancgrpq>
Component: ---Assignee: Assigned to nobody - feel free to grab it and work on it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: Major Usability    
Priority: - Unknown - CC: adolf.belka, bbitsch, michael.tremer, rejeancgrpq
Version: 2   
Hardware: x86_64   
OS: Unspecified   
Attachments: Error_Log from httpd folder
header.pl file for core156 (problematic)
header.pl file for core155 (works ok)
core156 error message generated after login
File list of index.cgi file for core156
File list of index.cgi file for core155 (for comparision)
index.cgi file from core155 stable
index.cgi file from test core156 (problematic)
Screen capture of default theme selected on stable core155
attachment-25628-0.html

Description Rejjy_S 2021-04-22 21:25:31 UTC
Created attachment 880 [details]
Error_Log from httpd folder

Refer to comment #12 of  "2.25 core 156 testing: feedback" topic in the community site.

My problem appears similar to bug 12612 it that it relates to a server error message on the GUI, but mine happens when actually trying to access the WebGUI directly.  Not running on VM, and physical box is next to me.  I can access the CL via keyboard and monitor.  Attached is my httpd error_log
Comment 1 Michael Tremer 2021-04-26 10:45:33 UTC
What is the content of /var/ipfire/header.pl?
Comment 2 Rejjy_S 2021-04-30 03:50:46 UTC
Created attachment 882 [details]
header.pl file for core156 (problematic)
Comment 3 Rejjy_S 2021-04-30 03:51:50 UTC
Created attachment 883 [details]
header.pl file for core155 (works ok)
Comment 4 Rejjy_S 2021-04-30 03:53:32 UTC
Created attachment 884 [details]
core156 error message generated after login
Comment 5 Rejjy_S 2021-04-30 03:55:12 UTC
Created attachment 885 [details]
File list of index.cgi file for core156
Comment 6 Rejjy_S 2021-04-30 03:56:39 UTC
Created attachment 886 [details]
File list of index.cgi file for core155 (for comparision)
Comment 7 Rejjy_S 2021-04-30 05:49:17 UTC
Hi Michael ... update

I took a quick look at both the header.pl file and the index.cgi files of both the test core156 (problematic) and stable core155.

I'll attach more files, but in a summary i noticed the following ...


For INDEX.CGI file: 

The core156 theme is hardcoded location, whereas the core155 is variable driven.

155= &General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color);
156= &General::readhash("/srv/web/ipfire/html/themes/ipfire/include/colors.txt", \%color);


For HEADER.PL file, 

case#1 showing core155 version
  our $THEME_NAME = $settings{'THEME'};   <<<<< THIS LINE IS NOT IN core156

  require "${swroot}/langs/en.pl";
  require "${swroot}/langs/${language}.pl";

------------

case#2 This section was added in core156 version,
  # (the "Network" module is loaded by general-functions.pl)
  if(&Network::is_red_mode_ip()) {
	$menu->{'01.system'}{'subMenu'}->{'20.dialup'}{'enabled'} = 0;
  }


I hope this helps a bit. 
Rejjy
Comment 8 Rejjy_S 2021-04-30 05:52:34 UTC
Created attachment 887 [details]
index.cgi file from core155 stable
Comment 9 Rejjy_S 2021-04-30 05:53:49 UTC
Created attachment 888 [details]
index.cgi file from test core156 (problematic)
Comment 10 Rejjy_S 2021-05-04 05:33:22 UTC
Note that I have not selected any optional "Theme" on core155 other than comes out of the box as default install.  Same goes for the TEST core156.
Comment 11 Bernhard Bitsch 2021-05-04 08:15:27 UTC
Which theme did you select?
Comment 12 Rejjy_S 2021-05-04 15:54:07 UTC
Hi Bernhard

Sorry I guess my comment #10 was maybe confusing.
On my stable ver 155 that I've been using and running fine, the theme is the default that comes during the install. I do not change themes. 

When I look at the GUI on 155, the theme I see is "ipfire" (see attached screen capture)

For the test ver 156, I can not get to the WebGUI after logon, thus the reason for this bug.  So I can not tell you what the theme is used for that version.

Rejjy
Comment 13 Rejjy_S 2021-05-04 15:56:04 UTC
Created attachment 892 [details]
Screen capture of default theme selected on stable core155
Comment 14 Adolf Belka 2021-09-28 11:43:36 UTC
Is this bug still existing with Core Update 159?
Comment 15 Rejjy_S 2021-09-30 03:32:43 UTC
Created attachment 944 [details]
attachment-25628-0.html

This can be closed. 

The problem was with the 156 advanced testing version. 

A new complete full install of ver 157 standard release was ok. 

Rejean 


> On Sep 28, 2021, at 07:43, IPFire Bugzilla <bugzilla@ipfire.org> wrote:
> 
> Adolf Belka changed bug 12613 
> What	Removed	Added
> CC	 	adolf.belka@ipfire.org
> Comment # 14 on bug 12613 from Adolf Belka
> Is this bug still existing with Core Update 159?
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
Comment 16 Adolf Belka 2021-09-30 10:19:15 UTC
Bug is being closed as issue was not found on following Core Update 157 full release.