Difference between revisions of "Talk:WikiDB/Files/Hooks.php"
From TestWiki
< Talk:WikiDB | Files
(→Errors running WikiDB) |
(→function wfWikiDB_ArticleSaveComplete) |
||
Line 22: | Line 22: | ||
:: Hi Gonesoft. Are a file/line number for this error message reported? The fix you suggest would work fine for WikiDB, but the description of the bug implies a bug in either the core MW software, or the documentation at MediaWiki.org, so it would be good to have a bit more info in order to ensure it gets sorted out for other users. --[[User:HappyDog|HappyDog]] 21:12, 16 November 2009 (GMT) | :: Hi Gonesoft. Are a file/line number for this error message reported? The fix you suggest would work fine for WikiDB, but the description of the bug implies a bug in either the core MW software, or the documentation at MediaWiki.org, so it would be good to have a bit more info in order to ensure it gets sorted out for other users. --[[User:HappyDog|HappyDog]] 21:12, 16 November 2009 (GMT) | ||
+ | |||
+ | Here goes: | ||
+ | <pre><nowiki> | ||
+ | Warning: Parameter 3 to wfWikiDB_ArticleSaveComplete() expected to be a reference, value given | ||
+ | in C:\xampp\htdocs\wiki\includes\Hooks.php on line 117 | ||
+ | |||
+ | Detected bug in an extension! Hook wfWikiDB_ArticleSaveComplete failed to return a value; | ||
+ | should return true to continue hook processing or false to abort. | ||
+ | |||
+ | Backtrace: | ||
+ | |||
+ | #0 C:\xampp\htdocs\wiki\includes\Article.php(1779): wfRunHooks('ArticleSaveComp...', Array) | ||
+ | #1 C:\xampp\htdocs\wiki\includes\Article.php(1472): Article->doEdit('<data table="Co...', '', 102) | ||
+ | #2 C:\xampp\htdocs\wiki\includes\EditPage.php(1027): | ||
+ | Article->updateArticle('<data table="Co...', '', true, false, false, '') | ||
+ | #3 C:\xampp\htdocs\wiki\includes\EditPage.php(2483): EditPage->internalAttemptSave(false, false) | ||
+ | #4 C:\xampp\htdocs\wiki\includes\EditPage.php(449): EditPage->attemptSave() | ||
+ | #5 C:\xampp\htdocs\wiki\includes\EditPage.php(340): EditPage->edit() | ||
+ | #6 C:\xampp\htdocs\wiki\includes\Wiki.php(510): EditPage->submit() | ||
+ | #7 C:\xampp\htdocs\wiki\includes\Wiki.php(63): MediaWiki->performAction(Object(OutputPage), | ||
+ | Object(Article), Object(Title), Object(User), Object(WebRequest)) | ||
+ | #8 C:\xampp\htdocs\wiki\index.php(116): MediaWiki->initialize(Object(Title), Object(Article), | ||
+ | Object(OutputPage), Object(User), Object(WebRequest)) | ||
+ | #9 {main} | ||
+ | </nowiki></pre> | ||
+ | hth ... looks to me like there's a constant value passed somewhere in the caller chain. Maybe updateArticle at #2? | ||
+ | <br>[[User:Gonesoft|Gonesoft]] 13:10, 17 November 2009 (GMT) |
Revision as of 13:10, 17 November 2009
Errors running WikiDB
function wfWikiDB_ArticleSaveComplete
MediaWiki | Server OS | PHP | MySQL | WikiDB |
---|---|---|---|---|
1.15.1 | W2k3 Server en | 5.3.0 (apache2handler) | 5.1.37 | $Rev: 177 $ |
- Symptoms
- saving a page with a <data> tag shows an error
- "Warning: Parameter 3 to wfWikiDB_ArticleSaveComplete() expected to be a reference [...]"
- Solution
- I removed the reference indicator & from all but the first two parameters of the function definition
Gonesoft 07:50, 13 November 2009 (GMT)
- Hi Gonesoft. Are a file/line number for this error message reported? The fix you suggest would work fine for WikiDB, but the description of the bug implies a bug in either the core MW software, or the documentation at MediaWiki.org, so it would be good to have a bit more info in order to ensure it gets sorted out for other users. --HappyDog 21:12, 16 November 2009 (GMT)
Here goes:
Warning: Parameter 3 to wfWikiDB_ArticleSaveComplete() expected to be a reference, value given in C:\xampp\htdocs\wiki\includes\Hooks.php on line 117 Detected bug in an extension! Hook wfWikiDB_ArticleSaveComplete failed to return a value; should return true to continue hook processing or false to abort. Backtrace: #0 C:\xampp\htdocs\wiki\includes\Article.php(1779): wfRunHooks('ArticleSaveComp...', Array) #1 C:\xampp\htdocs\wiki\includes\Article.php(1472): Article->doEdit('<data table="Co...', '', 102) #2 C:\xampp\htdocs\wiki\includes\EditPage.php(1027): Article->updateArticle('<data table="Co...', '', true, false, false, '') #3 C:\xampp\htdocs\wiki\includes\EditPage.php(2483): EditPage->internalAttemptSave(false, false) #4 C:\xampp\htdocs\wiki\includes\EditPage.php(449): EditPage->attemptSave() #5 C:\xampp\htdocs\wiki\includes\EditPage.php(340): EditPage->edit() #6 C:\xampp\htdocs\wiki\includes\Wiki.php(510): EditPage->submit() #7 C:\xampp\htdocs\wiki\includes\Wiki.php(63): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest)) #8 C:\xampp\htdocs\wiki\index.php(116): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest)) #9 {main}
hth ... looks to me like there's a constant value passed somewhere in the caller chain. Maybe updateArticle at #2?
Gonesoft 13:10, 17 November 2009 (GMT)