Bug 22027 - Upload cover image
Summary: Upload cover image
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: 18.11
Hardware: All Linux
: P5 - low major (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-19 17:37 UTC by Federico Paiz
Modified: 2021-06-14 21:29 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
error_imagen (33.93 KB, image/png)
2018-12-19 17:37 UTC, Federico Paiz
Details
image 1 (305.81 KB, image/png)
2018-12-20 13:54 UTC, Federico Paiz
Details
imagen 2 (254.17 KB, image/png)
2018-12-20 13:56 UTC, Federico Paiz
Details
imagen 3 (298.25 KB, image/png)
2018-12-20 13:56 UTC, Federico Paiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Paiz 2018-12-19 17:37:00 UTC
Created attachment 83395 [details]
error_imagen

Upload cover image

When we upload an image, it shows us on the screen:
 

 not found: No such file or directory at /usr/lib/x86_64-linux-gnu/perl5/5.26/GD/Image.pm line 64.

and in the log:

[Wed Dec 12 13: 21: 40.425798 2018] [cgi: error] [pid 1838] [client 170.210.158.2:35596] AH01215: [Wed Dec 12 13:21:40 2018] upload-cover-image.pl: not found: No such file or directory at /usr/lib/x86_64-linux-gnu/perl5/5.26/GD/Image.pm line 64 .: / usr / share / koha / intranet / cgi-bin / tools / upload-cover -image.pl, referer: http://biblioadmin.unaj.edu.ar/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=4420&filetype=image
Comment 1 Jonathan Druart 2018-12-19 20:56:42 UTC
Hi Federico,

Which OS are you using? Which version of GD?
Does it happen with any images? Can you share an example that produces this error?
Comment 2 Federico Paiz 2018-12-20 13:54:36 UTC
Created attachment 83417 [details]
image 1


first I come here
Comment 3 Federico Paiz 2018-12-20 13:55:07 UTC
The version of the operating system ubuntu 18.04, koha 18.11 and GD 2.66. It happens when we want to load covers, it says that it loads to 100%, we accept and it shows that message
Comment 4 Federico Paiz 2018-12-20 13:56:08 UTC
Created attachment 83418 [details]
imagen 2
Comment 5 Federico Paiz 2018-12-20 13:56:29 UTC
Created attachment 83419 [details]
imagen 3
Comment 6 Jonathan Druart 2018-12-20 22:06:10 UTC
I wanted you to share an example of the images you used to make it fails.

Did you take a look at the about page, tab "System information". Maybe you will get an alert about your tmp path.
Comment 7 Federico Paiz 2018-12-21 18:56:29 UTC
yes, I did all the steps but still asking for the tmp. There are some steps for new ones for 18.11?, because in versions 16 they worked well for me and now it's still the same
Comment 8 Federico Paiz 2019-01-11 17:06:24 UTC
the tmp would already be but the error persists
Comment 9 Jonathan Druart 2019-06-06 20:34:20 UTC
Hi Frederico, did you finally fix your issue?
Comment 10 Katrin Fischer 2019-08-18 08:34:36 UTC
Closing this as RESOLVED for now. Please reopen if problem still exists or consider posting to the mailing list first as this might be a configuration issue.
Comment 11 Craig 2020-06-17 12:26:11 UTC
Hi all,

Reopening this bug, as I'm experiencing exactly the same issue as Federico:

I recently upgraded my Koha version to latest stable (20.05), moved my
OPAC over to https (staff intranet is still http but firewalled), and
upgraded to Ubuntu 18.04 (bionic).

I tried uploading a jpg cover image on one of my pre-existing bib
records, and immediately after I click Process Image, a Software Error
is thrown (exactly like Bug 22027). Here's what I'm getting:

Browser Error:

"Software error:
 not found: No such file or directory at
/usr/lib/x86_64-linux-gnu/perl5/5.26/GD/Image.pm line 64.
For help, please send mail to the webmaster ([no address given]),
giving this error message and the time and date of the error."

Intranet Error Log:

[Wed Jun 17 08:14:40.691991 2020] [cgi:error] [pid 3914] [client
142.116.114.198:52446] AH01215: [Wed Jun 17 08:14:40 2020]
upload-cover-image.pl:  not found: No such file or directory at
/usr/lib/x86_64-linux-gnu/perl5/5.26/GD/Image.pm line 64.:
/usr/share/koha/intranet/cgi-bin/tools/upload-cover-image.pl, referer:
http://library.craigbutosi.ca:8080/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=127&filetype=image

There was mention of Koha system warnings in 22027; I have none. There
was also mention of temp path. In my koha-conf.xml, I have
"<tmp_path>/tmp</tmp_path>"

What could be the problem?
Comment 12 Jonathan Druart 2020-06-17 12:40:06 UTC
Add this entry to you koha-conf.xml file:
   <tmp_path>/var/lib/koha/$INSTANCE/tmp</tmp_path>

with $INSTANCE the name of your koha installation.
Create the tmp directory if it does not exist, and give it the correct permissions (to your koha user).

Then restart the services (memcached, plack then apache)
Comment 13 Craig 2020-06-17 13:00:56 UTC
Hi Jonathan,

Thanks! That did the trick.

By the way, the tmp folder was there already.

Much appreciated!