Closed (fixed)
Project:
htmlwrap
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 May 2006 at 04:04 UTC
Updated:
20 Mar 2007 at 18:16 UTC
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
Comment #1
Boinng commentedI'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.
Comment #2
talesa commentedI am also experiencing this problem in drupal 4.7.2.
Comment #3
lambert-1 commentedI'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.
Comment #4
khenney commentedSimilar issues with 4.7.2, only rather than just timing out, apache actually crashes on my Windows test box.
Comment #5
smilodon commentedThis 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.
Comment #6
mattm commentedThis module also makes certain pages with lots of text time out for me. I would really appreciate a working patch for this!
Comment #7
maastrix commentedFatal 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.
Comment #8
micheleannj commentedBump.
I would really appreciate if someone could resolve this and/or post some specifics about an alternative solution.
Thanks,
Maj
Comment #9
Rain-1 commentedHi
The problem still exists. The module is not usable with this problem.
U
Comment #10
drhilarius commentedThe "urlfilter" module actually takes care of this for URLs, which I have found to be the only thing that needs it...
Comment #11
sethcohn commentedI'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:
Comment #12
nazar k. commentedFix for htmlwrap function is here: http://www.greywyvern.com/code/php/htmlwrap.phps
Replace htmlwrap.php.