Hi,
I'm using version 1.12 and we get the following error when trying to edit a section of a page:
Invalid h node passed to PPNode_DOM::splitHeading
Backtrace:
#0 C:\Wiki\mediawiki\includes\Parser.php(4605): PPNode_DOM->splitHeading() #1 C:\Wiki\mediawiki\includes\Parser.php(4675): Parser->extractSections('=Intro=?VMF is ...', '1', 'get', false) #2 C:\Wiki\mediawiki\includes\EditPage.php(193): Parser->getSection('=Intro=?VMF is ...', '1', false) #3 C:\Wiki\mediawiki\includes\EditPage.php(982): EditPage->getContent(false) #4 C:\Wiki\mediawiki\includes\EditPage.php(473): EditPage->initialiseForm() #5 C:\Wiki\mediawiki\includes\EditPage.php(323): EditPage->edit() #6 C:\Wiki\mediawiki\includes\Wiki.php(444): EditPage->submit() #7 C:\Wiki\mediawiki\includes\Wiki.php(48): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest)) #8 C:\Wiki\mediawiki\index.php(90): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest)) #9 {main}
But it works fine if we try to edit a page using the edit link at the very top of the page.
Any idea what is wrong?
Thanks! Simon
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Simon Renshaw wrote:
I'm using version 1.12 and we get the following error when trying to edit a section of a page:
Invalid h node passed to PPNode_DOM::splitHeading
[snip]
But it works fine if we try to edit a page using the edit link at the very top of the page.
Any idea what is wrong?
Can you provide the text of this page so we can try reproducing the problem to debug it? Bonus points if you can point a URL to your wiki if it's in public. :)
- -- brion vibber (brion @ wikimedia.org)
I noticed that this started happening after I upgraded from 1.11 to 1.12. It also happen on every wiki I run.
I created a page called Test on an existing wiki and put the following:
A =B= B
Clicking on the link to edit B crap out.
Then I installed a brand new 1.12 wiki at http://www2.castortech.ca/12test/index.php?title=Main_Page
You'll notice that if you click on the edit link at the top it will work but the link of the getting started section will crap out. I see the internal error message in firefox but in IE I get a page cannot be displayed.
When I installed it, I got the following error:
* PHP 5.0.5 installed * Found database drivers for: MySQL * PHP server API is cgi-fcgi; using ugly URLs (index.php?title=Page_Title) * Have XML / Latin1-UTF-8 conversion support. * Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under. * PHP is configured with no memory_limit. * Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching. * GNU diff3 not found. * Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. * Installation directory: C:\Wiki\12test * Script URI path: /12test * Installing MediaWiki with php file extensions * Environment checked. You can install MediaWiki. * Warning: $wgSecretKey key is insecure, generated with mt_rand(). Consider changing it manually. *
Generating configuration file...
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in C:\Wiki\12test\config\index.php on line 716 * Database type: MySQL
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in C:\Wiki\12test\config\index.php on line 760 * Loading class: DatabaseMysql * Attempting to connect to database server as root...success. * Connected to 5.0.22-community-nt * Attempting to create database... * Created database wikidb12 * Creating tables... done. * Initializing statistics... * Granting user permissions to wikiuser12 on wikidb12...success. * Created sysop account WikiSysop. *
Creating LocalSettings.php...
And it look like LocalSettings.php is corrupted or something.
Thanks for the help!
Simon
On Thu, Mar 27, 2008 at 8:00 PM, Brion Vibber brion@wikimedia.org wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Simon Renshaw wrote:
I'm using version 1.12 and we get the following error when trying to edit a section of a page:
Invalid h node passed to PPNode_DOM::splitHeading
[snip]
But it works fine if we try to edit a page using the edit link at the very top of the page.
Any idea what is wrong?
Can you provide the text of this page so we can try reproducing the problem to debug it? Bonus points if you can point a URL to your wiki if it's in public. :)
- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkfsNToACgkQwRnhpk1wk45C3wCfZ+jfj7/D5G/8us8P8GK0Ox03 YrMAn1cWAlCLBK30GguyTVVbwqM7lRjO =kcOv -----END PGP SIGNATURE-----
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Simon Renshaw wrote:
Then I installed a brand new 1.12 wiki at http://www2.castortech.ca/12test/index.php?title=Main_Page
You'll notice that if you click on the edit link at the top it will work but the link of the getting started section will crap out. I see the internal error message in firefox but in IE I get a page cannot be displayed.
When I installed it, I got the following error:
* PHP 5.0.5 installed
Hmm, could be an incompatibility with PHP 5.0; it might be missing some stuff used in the new preprocessor.
Try using the alternate preprocessor code; add this to your LocalSettings.php:
$wgParserConf['preprocessorClass'] = 'Preprocessor_Hash';
Does that help?
- -- brion vibber (brion @ wikimedia.org)
I added the line and the error is still there.
I can try to upgrade PHP.
Or go back to 1.11. Is downgrading easy?
On Fri, Mar 28, 2008 at 2:42 PM, Brion Vibber brion@wikimedia.org wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Simon Renshaw wrote:
Then I installed a brand new 1.12 wiki at http://www2.castortech.ca/12test/index.php?title=Main_Page
You'll notice that if you click on the edit link at the top it will work but the link of the getting started section will crap out. I see the internal error message in firefox but in IE I get a page cannot be displayed.
When I installed it, I got the following error:
* PHP 5.0.5 installedHmm, could be an incompatibility with PHP 5.0; it might be missing some stuff used in the new preprocessor.
Try using the alternate preprocessor code; add this to your LocalSettings.php:
$wgParserConf['preprocessorClass'] = 'Preprocessor_Hash';
Does that help?
- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkftPBwACgkQwRnhpk1wk45jdQCgi0kQKvcmbwwanSML5sk2xbeP fuIAnjIhOWPFW2mgkJnzRPcfbjXnf/OV =/1Wz
-----END PGP SIGNATURE-----
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Simon Renshaw wrote:
I added the line and the error is still there.
Are you sure you added it correctly? I can confirm that the PPNode_DOM class is not used when this configuration option has been set.
Remember that custom settings must be put *after* the inclusion of DefaultSettings.php, or they will be blown away by the defaults.
I can try to upgrade PHP.
I strongly recommend doing that in general; 5.0.5 is old, buggy, and full of security holes. :)
- -- brion
I added it to one of the other wiki, but at the wrong place.
Now it works!
I'll use that as a workaround until I upgrade PHP.
Thanks for the help!
On Fri, Mar 28, 2008 at 3:05 PM, Brion Vibber brion@wikimedia.org wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Simon Renshaw wrote:
I added the line and the error is still there.
Are you sure you added it correctly? I can confirm that the PPNode_DOM class is not used when this configuration option has been set.
Remember that custom settings must be put *after* the inclusion of DefaultSettings.php, or they will be blown away by the defaults.
I can try to upgrade PHP.
I strongly recommend doing that in general; 5.0.5 is old, buggy, and full of security holes. :)
- -- brion
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkftQWcACgkQwRnhpk1wk44B/gCgquIi28Mg8Y3iAE/W+G4EBPda ZZAAnRdrcHkrwm/r6l1dXmTTYT2hoqLs =ulMH
-----END PGP SIGNATURE-----
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org