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

Fatal exception of type "Error" when login, after clean install SMW 4.1.3 on MediaWiki 1.39.7 #5630

Open
Moortingale opened this issue Apr 29, 2024 · 2 comments
Labels
bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error

Comments

@Moortingale
Copy link

Setup

  • SMW version: 4.1.3
  • MW version: 1.39.7
  • PHP version: 8.1
  • DB system: MySQL 10.6.17-MariaDB

Issue

Detailed description of the issue and a stack trace if applicable:

Fatal exception of type "Error" when clicking login, after clean install SMW 4.1.3 on MediaWiki 1.39.7
Screenshot 2024-04-29 173218


Steps to reproduce the observation (recommendation is to use the [sandbox](https://sandbox.semantic-mediawiki.org)):
- Install MediaWiki 1.39.7
- add require "mediawiki/semantic-media-wiki": "~4.1" to composer.local.json
- modify LocalSettings.php to add wfLoadExtension( 'SemanticMediaWiki' ); and enableSemantics('website.com');
- run composer install --no-dev
- run maintenance/update.php


@Moortingale Moortingale added the bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error label Apr 29, 2024
@Moortingale
Copy link
Author

Apparently doing "run composer install --no-dev" removes 5 required dependencies:
add these to composer.json before running "run composer install --no-dev":

  • "christian-riesen/base32": "1.6.0",
  • "jakobo/hotp-php": "v2.0.0",
  • "opis/json-schema": "1.1.0",
  • "psr/simple-cache": "1.0.1",
  • "wikimedia/assert": "0.5.1",
    (These were the ones I remembered, please check again if they were these 5 dependencies)

@krabina
Copy link
Contributor

krabina commented May 3, 2024

can you try using composer update --no-dev --prefer-source -o
https://www.semantic-mediawiki.org/wiki/Help:Installation/Quick_guide

Also please enable error reporting, so you get more details on your error: https://www.mediawiki.org/wiki/Manual:How_to_debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error
Projects
None yet
Development

No branches or pull requests

2 participants