Topic on Talk:MediaWiki 1.19

Abani79 (talkcontribs)

Hello i've some problems with my wiki configuration too, including displaying .svg thumbs, it didn't work this time, but i have figure out, why the upload function generally don't work at this point, after reading and thinking of your conversation, i trying something and now it works fine for pictures like .jpg or .png.

Make following step: 1) put this line in your ls.php, save it and upload, don't forget to back up your latest working ls.php.

<source lang="php">

    1. To enable image uploads, make sure the 'images' directory
    2. is writable, then set this to true:

$wgEnableUploads = true; $wgDisableUploads = false; # Enable uploads

  1. $wgUseImageMagick = true;
  2. $wgImageMagickConvertCommand = "/usr/bin/convert";

$wgUploadDirectory = "{$IP}/images/"; </<source>

MarkAHershberger (talkcontribs)

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 :(

Abani79 (talkcontribs)

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.

Anderssl (talkcontribs)

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

Abani79 (talkcontribs)

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.

MarkAHershberger (talkcontribs)

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

Abani79 (talkcontribs)

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?

MarkAHershberger (talkcontribs)

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

$ sudo apt-get install imagemagick
Abani79 (talkcontribs)

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

Abani79 (talkcontribs)

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.

MarkAHershberger (talkcontribs)

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.

Abani79 (talkcontribs)

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.

MarkAHershberger (talkcontribs)

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?

Abani79 (talkcontribs)

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)

MarkAHershberger (talkcontribs)

What happens if you disable the AntiBot extension?

Abani79 (talkcontribs)

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.

MarkAHershberger (talkcontribs)

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

MarkAHershberger (talkcontribs)

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?

Abani79 (talkcontribs)

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

MarkAHershberger (talkcontribs)

If you can install extensions, you can upgrade them.

MarkAHershberger (talkcontribs)

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.

Abani79 (talkcontribs)

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

MarkAHershberger (talkcontribs)

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".

Abani79 (talkcontribs)

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

MarkAHershberger (talkcontribs)

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.

Abani79 (talkcontribs)

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.

MarkAHershberger (talkcontribs)

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

Abani79 (talkcontribs)

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).

MarkAHershberger (talkcontribs)

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?

Abani79 (talkcontribs)

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>
MarkAHershberger (talkcontribs)
Sephirothindra (talkcontribs)

Hi Mark, I follow your suggest for set up svg thumbnailing. When i use ImageMagick, it say Error Creating Thumbnail. Then when i use rsvg it say 'Error creating thumbnail: env: python: No such file or directory' So what must i install for that problem solution? Thanks

Reply to "Wiki trouble"