Menu

#2346 (ok 2.11) [MSIE] error.ico url problem

fixed
Interface (555)
1
2013-06-11
2007-02-05
No

Windows XP Home
Apache 2.2.4
MySQL 5.0.27
PHP 5.2.0
phpMyAdmin 2.9.2

Using MSIE7, In Apache error.log I see this error:
[Mon Feb 05 00:11:25 2007] [error] [client 127.0.0.1] File does not exist: C:/apache/localhost/www/themes, referer: http://localhost/phpmyadmin/db_details_structure.php?server=1&db=mysql&table=&lang=en-utf-8&collation_connection=utf8_unicode_ci

themes/original/css/theme_right.css.php line 624 and
themes/darkblue_orange/css/theme_right.css.php line 652:
cursor: url(../<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>error.ico), default;

Changed to:
cursor: url("./<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>error.ico"), default;

It solves the problem with the path error but I still do not understand why double dot is there? Searching I found this css/phpmyadmin.css.php line 370:
cursor: url(<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/error.ico), url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/error.ico), default;

Hmm... Here we are trying to find error.ico in the theme path and if it's not there down the level otherwise default cursor. Nice, but I still don't see any reason why double dot is there?

And I have to say that this cursor looks horrible, IE resample it from 16x16 to 32x32. This giant monster frightens me. Last but not least - do we really need this cursor? Where is it helpfull? I saw it only under greyed menu tabs where it's not necessary.

Discussion

  • Sebastian Mendel

    • summary: error.ico url problem --> [MSIE] error.ico url problem
     
  • Sebastian Mendel

    Logged In: YES
    user_id=326580
    Originator: NO

    it is an IE bug - or to say it with other words: IE does not work like other browsers do.

    the css file is in folder /css/ but the icon is on folder /themes/...

    so we have to use ../ to go one folder back from /css/ as path are relative to the css file and not to the html file linking this css file ...

    but IE does resolve this path relative to the html file linking this css file

     
  • Sebastian Mendel

    Logged In: YES
    user_id=326580
    Originator: NO

    it IS an IE issue!

    the topic you are talking about has nothing to do with this problem, beside that for both problems the same suggested change will fix it

    the problem mentioned here is webserver independently as described before
    the problem you point is IIS webserver related

    but of course all beside this - you are right - i was also thinking about moving phpmyadmin.css.php up one level

     
  • Sebastian Mendel

    Logged In: YES
    user_id=326580
    Originator: NO

    it IS an IE issue!

    the topic you are talking about has nothing to do with this problem, beside that for both problems the same suggested change will fix it

    the problem mentioned here is webserver independently as described before
    the problem you point is IIS webserver related

    but of course all beside this - you are right - i was also thinking about moving phpmyadmin.css.php up one level

     
  • Sebastian Mendel

    Logged In: YES
    user_id=326580
    Originator: NO

    should be fixed in SVN trunk

     
  • Sebastian Mendel

    • priority: 5 --> 1
    • assigned_to: nobody --> cybot_tm
    • summary: [MSIE] error.ico url problem --> (ok 2.11) [MSIE] error.ico url problem
    • status: open --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2007-08-21
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     
MongoDB Logo MongoDB