André Meunier | 1 Sep 2011 15:15
Picon

uploading broken

Hello,

I've tried to upload a file today, and got an error message saying the 
extension of the file doesn't correspond to the mime type.
It was still working 3 weeks ago, and I didn't make any change to the wiki.
Version is 1.16.0. I checked the Localsettings file and it's still ok.

Any idea where this could come from?

Thanks
--

-- 

*André Meunier*

Documentaliste et responsable IT
Bibliothèque des Sciences de la Vie

Téléphone : 04 366 2173

http://www.libnet.ulg.ac.be/mede/

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Bastian Timmermann | 1 Sep 2011 15:18
Picon

Re: uploading broken

Hi;

check out, what a phpinfo() says about the mime types

best
Bastian

InnoGames GmbH
Geschäftsführer: Eike Klindworth, Hendrik Klindworth, Michael Zillmer
Amtsgericht Hamburg, HRB 108973
USt-ID: DE264068907

Harburger Schloßstr. 28 (Channel 4) - 21079 Hamburg
Tel +49 40 788 9335-68
Fax +49 40 788 9335-22

http://www.innogames.de - bastian.timmermann <at> innogames.de
Die Stämme <http://www.die-staemme.de> - The West
<http://www.the-west.de/> - Grepolis <http://www.grepolis.de> - WestWars
<http://apps.facebook.com/westwarsgame> - SevenLands
<http://www.sevenlands.de/>

On 01.09.2011 15:15, André Meunier wrote:
> Hello,
>
> I've tried to upload a file today, and got an error message saying the
> extension of the file doesn't correspond to the mime type.
> It was still working 3 weeks ago, and I didn't make any change to the wiki.
> Version is 1.16.0. I checked the Localsettings file and it's still ok.
>
(Continue reading)

Huib Laurens | 1 Sep 2011 15:18
Picon
Gravatar

Re: uploading broken

Hello,

did you try to upload a different file?

Best,

Huib
Bastian Timmermann | 1 Sep 2011 15:19
Picon

Re: uploading broken

Ah another idea.

Sorry for double posting.

This error message means, that you have a jpg file with a .png ending 
for example. With linux the file command will give you the right type 
and you can change the suffix. No idea how to do it in windows

Bastian

InnoGames GmbH
Geschäftsführer: Eike Klindworth, Hendrik Klindworth, Michael Zillmer
Amtsgericht Hamburg, HRB 108973
USt-ID: DE264068907

Harburger Schloßstr. 28 (Channel 4) - 21079 Hamburg
Tel +49 40 788 9335-68
Fax +49 40 788 9335-22

http://www.innogames.de - bastian.timmermann <at> innogames.de
Die Stämme <http://www.die-staemme.de> - The West
<http://www.the-west.de/> - Grepolis <http://www.grepolis.de> - WestWars
<http://apps.facebook.com/westwarsgame> - SevenLands
<http://www.sevenlands.de/>

On 01.09.2011 15:15, André Meunier wrote:
> Hello,
>
> I've tried to upload a file today, and got an error message saying the
> extension of the file doesn't correspond to the mime type.
(Continue reading)

André Meunier | 1 Sep 2011 15:29
Picon

Re: uploading broken

I've just tried with other files (jpg and doc) and got the same error 
message for the jpg file and for the doc file it was about 
application/zip files that can't be uploaded.
About the phpinfo file, I don't see anything about the mime types in it. 
Php is version 5.1.6

Le 1/09/2011 15:19, Bastian Timmermann a écrit :
> Ah another idea.
>
> Sorry for double posting.
>
> This error message means, that you have a jpg file with a .png ending
> for example. With linux the file command will give you the right type
> and you can change the suffix. No idea how to do it in windows
>
> Bastian
>
>
>
> InnoGames GmbH
> Geschäftsführer: Eike Klindworth, Hendrik Klindworth, Michael Zillmer
> Amtsgericht Hamburg, HRB 108973
> USt-ID: DE264068907
>
> Harburger Schloßstr. 28 (Channel 4) - 21079 Hamburg
> Tel +49 40 788 9335-68
> Fax +49 40 788 9335-22
>
> http://www.innogames.de - bastian.timmermann <at> innogames.de
> Die Stämme<http://www.die-staemme.de>  - The West
(Continue reading)

McHale, Nina | 1 Sep 2011 20:54
Favicon

Office Documents fix!

Hi, all,

I wrote earlier this week about the issue we were having with uploading and downloading Office docs to the
wiki (it was zipping .docx, .xlsx, and .pptx files on upload and therefore not able to open them on Windows
machines on download). I'm happy to report that simply upgrading to 1.17 appears to have resolved the issue!

It's mentioned in the release notes, http://www.mediawiki.org/wiki/Release_notes/1.17, under "Bug
Fixes for 1.17," https://bugzilla.wikimedia.org/show_bug.cgi?id=23688.

Thanks to everyone who responded to my repeated pleas for help on this issue!

Nina

