[ZBX-3649] Web server outputs error with IE6 because "frontends/php/styles/ie_default.css" doesn't exist. Created: 2011 Mar 28  Updated: 2017 May 30  Resolved: 2011 Dec 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.3, 1.8.4
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Takanori Suzuki Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: ie
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

zabbix 1.8.3, 1.8.4 and IE6



 Description   

Web server outputs following error with IE6 because "ie_default.css" doesn't exist.

[Fri Dec 10 18:04:54 2010] [error] [client 192.168.20.1] File does not exist: /usr/share/zabbix/styles/ie_default.css, referer: http://10.2.0.154/zabbix/

Empty "ie_default.css" file resolves this problem.
This bug is almost same as ZBX-2937.



 Comments   
Comment by Igor Danoshaites (Inactive) [ 2011 Mar 28 ]

Hi,

Some time ago similar issue ZBX-2937 has been fixed in v1.8.4.

I also can not reproduce the same issue in the latest revision from the 1.8 branch (pre-1.8.5) when using IE6.

Can you please try to check the same case in the latest revision from the 1.8 branch (rev #18729) ?

More over, I just checked occurrence of file "ie_default.css" in the Zabbix src code and can say that there are no any call of "ie_default.css" in the src code, so there could not be error "File does not exist: /usr/share/zabbix/styles/ie_default.css," if you did not changed src file manually.

Comment by Takanori Suzuki [ 2011 Mar 29 ]

Hi.

I checked again in the latest revision from the 1.8 branch(rev #18756)
This issue is still reproduced.

The string of "ie_default.css" is made dynamically at ./frontends/php/include/page_header.php:137.
Please see following code.
$css is set as "default.css" which is come from "default_theme" row in "config" table.

./frontends/php/include/page_header.php:137: print('<!-[if IE 6]><link rel="stylesheet" type="text/css" href="styles/ie_'.$css.'" /><![endif]->'."\n");

Comment by Takanori Suzuki [ 2011 Mar 29 ]

Following log is output to "/var/log/apache2/error.log"
Zabbix is latest 1.8 branch(rev #18756).

[Tue Mar 29 20:21:37 2011] [error] [client 127.0.0.1] File does not exist: /var/www/zabbix_branches_1.8/styles/ie_default.css, referer: http://127.0.0.1/zabbix_branches_1.8/
[Tue Mar 29 20:21:46 2011] [error] [client 127.0.0.1] File does not exist: /var/www/zabbix_branches_1.8/styles/ie_default.css, referer: http://127.0.0.1/zabbix_branches_1.8/events.php

Comment by Alexander Sorokin (Inactive) [ 2011 Nov 23 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-3649

Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 28 ]

(1) Files ie_css_bb.css and and ie_css_ob.css are empty and have been created precisely to avoid this error. I think we can remove them now.

<pavels> Don't delete the css_ob.css and css_bb.css files. They are used for themes.

<sanja> RESOLVED

<richlv> apparently they have been restored by plain 'svn add', which breaks revision history. i believe something like "svn merge -r 23667:23628" might help, but i haven't verified that

<sanja> RESOLVED Now files added using reverse merge.

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 29 ]

(2) Fixed the coding style a bit. Please review my commit r23573.

<sanja> RESOLVED

<pavels> Since you're the one who is reviewing my code, you should write CLOSED.

<sanja> CLOSED

Comment by Alexander Sorokin (Inactive) [ 2011 Nov 30 ]

Fixed in 1.8.10rc1

Generated at Fri Apr 19 01:29:13 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.