Hi - Love the htmlwrap - however, I have a problem wherein it seems to be causing my site to hang.

What happens is that I click on a link to a node (it also happens with some search results, after clicking the search button) and the browser just churns for a while, and then finally I get the message:

Fatal error: Maximum execution time of 60 seconds exceeded in /var/www/html/modules/htmlwrap/htmlwrap.php on line 91

If I disable the htmlwrap module, the problem is immediately fixed and I can view the nodes in question with no performance issues.

What info can I provide to help out with this one?

thanks,
rich

Comments

Boinng’s picture

Priority: Normal » Critical

I'm getting this too on 4.7.2 - as soon as I installed it, trying to open articles (with comments) was taking an age; disabled it, and no problem. Shame, this is a useful module and I'd really like to use it.

talesa’s picture

I am also experiencing this problem in drupal 4.7.2.

lambert-1’s picture

I'm experiencing the same problems.

When I reduce the front page to 10 posts, it no longer times out.

However when I go to a long post with 50 comments, it times out, no matter how I reconfigure the comments: page by page, flat, threaded, etc.

Too bad, because my users would like this.

khenney’s picture

Similar issues with 4.7.2, only rather than just timing out, apache actually crashes on my Windows test box.

smilodon’s picture

This is line 91.. im not a scripter, so i dont know whats wrong with it.

// Find the first stretch of characters over the $width limit
if (preg_match("/^(.*?\s)?(\S{".$width."})(?!(".preg_quote($break, '/')."|\s))(.*)$/s".(($utf8) ? 'u' : ''), $value, $match)) {

But i would like this module to be patched asap.

mattm’s picture

This module also makes certain pages with lots of text time out for me. I would really appreciate a working patch for this!

maastrix’s picture

Fatal error: Maximum execution time of 30 seconds exceeded in /usr/home//domains//public_html/modules/htmlwrap/htmlwrap.php on line 91

I'm not a programmer but when I look at line 91, It looks kinda ugly. Perhaps he better could have used the php wordwarp function.... Anyways, this code is crap and messes up your drupal installation... Don't use it untill somebody fixes it.

ATM you can use the css wordwrap code for IE and in Firefox the only solution is to set the DIV in css to overflow:hidden. Ugly solution but it will save your layout.

micheleannj’s picture

Bump.

I would really appreciate if someone could resolve this and/or post some specifics about an alternative solution.

Thanks,
Maj

Rain-1’s picture

Hi

The problem still exists. The module is not usable with this problem.

U

drhilarius’s picture

The "urlfilter" module actually takes care of this for URLs, which I have found to be the only thing that needs it...

sethcohn’s picture

I've found this module was causing cron to stop working also.

Google juice to help the next person with the same problem:

cron.php
Premature end of script headers:

nazar k.’s picture

Status: Active » Closed (fixed)

Fix for htmlwrap function is here: http://www.greywyvern.com/code/php/htmlwrap.phps
Replace htmlwrap.php.