Hi
Thank you for using this extension and also reporting this problem. There are in fact two problems, the second of which (the wiki code for a 'file' link being inserted into the editor rather than the image displaying) is a coding error and I will upload a fix for this the the master branch on gerrit over the next day or so. To solve the first problem with the upload, however, I will need some more information.
If the error was to do with permissions, files sizes, valid file types, duplicates etc, then the extension would report these explicitly. This error message is caused by the mediawiki API reporting a 'success' code for the file upload but returning an undefined result without either an error or warning response. The result should be an external URL to where your wiki has stored the file and also the link to the uploaded file to use from within a wiki page . As a result of the lack of information from the mediawiki API, the extension is unable to report further details of the error - which is frustrating I know!
However, perhaps with a bit more information, we should be able fix this. The following would help me to try and isolate the problem, which I haven't be able to reproduce, sorry.
- the name of the file you were trying to upload (occasionally if there are non latin characters this can cause problems)
- would you check the 'files' special page to see if the file was uploaded successfully (sometimes the upload happens anyway)
- would you let me know the versions of software and extensions you are using from the 'versions' special page
- would you let me know if there were any warnings and errors when you were using the upload dialog before you got the error message
- if you are able, can you add the following to your 'localSetting.php' file after the '<php' tag as it will get mediawiki to report any errors it encounters during an upload to the web browser.
error_reporting( -1 );
ini_set( 'display_errors', 1 );
Many thanks, Duncan