Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install simple batch upload by the tar file #5

Closed
LesleyLai opened this issue Oct 31, 2016 · 5 comments
Closed

Cannot install simple batch upload by the tar file #5

LesleyLai opened this issue Oct 31, 2016 · 5 comments
Labels

Comments

@LesleyLai
Copy link

I installed the extension by the "alternative" method, but it failed. Here is the error message in php.log:

PHP Fatal error: Uncaught exception 'Exception' with message '{{My Mediawiki Root Path}}/extensions/SimpleBatchUpload/extension.json is not a valid JSON file.' in {{My Mediawiki Root Path}}/includes/registration/ExtensionRegistry.php:176
Stack trace:
#0 {{My Mediawiki Root Path}}/includes/registration/ExtensionRegistry.php(127): ExtensionRegistry->readFromQueue(Array)
#1 {{My Mediawiki Root Path}}/includes/Setup.php(39): ExtensionRegistry->loadFromQueue()
#2 {{My Mediawiki Root Path}}/includes/WebStart.php(137): require_once('/var/lib/opensh...')
#3 {{My Mediawiki Root Path}}/index.php(38): require('/var/lib/opensh...')
#4 {main}
thrown in {{My Mediawiki Root Path}}/includes/registration/ExtensionRegistry.php on line 176

I omitted my mediawiki root path. It is weird since "SimpleBatchUpload/extension.json" is a valid JSON.

@s7eph4n
Copy link
Contributor

s7eph4n commented Oct 31, 2016

Could you post your extension.json?

Also which exact version of SimpleBatchUpload and MediaWiki are you using?

@s7eph4n s7eph4n added the bug label Oct 31, 2016
@LesleyLai
Copy link
Author

The extension.json is below, I have not modified it.

{
    "name": "SimpleBatchUpload",
    "version": "1.1.0",
    "author": [
        "[http://www.mediawiki.org/wiki/User:F.trott Stephan Gambke]"
    ],
    "url": "https://www.mediawiki.org/wiki/Extension:SimpleBatchUpload",
    "descriptionmsg": "simplebatchupload-desc",
    "license-name": "GPL-2.0+",
    "type": "specialpage",
    "requires": {
        "MediaWiki": "~1.26"
    },
    "MessagesDirs": {
        "SimpleBatchUpload": [
            "i18n"
        ]
    },
    "callback": "SimpleBatchUpload\\SimpleBatchUpload::initCallback",
    "manifest_version": 1,
    "load_composer_autoloader" : true
}

My Mediawiki version is 1.26.2. And I am using SimpleBatchUpload Release 1.1.0, the actually file is "SimpleBatchUpload.1.1.0.with.dependencies.tar.gz".

@s7eph4n
Copy link
Contributor

s7eph4n commented Nov 2, 2016

Just tried it and it works for me. Could this be a rights problem?

@s7eph4n
Copy link
Contributor

s7eph4n commented Nov 2, 2016

Turns out that the tar ball was borked. Autoloading of classes did not work.
Could you try https://github.com/s7eph4n/SimpleBatchUpload/releases/tag/1.2.0-RC1 and see if it works for you?

@LesleyLai
Copy link
Author

It worked. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants