SemanticMediaWiki / SemanticCite

Allows to manage citation resources using semantic annotations
https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Cite
Other
24 stars 13 forks source link

Compatible with SMW 4? Problems on installation #113

Closed progtw closed 9 months ago

progtw commented 1 year ago

Setup and configuration

Issue

When following the installation procedure, composer complains that SCI is not compatible with SMW 4.1 (only 3.x). Is it actually compatible (Readme tells "Semantic MediaWiki 3.0 or later") and how then do I change the requirement to allow install without downgrading SMW?

composer update --no-dev
Could not scan for classes inside "extensions/SemanticMediaWiki//tests/phpunit/includes/" which does not appear to be a file nor a folder
> ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires mediawiki/semantic-cite ~2.1 -> satisfiable by mediawiki/semantic-cite[2.1.0, 2.1.1].
    - mediawiki/semantic-cite[2.1.0, ..., 2.1.1] require mediawiki/semantic-media-wiki ~3.0 -> found mediawiki/semantic-media-wiki[3.0.0, ..., 3.2.3] but it conflicts with your root composer.json require (^4.1).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
z929669 commented 1 year ago

You can use "mediawiki/semantic-cite": "dev-master" instead of "mediawiki/semantic-cite": "~2.1" in composer.json, but I'm getting errors with this extension in my nginx access log: PHP Fatal error: Uncaught Error: Undefined constant "CACHE_ANYTHING" in /srv/sites/_wikidev/extensions/SemanticCite/DefaultSettings.php:45 Using PHP 8.x

krabina commented 1 year ago

See #110

kghbln commented 9 months ago

116

tsadrafoundation commented 7 months ago

I'm still seeing the issue installing dev-master with composer. I manually change CACHE_EVERYTHING to -1 in /var/www/html/extensions/SemanticCite/DefaultSettings.php to make it work

SMW 4.1, MW 1.39, PHP 8.1