← Back to team overview

mahara-contributors team mailing list archive

[Bug 547773] Re: Time out error when opening a view

 

I've had another look at this, but haven't found a good solution yet, so
I'm going to remove it from the 1.4 milestone for now.  It's pretty easy
to reproduce by putting 300k or so of relatively heavy html (I used a
bunch of big tables) into a textbox.  It's possible to fix it in a dirty
way (tried hacking some code to add a timer & throw exceptions into
HTMLPurifier/Strategy/MakeWellFormed.php and it works fine), but we need
a clean way to fix the bug.  It'd be nice if there was a way to set a
timeout on an individual function call rather than just on the entire
script.

** Changed in: mahara
    Milestone: 1.4.0 => 1.5.0

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/547773

Title:
  Time out error when opening a view

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  The following error comes up when trying to access a users view

  Fatal error: Maximum execution time of 30 seconds exceeded in
  /var/www/mahara-site-myportfolio-ac-nz/lib/htmlpurifier/HTMLPurifier/Strateg
  y/MakeWellFormed.php on line 395

  The view number is
  http://myportfolio.ac.nz/view/view.php?id=13222

  This view includes text blocks that have been copied and pasted from
  Word without using the Paste from Word button (this is hidden unless
  you go to full screen mode).

  Unfortunately once this happens the content in the view is not able to
  be edited.

  By the way I experimented with the clean messy code button and this
  doesn't seem to have any effect on content pasted from Word - is this
  right?

  Not sure if this is strictly a bug but more using of Word to paste
  content and the htmlpurifier having difficulty purifying the Word
  html.




  
  This bug was imported from eduforge.org, see:
  https://eduforge.org/tracker/index.php?func=detail&aid=3430&group_id=176&atid=739