Last modified: 2010-09-03 19:18:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13354 - Cannot edit section
Cannot edit section
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-03-14 08:20 UTC by Ron Watson
Modified: 2010-09-03 19:18 UTC (History)
5 users (show)

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


Description Ron Watson 2008-03-14 08:20:03 UTC
When trying to edit a section this error is immediately returned:

Invalid h node passed to PPNode_DOM::splitHeading


#0 /home/pawsitiv/public_html/discdogopedia/includes/Parser.php(4605): PPNode_DOM->splitHeading()
#1 /home/pawsitiv/public_html/discdogopedia/includes/Parser.php(4675): Parser->extractSections('===Vaults===?[[...', '1', 'get', false)
#2 /home/pawsitiv/public_html/discdogopedia/includes/EditPage.php(193): Parser->getSection('===Vaults===?[[...', '1', false)
#3 /home/pawsitiv/public_html/discdogopedia/includes/EditPage.php(982): EditPage->getContent(false)
#4 /home/pawsitiv/public_html/discdogopedia/includes/EditPage.php(473): EditPage->initialiseForm()
#5 /home/pawsitiv/public_html/discdogopedia/includes/EditPage.php(323): EditPage->edit()
#6 /home/pawsitiv/public_html/discdogopedia/includes/Wiki.php(444): EditPage->submit()
#7 /home/pawsitiv/public_html/discdogopedia/includes/Wiki.php(48): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#8 /home/pawsitiv/public_html/discdogopedia/index.php(90): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest))
#9 {main}
Comment 1 Roan Kattouw 2008-03-14 11:16:07 UTC
Weird. I can't reproduce this on 1.12rc1 or 1.13svn. Could you attach the wikitext of the page you're trying to edit? I saw ===Vaults===?[[ in your backtrace, which would be an invalid header (although that should be handled more gracefully, of course).
Comment 2 Ron Watson 2008-03-14 17:13:49 UTC
Well, now my edit links for the sections are gone. Talk about weird...

Here's the wiki text from one of the sections:

=== Moving Back Vault ===
A moving Back Vault takes place when the handler is in motion as the dog is executing the vault. 

There has always been a little bit of handler motion in Back Vault execution, but in recent years this motion has become significant enough to create an entirely new kind of vault.

[[Gary Shockley]] and Kodiak were pioneers in this dynamic trick in the United States and it's one of the defining aspects of their game that led them to a stellar 2002 competition season. 

The history of the development of the Moving Back Vault in Japan is unclear, but one thing that is not unclear is that the Japanese players ([[Yachi Harai]]) have taken the Moving Back Vault to an entirely different level and have given the entire Disc Dog world a new avenue for evolution and creativity.

Comment 3 Roan Kattouw 2008-03-14 17:23:11 UTC
(In reply to comment #2)
> Well, now my edit links for the sections are gone.
Are you sure you're not viewing a diff or an old version of the page?
Comment 4 Rene 2008-03-14 20:33:25 UTC
I had the same problem with MW 1.12.0rc1. Solution:

Change in Preprocessor_DOM.php , function splitHeading

if( !this->nodeName == 'h')
if( !this->getName() == 'h')

Comment 5 Anon Sricharoenchai 2009-10-22 06:49:43 UTC
I got the same error in mw 1.14.0 (php 5.0.5).
But on another machine that use mw 1.14.0 on php 5.2.4 cannot reproduce this.
Comment 6 Anon Sricharoenchai 2009-10-22 07:32:06 UTC
Try using the alternate preprocessor code; add this to your

$wgParserConf['preprocessorClass'] = 'Preprocessor_Hash'; 
Comment 7 Chad H. 2010-09-03 19:18:33 UTC
From reading the linked thread in comment #6, it seems to have been a combination of using Preprocessor_DOM and old 5.0.x PHP.

Closing as WFM. Feel free to reopen if you can replicate on a more recent version of Mediawiki and PHP (note we only support PHP 5.1 and higher--5.2 or 5.3 is recommended).

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