Bugzilla – Attachment 73431 Details for
Bug 20428
MARC import fails on Debian Stretch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20428: Make about.pl inform about missing upload_tmp_path entry
Bug-20428-Make-aboutpl-inform-about-missing-upload.patch (text/plain), 2.63 KB, created by
Tomás Cohen Arazi (tcohen)
on 2018-03-29 14:19:33 UTC
(
hide
)
Description:
Bug 20428: Make about.pl inform about missing upload_tmp_path entry
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2018-03-29 14:19:33 UTC
Size:
2.63 KB
patch
obsolete
>From ee38f52a50c4070c813fd6512e6faf2228367383 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 29 Mar 2018 10:45:30 -0300 >Subject: [PATCH] Bug 20428: Make about.pl inform about missing upload_tmp_path > entry > >This patch makes about.pl warn about a missing upload_tmp_path entry in >koha-conf.xml. It also mentions the effectively used tmp dir. >--- > about.pl | 8 ++++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 9 +++++++++ > 2 files changed, 17 insertions(+) > >diff --git a/about.pl b/about.pl >index cfc2e32fe4..dd350cae77 100755 >--- a/about.pl >+++ b/about.pl >@@ -43,6 +43,7 @@ use Koha::Caches; > use Koha::Config::SysPrefs; > use Koha::Illrequest::Config; > use Koha::SearchEngine::Elasticsearch; >+use Koha::UploadedFiles; > > use C4::Members::Statistics; > >@@ -225,6 +226,13 @@ if ( ! defined C4::Context->config('upload_path') ) { > } > } > >+if ( ! defined C4::Context->config('upload_tmp_path') ) { >+ push @xml_config_warnings, { >+ error => 'uploadtmppath_entry_missing', >+ effective_upload_tmp_dir => Koha::UploadedFile->temporary_directory >+ } >+} >+ > # Test QueryParser configuration sanity > if ( C4::Context->preference( 'UseQueryParser' ) ) { > # Get the QueryParser configuration file name >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >index cac50024fc..eabbed94b3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >@@ -111,6 +111,7 @@ > [% ELSIF (errZebraConnection) %] > <tr><th scope="row"><b>Warning</b> </th><td>Error message from Zebra: [% ( errZebraConnection ) %] </td></tr> > [% END %] >+ > </table> > </div> > <div id="perl"> >@@ -383,6 +384,14 @@ > Also note that you need to properly set the OPACBaseURL preference for the file upload plugin to work. > </td> > </tr> >+ [% ELSIF config_entry.error == 'uploadtmppath_entry_missing' %] >+ <tr> >+ <th scope="row"><b>Warning</b></th> >+ <td>You are missing the <upload_tmp_path> entry in your koha-conf.xml file. Please >+ add it, pointing to the configured temporary file upload directory for your Koha instance. >+ The effective temporary file upload directory is '[% config_entry.effective_upload_tmp_dir %]' >+ </td> >+ </tr> > [% END %] > [% END %] > </table> >-- >2.16.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20428
:
73426
|
73427
|
73428
|
73429
|
73430
|
73431
|
75159
|
75160
|
75161
|
75162
|
75163
|
75164
|
75169
|
75170
|
75171
|
75172
|
75275
|
75279
|
75280
|
75281
|
75282
|
75283
|
75286
|
75293
|
75294
|
75295
|
75296
|
75297
|
75298
|
75305