Wiki trouble

Fragment of a discussion from Talk:MediaWiki 1.19
Jump to: navigation, search

Sorry for moving this out of the thread... I did that before I realized you were offering a solution. And, now I can't move it back :(

MarkAHershberger(talk)18:24, 25 May 2012

Hello, ah no problem, hoping it helps everyone, if you would like to post it in the entire thread, then you can do it. In my wiki configuration works it, but thumbnailing .svg did not working.

Abani79 (talk)18:35, 25 May 2012

I don't get it. What does this fix?

Anderssl (talk)23:02, 25 May 2012

It is a possible solution for user, having trouble with enabling fileupload. By the way: my wiki can't create thumbnails of svg's, getting instead an output textmessage with following content:

Fehler beim Erstellen des Vorschaubildes: sh: convert: not found

i'm not sure, where the problem is, any help for solving this is appreciated.

Abani79 (talk)01:00, 26 May 2012

You need to install imagemagick. What sort of system is your host?

MarkAHershberger(talk)01:03, 26 May 2012

Its all on a webserver from my hoster:

Produkt         Version
MediaWiki       1.18.3
PHP             5.3.2-1ubuntu4.14 (apache2handler)
MySQL           5.1.61-0ubuntu0.10.04.1

Is it available as an extension or must do it then the provider?

Abani79 (talk)01:09, 26 May 2012

You will have to ask your web hosting provider to install it. For them, they just need to do

$ sudo apt-get install imagemagick
MarkAHershberger(talk)01:12, 26 May 2012
Edited by another user.
Last edit: 01:37, 26 May 2012

Okay i'll tell it him. Thank you for your support and good night. :)

Abani79 (talk)01:14, 26 May 2012

Hello my provider installed today imagemagick and now does the preview function. But no preview in various sizes by clicking on is 200px, 500px, 1000px, 2000px generated and once you upload a file, are also not found in the above thumbnail images (.png) generated. What should be done to fix this, is there another command to generate said to have thumbnails? Oh and sorry for my worst english, i hope you understand it.

Abani79 (talk)11:27, 26 May 2012

Above, it says you have $wgUseImageMagick set to false. I think it needs to be set to true, but look at Image thumbnailing for more info. Feel free to post back if you need more help.

MarkAHershberger(talk)17:14, 26 May 2012

Evening, i have tried two commands, the first above and "$wgImageMagickConvertCommand", but it doesn't work. I'm not sure whether or not or why ImageMagick creates thumbnails not matching, because in its folders, there are only 2 pictures, they have also not selectable dimensions.

Abani79 (talk)17:52, 26 May 2012

Have you tried uploading a new svg since changing the configuration?

What version information does convert --version respond with on the command line?

Are there any errors?

If you enable debugging, does the debug log show anything?

MarkAHershberger(talk)18:00, 26 May 2012

Hello again, yes i have it tried, but i get the same error. After debug mode is on my wiki activated, he gives me following reason: http://postimage.org/image/met49iff5/ (can't copy the message and created a screenshot)

Abani79 (talk)18:28, 26 May 2012

What happens if you disable the AntiBot extension?

MarkAHershberger(talk)18:31, 26 May 2012

Just tried to click on any of the different selection will be forwarded to the home page of the hoster. The thumbnails, which will be presented seem to be neither more cached generated when clicking. So it makes me at least seems.

Abani79 (talk)18:38, 26 May 2012

Do new png and jpeg thumbnails work now? Otherwise, sounds like something your hoster can help with.

MarkAHershberger(talk)18:54, 26 May 2012
 
 

Have you tried updating the AntiBot extension to the latest version? Do you have an active subdirectory created under your AntiBot extension? Are there any files in it?

MarkAHershberger(talk)18:35, 26 May 2012

No, I'm probably have no way to upgrade extensions, it is the latest version, I had downloaded and installed on 24/05/2012.

In the folder there is: Folder: "available" file included -> "GenericFormEncoding.php" File outside the folder available:

AntiBot.i18n.php AntiBot.php

Abani79 (talk)18:54, 26 May 2012

If you can install extensions, you can upgrade them.

MarkAHershberger(talk)18:59, 26 May 2012
 

On the AntiBot page, it says "copy the plugins you want into the active directory."

Try the following in the AntiBot directory:

$ cp -pr available active

I think that will get rid of the antibot error at least.

MarkAHershberger(talk)18:58, 26 May 2012

I'm not sure if I can do with what the command, but maybe because I've found something you think when you look at it this way? In the column "Permissions" so in German "Berechtigungen", the "temp" folder to another unchangeable given permission. When I had uploaded a new file (also .svg), was stored in this folder "httpdocs/wiki/images/e".

See also: http://s11.postimage.org/t8uetsexd/5k4b245jkh6b2h5j4.jpg

Abani79 (talk)19:20, 26 May 2012

If you can't run commands, perhaps you can just copy or rename the folder from "available" to "active"?

If you can't do that, then just create an folder next to "available" named "active" and copy the files from "available" to "active".

MarkAHershberger(talk)20:03, 26 May 2012

Good evening, i've renamed the above folder from "available" to "active" but it seems like that it has no effect.

Abani79 (talk)17:54, 27 May 2012

Do you get the same error ("Invalid argument supplied for foreach() in .../AntiBot.php on line 57")?

I would try disabling the AntiBot extension ... at least for testing. Once we verify everything else, we can figure out why the AntiBot extension is causing problems.

MarkAHershberger(talk)18:32, 27 May 2012

I have now disabled the extension Antibot and turned debugging mode on, after I updated the Wiki, the message any longer, even if the extension is not active.

Abani79 (talk)19:20, 27 May 2012

Your message isn't clear: is it working now that you've disabled AntiBot?

MarkAHershberger(talk)20:48, 27 May 2012

No, but it will continue to create thumbnails, but I found in the subfolder / images/thumb/0/03/images suddenly like: 120px-XYZ-Logo.svg.png or 159px-XYZ-Logo.svg.png (examples).

Abani79 (talk)21:15, 27 May 2012

So, you are getting thumbnails.

What is displayed in the file history now that AntiBot is disabled?

It sounds like your configuration may be trying to trigger something (thumbnail generation?) for 404s. What is in your .htaccess file?

MarkAHershberger(talk)21:38, 27 May 2012

In the file version of the current link to the file:

http://www.example.com/wiki/images/0/03/Example-Logo.svg

The final image (ie the first, I always put out), now contains the link:0

http://www.example.com/wiki/images/archive/0/03/20120527214439%21Example-Logo.svg

Note: there are only example links

The .htaccess file contains the following:

 
# Protect against bug 28 235
<IfModule rewrite_module>
RewriteEngine on
. RewriteCond% {QUERY_STRING} \ [? ^ \ \ /: * \ X22 <> |%] + (# | \ | $?) [Nocase]
RewriteRule. - [Forbidden]
</ IfModule>
Abani79 (talk)22:00, 27 May 2012

I don't see anything that could cause this in your .htaccess file.

Using https://commons.wikimedia.org/wiki/File:Example.svg as an example, I see https://upload.wikimedia.org/wikipedia/commons/thumb/8/84/Example.svg/600px-Example.svg.png for the top example. Does this match where you see http://www.example.com/wiki/images/0/03/Example-Logo.svg ?

If so, you need to set up svg thumbnailing.

MarkAHershberger(talk)22:10, 27 May 2012