[Koha-bugs] [Bug 19898] Koha 17.11 - Upload Local Cover Image Failed - " Cannot process file as an image"
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jan 3 02:46:05 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19898
--- Comment #3 from Craig <cbutosi at gmail.com> ---
(In reply to Jonathan Druart from comment #2)
> The relevant code of the warning is:
>
> 1084 my $branches = { map { $_->branchcode =>
> $_->unblessed } Koha::Libraries->search };
> 1085 if ( $type ne 'opac' and
> C4::Context->boolean_preference('AutoLocation') ) {
> 1086
> 1087 # we have to check they are coming from the
> right ip range
> 1088 my $domain =
> $branches->{$branchcode}->{'branchip'};
> 1089 $domain =~ s|\.\*||g;
> 1090 if ( $ip !~ /^$domain/ ) {
> 1091 $loggedin = 0;
> 1092 $cookie = $query->cookie(
> 1093 -name => 'CGISESSID',
> 1094 -value => '',
> 1095 -HttpOnly => 1
> 1096 );
> 1097 $info{'wrongip'} = 1;
> 1098 }
> 1099 }
>
>
> It says that you have AutoLocation turned on and the "branchip" field of the
> branches table does not match your IP. It also says that you are using a non
> superlibrarian account.
>
> Could you confirm this?
> If the IP does not match, it is expected that you are rejected, but in that
> case it should be the same behaviour with other scripts.
Hi Jonathan,
Thanks for this. I am indeed using a superlibrarian account, so I'm surprised
that it is reporting otherwise. I have only one patron in the system, me, and
it was initially setup as superlibrarian staff. You are correct about
Autolocation, it was turned on. But I have since disabled it. The IP address
field in the bramches table is blank.
Unfortunately, after turning off Autolocation, restarting Koha, and restarting
memcache, the error still persists.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list