Hi Bernard, On Thu, Oct 15, 2009 at 12:48 PM, Bernard Shiundu <bshiundu@strathmore.edu>wrote:
Hi Chris,
Sorry I took so long to get back to you. Just tested. Fixed for layouts + profiles but problem still persists for templates. Logs below
1. Log output when I choose a template to edit:
[Thu Oct 15 19:40:46 2009] [error] [client ....] [Thu Oct 15 19:40:46 2009] label-edit-template.pl: operation = edit, referer: *MailScanner has detected a possible fraud attempt from "localhost08" claiming to be*http://.../cgi-bin/koha/labels/label-manage.pl?label_element=template<http://localhost:8008/cgi-bin/koha/labels/label-manage.pl?label_element=template> [Thu Oct 15 19:40:46 2009] [error] [client ...] [Thu Oct 15 19:40:46 2009] label-edit-template.pl: Use of uninitialized value in numeric eq (==) at /.../labels/label-edit-template.pl line 103., referer: *MailScanner has detected a possible fraud attempt from "localhost08" claiming to be*http://.../cgi-bin/koha/labels/label-manage.pl?label_element=template<http://localhost:8008/cgi-bin/koha/labels/label-manage.pl?label_element=template>
2. Log output on save [Thu Oct 15 19:41:04 2009] [error] [client ...] [Thu Oct 15 19:41:04 2009] label-edit-template.pl: operation = save, referer: *MailScanner has detected a possible fraud attempt from "localhost08" claiming to be*http://..../cgi-bin/koha/labels/label-edit-template.pl?op=edit&element_id=2<http://localhost:8008/cgi-bin/koha/labels/label-edit-template.pl?op=edit&element_id=2> [Thu Oct 15 19:41:04 2009] [error] [client ...] [Thu Oct 15 19:41:04 2009] label-edit-template.pl: Can't bless non-reference value at /..../C4/Labels/Profile.pm line 89., referer: *MailScanner has detected a possible fraud attempt from "localhost08" claiming to be*http://localhost:8008/cgi-bin/koha/labels/label-edit-template.pl?op=edit&element_id=2<http://localhost:8008/cgi-bin/koha/labels/label-edit-template.pl?op=edit&element_id=2>
Ok. I found two other places that needed some conditionals and have submitted a patch for them. This should resolve the issue completely (I hope). Please test and let me know how it goes. Kind Regards, Chris