Last modified: 2013-09-26 00:23:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50336, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48336 - Missing MWTimestamp class while importing dump
Missing MWTimestamp class while importing dump
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
REL1_19-branch
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-10 20:01 UTC by Mark A. Hershberger
Modified: 2013-09-26 00:23 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark A. Hershberger 2013-05-10 20:01:52 UTC
After importing 22000 revisions and pages, I got this error:

PHP Fatal error:  Class 'MWTimestamp' not found in .../extensions/ParserFunctions/ParserFunctions_body.php on line 417
PHP Stack trace:
PHP   1. {main}() .../maintenance/importDump.php:0
PHP   2. require_once() .../maintenance/importDump.php:287
PHP   3. BackupReader->execute() .../maintenance/doMaintenance.php:105
PHP   4. BackupReader->importFromStdin() .../maintenance/importDump.php:93
PHP   5. BackupReader->importFromHandle() .../maintenance/importDump.php:249
PHP   6. WikiImporter->doImport() .../maintenance/importDump.php:282
PHP   7. WikiImporter->handlePage() .../includes/Import.php:422
PHP   8. WikiImporter->handleRevision() .../includes/Import.php:556
PHP   9. WikiImporter->processRevision() .../includes/Import.php:604
PHP  10. WikiImporter->revisionCallback() .../includes/Import.php:646
PHP  11. call_user_func_array() .../includes/Import.php:309
PHP  12. BackupReader->handleRevision() .../includes/Import.php:309
PHP  13. call_user_func() .../maintenance/importDump.php:161
PHP  14. WikiImporter->importRevision() .../maintenance/importDump.php:161
PHP  15. DatabaseBase->deadlockLoop() .../includes/Import.php:223
PHP  16. call_user_func_array() .../includes/db/Database.php:2759
PHP  17. WikiRevision->importOldRevision() .../includes/db/Database.php:2759
PHP  18. WikiPage->doEditUpdates() .../includes/Import.php:1305
PHP  19. WikiPage->prepareTextForEdit() .../includes/WikiPage.php:1559
PHP  20. Parser->parse() .../includes/WikiPage.php:1522
PHP  21. Parser->internalParse() .../includes/parser/Parser.php:345
PHP  22. Parser->replaceVariables() .../includes/parser/Parser.php:1094
PHP  23. PPFrame_DOM->expand() .../includes/parser/Parser.php:2981
PHP  24. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  25. PPFrame_DOM->expand() .../includes/parser/Parser.php:3352
PHP  26. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  27. PPFrame_DOM->expand() .../includes/parser/Parser.php:3352
PHP  28. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  29. call_user_func_array() .../includes/parser/Parser.php:3192
PHP  30. ExtParserFunctions::ifObj() .../includes/parser/Parser.php:3192
PHP  31. PPFrame_DOM->expand() .../extensions/ParserFunctions/ParserFunctions_body.php:137
PHP  32. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  33. call_user_func_array() .../includes/parser/Parser.php:3192
PHP  34. ExtParserFunctions::ifObj() .../includes/parser/Parser.php:3192
PHP  35. PPFrame_DOM->expand() .../extensions/ParserFunctions/ParserFunctions_body.php:137
PHP  36. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  37. PPFrame_DOM->expand() .../includes/parser/Parser.php:3352
PHP  38. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  39. PPFrame_DOM->expand() .../includes/parser/Parser.php:3071
PHP  40. Parser->argSubstitution() .../includes/parser/Preprocessor_DOM.php:1062
PHP  41. PPTemplateFrame_DOM->getArgument() .../includes/parser/Parser.php:3666
PHP  42. PPTemplateFrame_DOM->getNamedArgument() .../includes/parser/Preprocessor_DOM.php:1469
PHP  43. PPFrame_DOM->expand() .../includes/parser/Preprocessor_DOM.php:1461
PHP  44. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  45. call_user_func_array() .../includes/parser/Parser.php:3192
PHP  46. ExtParserFunctions::ifObj() .../includes/parser/Parser.php:3192
PHP  47. PPFrame_DOM->expand() .../extensions/ParserFunctions/ParserFunctions_body.php:139
PHP  48. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  49. PPFrame_DOM->expand() .../includes/parser/Parser.php:3071
PHP  50. Parser->argSubstitution() .../includes/parser/Preprocessor_DOM.php:1062
PHP  51. PPTemplateFrame_DOM->getArgument() .../includes/parser/Parser.php:3666
PHP  52. PPTemplateFrame_DOM->getNamedArgument() .../includes/parser/Preprocessor_DOM.php:1469
PHP  53. PPFrame_DOM->expand() .../includes/parser/Preprocessor_DOM.php:1461
PHP  54. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  55. call_user_func_array() .../includes/parser/Parser.php:3192
PHP  56. ExtParserFunctions::ifObj() .../includes/parser/Parser.php:3192
PHP  57. PPFrame_DOM->expand() .../extensions/ParserFunctions/ParserFunctions_body.php:139
PHP  58. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  59. call_user_func_array() .../includes/parser/Parser.php:3192
PHP  60. ExtParserFunctions::ifObj() .../includes/parser/Parser.php:3192
PHP  61. PPFrame_DOM->expand() .../extensions/ParserFunctions/ParserFunctions_body.php:139
PHP  62. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  63. call_user_func_array() .../includes/parser/Parser.php:3192
PHP  64. ExtParserFunctions::ifObj() .../includes/parser/Parser.php:3192
PHP  65. PPFrame_DOM->expand() .../extensions/ParserFunctions/ParserFunctions_body.php:137
PHP  66. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  67. PPFrame_DOM->expand() .../includes/parser/Parser.php:3071
PHP  68. Parser->braceSubstitution() .../includes/parser/Preprocessor_DOM.php:1043
PHP  69. call_user_func_array() .../includes/parser/Parser.php:3192
PHP  70. ExtParserFunctions::time() .../includes/parser/Parser.php:3192
Comment 1 Sam Reed (reedy) 2013-05-10 20:03:55 UTC
MWTimestamp came in 1.20... You've listed 1.19.3. So you need to find an older version of ParserFunctions
Comment 2 Gerrit Notification Bot 2013-05-10 20:17:11 UTC
Related URL: https://gerrit.wikimedia.org/r/63217 (Gerrit Change I452c36850360ecaa325e123b19ef56ca5249bf29)
Comment 3 Mark A. Hershberger 2013-05-10 20:30:03 UTC
(In reply to comment #1)
> MWTimestamp came in 1.20... You've listed 1.19.3. So you need to find an
> older version of ParserFunctions

You're right, of course.  And my problem was exacerbated by the fact that I had REL1_19 for mw-core checked out in my dev MW environment so I couldn't find any references to MWTimestamp with git grep.

Still, If this is the only reason an updated ParserFunctions doesn't work with 1.19, I think it is worth it to look at fixing this.
Comment 4 Brion Vibber 2013-09-26 00:23:53 UTC
So my inclination is to 'wontfix' this unless someone wants to make sure that ParserFunctions development master remains otherwise compatible with 1.19.

Any strong opinions either way, folks?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links