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

Fix undefined constant warning #122

Closed kizule closed 6 months ago

kizule commented 9 months ago

Fixes #107 completely.

kizule commented 9 months ago

DNM, I'm testing this patch. At this moment, it's showing notice that caching-related constants are already defined in MediaWiki's includes/Defines.php file.

kizule commented 9 months ago

I don't guarantee that this is working fine at the moment, I'll test this further and cleanup the SemanticCite.php file.

z929669 commented 9 months ago

Any confirmation yet if the "PHP Fatal error: Uncaught Error: Undefined constant "CACHE_ANYTHING"" issue is resolved and 3.0 release status? Thanks in advance for all you guys are doing ;)

tsadrafoundation commented 7 months ago

When (SemanticCite ~3.0) installed through composer it will throw a dependency error, and packages will not be installed. For now I'm using the dev-master and manually change CACHE_EVERYTHING to -1 in /var/www/html/extensions/SemanticCite/DefaultSettings.php

SMW 4.1, MW 1.39, PHP 8.1

kizule commented 6 months ago

I'm going to create a new PR.