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

PHP Deprecated: Accessing $wgHooks directly is deprecated #781

Open
flece opened this issue Jul 21, 2023 · 0 comments
Open

PHP Deprecated: Accessing $wgHooks directly is deprecated #781

flece opened this issue Jul 21, 2023 · 0 comments

Comments

@flece
Copy link

flece commented Jul 21, 2023

Setup

  • MW version: 1.40.0
  • DB (MySQL etc.): mariadb Ver 15.1
  • PHP version: 8.1
  • SMW version: 4.1.1
  • SRF version: 4.0.2
  • Browsers and versions (if applicable): not Browser related

Issue

see Stacktrace: This cause massive log spam

Maybe this is helping: https://phabricator.wikimedia.org/T333926

Steps to reproduce
happens on every request

Stacktrace
"PHP message: PHP Deprecated: Accessing $wgHooks directly is deprecated, use HookContainer::getHandlers() or HookContainer::register() instead. [Called from SemanticResultFormats::onExtensionFunction in /srv/www/mediawiki_test/w/extensions/SemanticResultFormats/SemanticResultFormats.php at line 97] in /srv/www/mediawiki_test/w/includes/debug/MWDebug.php on line 382"

Seb35 added a commit to WikiValley/SemanticResultFormats that referenced this issue Oct 23, 2023
HookContainer service is available since 1.35, just like extension.json
compatibility statement, so no need of a compatibility layer.

Issue: SemanticMediaWiki#781
JeroenDeDauw pushed a commit that referenced this issue Oct 24, 2023
HookContainer service is available since 1.35, just like extension.json
compatibility statement, so no need of a compatibility layer.

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

No branches or pull requests

1 participant