Nina McHale, MA/MSLS
Assistant Professor, Web Librarian
University of Colorado Denver, Auraria Library
Facebook & Twitter: ninermac
http://milehighbrarian.net<http://milehighbrarian.net/>
Mike Cody | 2 Sep 2011 01:24
Favicon

Tag Extensions Multiple??

Hello,

I am have a problem embedding more than one tag extensions in any given post on my wiki. wiki version 1.16
Both tag extensions work fine by them selves but when ever I add the second one it causes errors or I just get a
white page.
I am using <servers/> and <contact/> to embed the extensions. I am guessing that when I add the second
extension I am causing some type of problem with
a global variable or some kind of name space issue. I have included all the code for the two extensions. any
help would make my day!

Thanks!

###ContactTag.php###

<?php

$wgHooks['ParserFirstCallInit'][] = 'ContactTag::setup';

$wgAutoloadClasses['ConatctTag'] = dirname( __FILE__ ) . "/ContactTag_body.php";

###ContactTag_body.php###

<?php

// Create hello tag for the Wiki
class HelloTag {
  const NAME = 'contact';

  static function setup() {
    // The entry point. Associates the tag with a function.
(Continue reading)

Daniel Friesen | 2 Sep 2011 02:07

Re: Tag Extensions Multiple??

Perhaps you're double-requiring a class and making it fail as a result.

Try autoloading DB_MySQL.
Or perhaps rewrite that code to use MW's own built in database layer
instead of duplicating that effort.

Some of that code is gawd awful too...
The way it makes a separate mysql conn for each is horrid. Heck seeing
an extra unused mysql conn in one of those is even worse.
The use of $_GET['title'] is horrid.
The way it uses two variables for the same thing `$endURL =
$_GET['title'];` then `$phrase = $endURL;`, and the pointless $healthy,
$yummy variables.
Btw, as it looks like you're trying to extract the title where you
should be using $parser->getTitle(), because you're using $_GET and not
even touching the WebRequest much less where you should be getting the
proper title if you happen to enable pretty urls, your code will break.
It may also mess up on titles with namespaces in them. Or on redirects.
Oh right, the way you're using $newphrase also has the potential to open
up a SQL injection vector.

I might as well point out also that by putting the setup code inside the
class you end up voiding the purpose of autoloading since the code is
loaded even when the tag isn't used. Also to top it off you shouldn't be
using $wgParser from that setup code, you should be using setup( $parser
) and using $parser->setHook on the parser that gets passed in (that is
the ENTIRE point of using the ParserFirstCallInit hook).
For $wgExtensionFunctions fallback code which you probably don't even
need now, you'd have an extra function and call your setup function with
$wgParser in there, not in the setup code.
(Continue reading)

Chung Kin Mong | 3 Sep 2011 15:42
Picon

Re: Problems Installing mediawiki

I have followed the instruction from the website "igeek" and installed
the "mediawiki" (the installation software say "successful" or
something like that).

When I go to "http://localhost/wikipedia/" (I install the program
under var/www/wikipedia) the browser display a "blank screen" and I
suppose that is normal because I have not put any data there yet (I
may be wrong here and please confirm my understanding).

I then proceed to down load the "data base dump" by pointing my
browser to  http://download.wikimedia.org/enwiki/20091009/enwiki-20091009-pages-articles.xml.bz2
but it report with ERROR 403: Forbidden!

I recalled that in a previous attempt (i.e. about 20 minutes before I
started the installation) I have been able to browse the page but at
that time I don't know which file to download so I just quit.

I would be much appreciated if someone tell me how to get hold of the
"data base dump file", thanks in advance!

Best regards,

Victor Mong
Sumana Harihareswara | 3 Sep 2011 23:12
Picon
Gravatar

Invitation to MediaWiki hackathon, New Orleans, USA, 14-16 October

We're holding a Wikimedia and MediaWiki hackathon in six weeks: 14-16
October in New Orleans, Louisiana, USA.

http://www.mediawiki.org/wiki/NOLA_Hackathon

Please come!  It'll be a blast. :-)

We want to get together a wide variety of contributors -- including
template, script, tool, extension, and gadget writers -- to participate,
give feedback, test, and hack with us.  If you hack MediaWiki, or write
software that uses the MediaWiki API, or runs on the Toolserver, other
developers want to chat and collaborate with you.

At the event, MediaWiki developers and Wikimedia operations engineers
will be working on Wikimedia's gadgets/extensions/tools support,
general training and hacking, etc. And we'll improve and discuss the
Wikimedia Labs projects infrastructure

http://www.mediawiki.org/wiki/WMF_Projects/Wikimedia_Labs

and other stuff that makes it easier for anyone to supercharge MediaWiki
with awesomeness.

The event is open to anyone who wants to come and contribute, and is an
opportunity to spend time with senior MediaWiki developers & ops
engineers, write beautiful code, and learn about the latest
developments. We'll write code together, discuss the software, and hold
little workshops.

If you can make it to New Orleans, Louisiana, USA, 14-16 October 2011,
(Continue reading)


Gmane