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

MW 1.23 / Fatal error: Cannot access protected property ImageGallery::$mParser in Gallery.php on line 328 #12

Closed
mwjames opened this issue Feb 22, 2014 · 7 comments
Labels

Comments

@mwjames
Copy link
Contributor

mwjames commented Feb 22, 2014

Fatal error: Cannot access protected property ImageGallery::$mParser in ...\extensions\SemanticResultFormats\formats\gallery\Gallery.php on line 328

Call Stack:
    0.0028     168800   1. {main}() ...\maintenance\runJobs.php:0
    0.0124     382416   2. require_once('...\maintenance\doMaintenance.php') C:\xampp\htdocs\mw\maintenance\runJobs.php:271
    0.4075    6684840   3. RunJobs->execute() ...\maintenance\doMaintenance.php:107
  427.3063   26540192   4. SMW\UpdateJob->run() ...\maintenance\runJobs.php:106
  427.3064   26539480   5. SMW\UpdateJob->runUpdate() ...\extensions\SemanticMediaWiki\includes\jobs\UpdateJob.php:52
  427.3095   26540192   6. SMW\UpdateJob->runContentParser() ...\extensions\SemanticMediaWiki\includes\jobs\UpdateJob.php:79
  427.3104   26549176   7. SMW\ContentParser->parse() ...\extensions\SemanticMediaWiki\includes\jobs\UpdateJob.php:102
  427.3105   26549208   8. SMW\ContentParser->fetchFromContent() ...\extensions\SemanticMediaWiki\includes\ContentParser.php:112
  427.3204   26554096   9. WikitextContent->getParserOutput() ...\extensions\SemanticMediaWiki\includes\ContentParser.php:155
  427.3219   26563416  10. Parser->parse() ...\includes\content\WikitextContent.php:319
  427.3230   26558952  11. Parser->internalParse() ...\includes\parser\Parser.php:395
  427.3231   26559608  12. Parser->replaceVariables() ...\includes\parser\Parser.php:1212
  427.3330   26560368  13. PPFrame_DOM->expand() ...\includes\parser\Parser.php:3147
  427.3349   26564784  14. Parser->braceSubstitution() ...\includes\parser\Preprocessor_DOM.php:1113
  427.3361   26566816  15. Parser->callParserFunction() ...\includes\parser\Parser.php:3330
  427.3418   26567864  16. call_user_func_array() ...\includes\parser\Parser.php:3613
  427.3419   26568440  17. SMW\Setup->SMW\{closure}() ...\includes\parser\Parser.php:3613
  427.3441   26571000  18. SMW\AskParserFunction->parse() ...\extensions\SemanticMediaWiki\includes\Setup.php:510
  427.3442   26571456  19. SMW\AskParserFunction->runQueryProcessor() ...\extensions\SemanticMediaWiki\includes\parserhooks\AskParserFunction.php:84
  427.4295   26447808  20. SMWQueryProcessor::getResultFromQuery() ...\extensions\SemanticMedaWiki\includes\parserhooks\AskParserFunction.php:130
  427.4393   26447880  21. SMW\ResultPrinter->getResult() ...\extensions\SemanticMediaWiki\includes\query\SMW_QueryProcessor.php:505
  427.4403   26449464  22. SRF\Gallery->buildResult() ...\extensions\SemanticMediaWiki\includes\queryprinters\ResultPrinter.php:209
  427.4403   26449464  23. SRF\Gallery->getResultText() ...\extensions\SemanticResultFormats\formats\gallery\Gallery.php:67
  427.4413   26458208  24. SRF\Gallery->addImagePages() ...\extensions\SemanticResultFormats\formats\gallery\Gallery.php:160
  427.4509   26464448  25. SRF\Gallery->addImageToGallery() ...\extensions\SemanticResultFormats\formats\gallery\Gallery.php:298
@mwjames mwjames added the bug label Feb 22, 2014
@mwjames
Copy link
Contributor Author

mwjames commented Apr 27, 2014

Someone changed the visibility in MW/1.23 ([0]) which now breaks the SRF/Gallery format.

[0] wikimedia/mediawiki@fd07e5e#diff-a77c19c1bdef2fc13814750eb4ae2f84

@JeroenDeDauw
Copy link
Member

@siebrand Any suggestion on how to fix this?

@siebrand
Copy link
Member

Make public and backport?

@JeroenDeDauw
Copy link
Member

@hexmode From our side this is a bug that will be problematic if it gets into the 1.23 release

@mwjames
Copy link
Contributor Author

mwjames commented May 2, 2014

Make public and backport?

@hexmode To keep compatibility, ImageGallery::$mParser should be made public again otherwise an in-release change (such as in MW 1.23 without deprecation notice) causes breakage of existing and established functionality.

@hexmode
Copy link
Member

hexmode commented May 3, 2014

See https://gerrit.wikimedia.org/r/#/c/131265/

It would be really good if you guys could get +2 over there.

@JeroenDeDauw
Copy link
Member

See https://gerrit.wikimedia.org/r/#/c/131265/

Thanks for taking care of that!

It would be really good if you guys could get +2 over there.

Right. That is not happening unless some serious political changes occurred.

wmfgerrit pushed a commit to wikimedia/mediawiki that referenced this issue May 6, 2014
They were public in the previous release of MediaWiki (1.22), although
the visibility was not set explicitly.

See I779d5a683982dc25bc7cdd30addd5870f2a7efd0 and
SemanticMediaWiki/SemanticResultFormats#12

Change-Id: I309cf46891223c5f1520e97b04d4ed315a300e7a
wmfgerrit pushed a commit to wikimedia/mediawiki that referenced this issue May 10, 2014
They were public in the previous release of MediaWiki (1.22), although
the visibility was not set explicitly.

See I779d5a683982dc25bc7cdd30addd5870f2a7efd0 and
SemanticMediaWiki/SemanticResultFormats#12

Change-Id: I309cf46891223c5f1520e97b04d4ed315a300e7a
(cherry picked from commit d7f494c)
@mwjames mwjames closed this as completed Jun 6, 2014
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

4 participants