https://bugzilla.wikimedia.org/show_bug.cgi?id=43469

Bawolff (Brian Wolff) <bawolff...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Bawolff (Brian Wolff) <bawolff...@gmail.com> ---
[offtopic] /me thinks the default error message should have instructions to
enable $wgShowExceptionDetails to see details (and not just in an html
comment). Didn't that use to be the case?

----

Do you have instant commons enabled? The error from your website is as follows:

Exception Caught: MWHttpRequest::factory: allow_url_fopen needs to be enabled
for pure PHP http requests to work. If possible, curl should be used instead.
See http://php.net/curl.

This is most likely because you checked use images from commons during the
install process (or set $wgUseInstantCommons to true). Thus when you include an
image, MW tries to check if wikimedia commons has a file. However to do that it
has to contact commons. It tries to use CURL or php's fopen to do so. But curl
is not installed, and allow_url_fopen is disabled in your php.ini. Hence the
error.

Solution: Best solution - try to convince your web host to install the curl php
extension. Second best, convince him/her to set allow_url_fopen to true in
php.ini. Both of these usually require root access.

If you cannot convince them to do that, go into your LocalSettings.php and look
for a line $wgUseInstantCommons = true; . Change the true to false. (Can also
be $wgForeignFileRepos ). This will stop it from trying to use commons for
image files, and hence make your wiki work. There will be some reduced features
if HTTP access isn't available to your wiki, but 95% of the features do not
require the wiki to do HTTP requests, so you'll mostly be fine.

--
>Sometimes this
>error message has appeared in relation of non-English characters found in some
>translated string.

Fatal exception of type MWException is a very generic error message. It can
appear for almost anything.

----

Closing bug as invalid, since its not really a MediaWiki bug but a
configuration problem. If my above advice doesn't apply, please don't hesitate
to re-open the bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to