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

Error after installing in mediawiki 1.37 #49

Closed
Conhaque opened this issue Apr 11, 2022 · 9 comments
Closed

Error after installing in mediawiki 1.37 #49

Conhaque opened this issue Apr 11, 2022 · 9 comments
Labels

Comments

@Conhaque
Copy link

Setup

  • MW version:
  • PHP version:
  • DB (MySQL etc.):
  • SBL version:
  • Browser version:

Issue

Im trying to install SimpleBatchUpload, after download and put the extension in the /extensions and put the line in LocalSettings wfLoadExtension( 'SimpleBatchUpload' );, im getting an error in mine mediawiki.

The error

Fatal error: Uncaught Exception: Unable to open file C:\xampp\htdocs\mediawiki/extensions/SimpleBatchUpload/extension.json: filemtime(): stat failed for C:\xampp\htdocs\mediawiki/extensions/SimpleBatchUpload/extension.json in C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php:182 Stack trace: #0 C:\xampp\htdocs\mediawiki\includes\GlobalFunctions.php(52): ExtensionRegistry->queue('C:\xampp\htdocs...') #1 C:\xampp\htdocs\mediawiki\LocalSettings.php(192): wfLoadExtension('SimpleBatchUplo...') #2 C:\xampp\htdocs\mediawiki\includes\Setup.php(145): require_once('C:\xampp\htdocs...') #3 C:\xampp\htdocs\mediawiki\includes\WebStart.php(90): require_once('C:\xampp\htdocs...') #4 C:\xampp\htdocs\mediawiki\index.php(44): require('C:\xampp\htdocs...') #5 {main} thrown in C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php on line 182

I already tried in another mediawiki versions but get the same error

@kghbln
Copy link
Member

kghbln commented Apr 11, 2022

You imperatively need to use Composer to install this extension. See the installation instructions.

@kghbln kghbln closed this as completed Apr 11, 2022
@Conhaque
Copy link
Author

After install with Composer i get the following error:

Fatal error: Uncaught Error: SimpleBatchUpload\SimpleBatchUpload::registerEarlyConfiguration(): Argument #1 ($targetConfiguration) cannot be passed by reference in C:\xampp\htdocs\mediawiki\extensions\SimpleBatchUpload\src\SimpleBatchUpload.php:42 Stack trace: #0 C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php(574): SimpleBatchUpload\SimpleBatchUpload::initCallback(Array) #1 C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php(258): ExtensionRegistry->exportExtractedData(Array) #2 C:\xampp\htdocs\mediawiki\includes\Setup.php(168): ExtensionRegistry->loadFromQueue() #3 C:\xampp\htdocs\mediawiki\includes\WebStart.php(90): require_once('C:\xampp\htdocs...') #4 C:\xampp\htdocs\mediawiki\index.php(44): require('C:\xampp\htdocs...') #5 {main} thrown in C:\xampp\htdocs\mediawiki\extensions\SimpleBatchUpload\src\SimpleBatchUpload.php on line 42

@JeroenDeDauw
Copy link
Member

What PHP version?

@Conhaque
Copy link
Author

What PHP version?

8.14

@JeroenDeDauw
Copy link
Member

8.1.4?

SimpleBatchUpload and some other extensions do not support 8.1 or later. MediaWiki also does not support it officially.

@Conhaque
Copy link
Author

8.1.4?

SimpleBatchUpload and some other extensions do not support 8.1 or later. MediaWiki also does not support it officially.

here the version, So what i need to do ? downgrade mine php version?

Screenshot_1
Screenshot_2

@JeroenDeDauw
Copy link
Member

yes

@Conhaque
Copy link
Author

yes

Any version recomendattion ?

@JeroenDeDauw
Copy link
Member

7.4

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

3 participants