Fatal Error after try to modify a title/description on a new forum

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 51348
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Fatal Error after try to modify a title/description on a new forum

Post by Brf » Fri Apr 13, 2018 8:01 pm

There is also a 24-hour limit, or there used to be.

User avatar
JoshyPHP
Code Contributor
Posts: 960
Joined: Mon Jul 11, 2011 12:28 am

Re: Fatal Error after try to modify a title/description on a new forum

Post by JoshyPHP » Fri Apr 13, 2018 9:27 pm

I ran a few tests on Kenningar's server and it appears that something in PHP or libxml2 causes DOMDocument::$documentElement to be NULL. That's not supposed to happen and I can't reproduce it on older or newer versions of PHP (7.1.14) or libxml2 (2.9.4).

To Kenningar and anybody who receives the same error: try switching your PHP version if possible. There's a chance that a different build will not have this issue. I will look for a software workaround too.

For reference, this is the minimum reproducible test I used:

Code: Select all

$dom = new DOMDocument;
var_dump(
	$dom->loadXML('<?xml version="1.0" encoding="utf-8"?><x/>'),
	isset($dom->documentElement)
);
The output should be:

Code: Select all

bool(true)
bool(true)
If you are adventurous and you're looking for a temporary workaround, you can go through the codebase and replace every instance of documentElement with firstChild. Do note, however, that it could have unforeseen consequences.
I wrote the thing that does BBCodes in 3.2.

User avatar
Kenningar
Registered User
Posts: 9
Joined: Thu Apr 12, 2018 9:31 pm

Re: Fatal Error after try to modify a title/description on a new forum

Post by Kenningar » Sun Apr 15, 2018 4:45 pm

If you are adventurous and you're looking for a temporary workaround, you can go through the codebase and replace every instance of documentElement with firstChild. Do note, however, that it could have unforeseen consequences.
I'm not sure to understand how to make this workaround...

User avatar
Kenningar
Registered User
Posts: 9
Joined: Thu Apr 12, 2018 9:31 pm

Re: Fatal Error after try to modify a title/description on a new forum

Post by Kenningar » Wed Apr 18, 2018 3:49 pm

This issue is always ongoing... I cannot use my forum at the moment. How we are going to fix that ?

User avatar
JoshyPHP
Code Contributor
Posts: 960
Joined: Mon Jul 11, 2011 12:28 am

Re: Fatal Error after try to modify a title/description on a new forum

Post by JoshyPHP » Wed Apr 18, 2018 4:05 pm

The best you can do is try another version of PHP and hope it works better.
I wrote the thing that does BBCodes in 3.2.

User avatar
Kenningar
Registered User
Posts: 9
Joined: Thu Apr 12, 2018 9:31 pm

Re: Fatal Error after try to modify a title/description on a new forum

Post by Kenningar » Wed Apr 18, 2018 10:16 pm

It don't, I tested PHP 7.0, 7.1 and 5.6, and same issue.

User avatar
JoshyPHP
Code Contributor
Posts: 960
Joined: Mon Jul 11, 2011 12:28 am

Re: Fatal Error after try to modify a title/description on a new forum

Post by JoshyPHP » Wed Apr 18, 2018 10:30 pm

Then all you can do is ask your web host to fix their PHP build. To be clear, the error is specific to your host and there's nothing we can do about it.

If that helps them, you can give them the minimum reproducible script I linked above: viewtopic.php?p=14987796#p14987796

I've read similar bug reports in various bug trackers, some people managed to fix it by disabling XDebug, others had the issue when they enabled the DOM extension twice by accident. Nothing conclusive though.
I wrote the thing that does BBCodes in 3.2.

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: Blitze, EA117, Lumpy Burgertushie, pikachuturkey and 41 guests