1

I am trying to upload PDF about 5 Mb to Mediawiki and I am facing this error.

A database query error has occurred. This may indicate a bug in the software.

php.ini has

upload_max_filesize = 32M

post_max_size = 32M

File extensions are configured like

$wgFileExtensions = array_merge( $wgFileExtensions,
    array( 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'xlsx', 'jpg', 
        'tiff', 'odt', 'odg', 'ods', 'odp'
    )
);

Mediawiki is configured to upload files up to 32 Mb.

Also I am faciong this error

Error creating thumbnail: /bin/bash: convert: command not found GPL Ghostscript 9.07: Unrecoverable error, exit code 1

Any clue?

P.S. I discovered that is possible to upload small PDFs but not large files.

This chat doesnt help https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=716957

8
  • 1
    Have you installed any of the MediaWiki modules/plugins/extensions? Do you have a vanilla MediaWiki install that you can test to see if files upload correctly...?
    – Kinnectus
    Dec 21, 2015 at 16:41
  • @BigChris Yes, I could upload images and ZIPs without any problem. A have a few typical extensión installed. Mediawiki is configured based on https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads Dec 21, 2015 at 16:46
  • Can you upload other PDF files of greater than 5MB? Can you upload other allowwed filetypes of grater than 5MB?
    – Kinnectus
    Dec 21, 2015 at 17:12
  • @BigChris You are right. It is imposible upload file more than 3Mb. Has it something to do with MS SQL/MaridDB? Dec 21, 2015 at 17:22
  • 1
    The thumbnail error you're receiving may be fixed: mediawiki.org/wiki/Topic:Si3ofpvsr8utt336
    – Kinnectus
    Dec 21, 2015 at 17:26

1 Answer 1

2

It looks like you need to install GPL Ghostcript and/or ImageMagick (for convert).

I need more information to help you further.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .