use Koha::Config::SysPrefs;
use Koha::Illrequest::Config;
use Koha::SearchEngine::Elasticsearch;
+use Koha::UploadedFiles;
use C4::Members::Statistics;
}
}
+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
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>