How change favicon.png

Hi, I try to change the favicon.png but it’s don’t work. In apache log i
have this message :’<&’ without matching ‘&>’ at
/opt/rt4/local/html/NoAuth/images/favicon.png line 38
(/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:208)

How can i change the favicon?

Thx

Hi, I try to change the favicon.png but it’s don’t work. In apache log i
have this message :‘<&’ without matching ‘&>’ at
/opt/rt4/local/html/NoAuth/images/favicon.png line 38
(/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:208)

How can i change the favicon?

Stop apache from serving images dir via RT code. I think this part is
covered in the docs
shipped with RT.

Thx

Best regards, Ruslan.

Hi, I try to change the favicon.png but it’s don’t work. In apache log i
have this message :‘<&’ without matching ‘&>’ at
/opt/rt4/local/html/NoAuth/images/favicon.png line 38
(/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:208)

The problem is the Mason handler. You have got two options.

First one is, that you place the icon-file somewhere else (not in
RT-folders) where Mason will not try to interpret the file as some part
of source code.

Second one is a bit more complicated. You need to create a subdirectory
where you store the image of the favicon.

mkdir -p /opt/rt4/local/html/NoAuth/images/hiddensource

Then move the favicon into this folder.

mv /opt/rt4/local/html/NoAuth/images/favicon.png /opt/rt4/local/html/NoAuth/images/hiddensource/

Then you create a dhandler-file, which Mason will use when there is no
file with that name in the folder.

cat </opt/rt4/local/html/NoAuth/images/dhandler
<%INIT>
use File::Basename;
my $arg = $m->dhandler_arg;
my $file = dirname($m->current_comp->source_file) . ‘/hiddensource/’ .
$arg;
RT::Interface::Web->SendStaticFile( File => $file );
$m->abort;
</%INIT>
EOT

Because the /opt/rt4/shared/html/NoAuth/images/autohandler exists you
need to locally overwrite it. Use the dhandler for this.

cp /opt/rt4/local/html/NoAuth/images/dhandler /opt/rt4/local/html/NoAuth/images/autohandler

This will make Mason send the static file and will not make it interpret
the favicon as some kind of source code.

Well and you might need to delete the favicon in
/opt/rt4/shared/html/NoAuth/images
Because else this one will be used.

mv /opt/rt4/shared/html/NoAuth/images/favicon.png /opt/rt4/shared/html/NoAuth/images/favicon.org.png

I hope that helps.

Greetings,
Alex

try your second solution, it’s works but i all my images which are in
local/html/NoAuth/images don’t show. So now my css is disgusting !!!2012/6/21 Jonathan Khattir jonathan.khattir@mobiquithings.net

Hi, I try to change the favicon.png but it’s don’t work. In apache log i
have this message :‘<&’ without matching ‘&>’ at
/opt/rt4/local/html/NoAuth/images/favicon.png line 38
(/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:208)

How can i change the favicon?

Thx

Use an alias in your apache config:

Alias /favicon.ico /some/place/where/you/have/your/favicon.ico

JokOn Jun 26, 2012, at 3:33 AM, “Jonathan Khattir” <jonathan.khattir@mobiquithings.netmailto:jonathan.khattir@mobiquithings.net> wrote:

try your second solution, it’s works but i all my images which are in local/html/NoAuth/images don’t show. So now my css is disgusting !!!

2012/6/21 Jonathan Khattir <jonathan.khattir@mobiquithings.netmailto:jonathan.khattir@mobiquithings.net>
Hi, I try to change the favicon.png but it’s don’t work. In apache log i have this message :‘<&’ without matching ‘&>’ at /opt/rt4/local/html/NoAuth/images/favicon.png line 38 (/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:208)

How can i change the favicon?

Thx