Page MenuHomePhabricator

Large Pages not rendered: Allowed memory size exhausted (PHP 5.5)
Closed, InvalidPublic

Description

Author: schoni92

Description:
HTML-Code from the errorpage

If a Page has a lot of '<' or '>' the following error code were given

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 339607 bytes) in /users/lastchaos/www/includes/Sanitizer.php on line 554

The Usage of memory is temporary more than 256MB but the problem is allready exsisting. In the content we use a lot of HTML-code and the '<' and '>' tag is used in this article more than 70.000 . I don't know, why this error should be happened, but it isnt working since the 1.21 version. Additionally the Server working with php version 5.5.

Another page, which includes a lot of <img>-Tags are present the same error but with an plugin while i submit it:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 264175 bytes) in /users/lastchaos/www/extensions/TinyMCE_MW/TinyMCE_MW.php on line 297
In the attachment is the HTML-Code from the first page.

Furthermore the TinyMCE don't work with the newest php version (5.5) because the headlins dont change to the <h2> or other <hx>-HTML-Tags.


Version: 1.21.x
Severity: major
URL: http://guide.lastchaos.bplaced.net/index.php?title=Levelabh%C3%A4ngige_Dropliste

attachment levelabhängige Dropliste.txt ignored as obsolete

Details

Reference
bz50922

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:56 AM
bzimport set Reference to bz50922.
bzimport added a subscriber: Unknown Object (MLST).

schoni92 wrote:

In my opinion the TinyMCE Extension is the cause for the Bugs. If i disable this extension all pages can be submitted and shown. Maybe the TinyMCE Extension should be updated for the newest WediaWiki version.

Could you enable $wgShowExceptionDetails ?
See http://www.mediawiki.org/wiki/Manual:How_to_debug

(In reply to comment #0)

Furthermore the TinyMCE don't work with the newest php version (5.5) because
the headlins dont change to the <h2> or other <hx>-HTML-Tags.

Is that a different problem? If yes, could you please file a separate bug report (again, a minimal testcase or good steps to reproduce are welcome)? Thanks.

schoni92 wrote:

(In reply to comment #1)

In my opinion the TinyMCE Extension is the cause for the Bugs. If i disable
this extension all pages can be submitted and shown. Maybe the TinyMCE
Extension should be updated for the newest WediaWiki version.

Sorry my fault. the Problem with the large pages allready exist after disable TinyMCE Extension. I would open another bug report for the second bug. Ignore the coment.

schoni92 wrote:

(In reply to comment #2)

Could you enable $wgShowExceptionDetails ?
See http://www.mediawiki.org/wiki/Manual:How_to_debug

(In reply to comment #0)

Furthermore the TinyMCE don't work with the newest php version (5.5) because
the headlins dont change to the <h2> or other <hx>-HTML-Tags.

Hello,

sry for the bad Bugreport bud it is my first bugreport :)

I enable $wgShowExceptionDetails for the error already. If the page is called nothing more were shown. i safed the debuglog in seperate data, which is in the attachment.

(In reply to comment #2)

Is that a different problem? If yes, could you please file a separate bug
report (again, a minimal testcase or good steps to reproduce are welcome)?
Thanks.

I want to do this in the afternoon.

schoni92 wrote:

Debug information

The Debuginformation with the following typs of debug:
error_reporting( -1 );
ini_set( 'display_errors', 1 );
ini_set( 'display_startup_errors', 1);
$wgShowExceptionDetails = true;
$wgDebugToolbar = true;
$wgShowDebug = true;
$wgDebugComments = true;
$wgShowSQLErrors = true;
$wgDebugDumpSql = true;
$wgShowDBErrorBacktrace = true;

Attached:

schoni92 wrote:

For the TinyMCE_MW heading problem is another bug report:
https://bugzilla.wikimedia.org/show_bug.cgi?id=50928
I hope this bug report is better :)

schoni92 wrote:

Another important information:

I debuged the submit action like the Debug information.txt in the attachment. The function Parser::replaceVariables is called very often. If I comment the function between wfProfileIn( METHOD ); and wfProfileOut( METHOD ); the large site would be saved. If the function is non-comment the large site didn't saved and I get the error. Maybe this could be the problem.

Furthermore I rework the HTML code of the page and now i dont get any problem, only a blank page, if i submit the page. The HTML code is a little bit smaller as the first (~80kB). But the submit problem still appear.

schoni92 wrote:

new Droplist

Here is the new HTML-Code from the large page. If it is submit with the TinyMCE_MW editor, there appear a balnk page.

Attached:

Aaron: Could you take a look at this (comment 5 and comment 7), in case you have an idea what's going wrong here?

Jdforrester-WMF renamed this task from Large Pages not shown: Allowed memory size exhausted (PHP 5.5) to Large Pages not rendered: Allowed memory size exhausted (PHP 5.5).Jan 25 2016, 8:56 PM
Jdforrester-WMF subscribed.

Is this actually a bug where something worked in PHP 5.3 but broke in 5.5+? It doesn't seem that the underlying issue is, just the bit broken out into T52928: TinyMCE_MW Extension don't handle headings with php 5.5. Problem with Hook ParserAfterTidy

aoxomoxoa subscribed.

This is an ancient task referring to a prior incarnation of the TinyMCE extension which I believe is no longer valid for the current version.