Skip to content

Commit c2bb42d

Browse files
authored
Merge pull request #131 from bramley/Mantis_18503
Mantis 18503 - Clearer error message on plugins page when url fopen wrappers are not enabled
2 parents d6fce45 + 903e0df commit c2bb42d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: public_html/lists/admin/plugins.php

+2
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@
165165

166166
if (defined('PLUGIN_ROOTDIR') && !is_writable(PLUGIN_ROOTDIR)) {
167167
Info(s('The plugin root directory is not writable, please install plugins manually'));
168+
} elseif (ini_get('allow_url_fopen') != '1') {
169+
Info(s('The PHP option for <a href="http://php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen">URL-aware fopen wrappers</a> needs to be enabled. This is required to allow installation from a remote URL'));
168170
} elseif (!class_exists('ZipArchive')) {
169171
Info(s('PHP has no <a href="http://php.net/zip">Zip capability</a>. This is required to allow installation from a remote URL'));
170172
} else {

0 commit comments

Comments
 (0)