I was able to access weight percentage just after I installed the ad module. However then there were no groups and I checked both the check boxes and submitted the form from that page. That was the last time I was able to access the page. Ever since then I am getting an internal server error. I am assuming this as the site is checking for 500.shtml which does not exist and the search404 comes up with a search on 500 and shtml. I disabled and unistalled the weight percentage module and then reinstalled it but no difference. I checked the log and find only a 404 error getting reported for the 500.shtml file.

Comments

mydllurth’s picture

I am also perplexed by this. An expedition into the unfamiliar realm of module code reveals an infinite while loop initialized at line 60 and ending at line 83 in weight/percent/ ad_weight_percent.module

    $result = db_query('SELECT nid FROM {term_node} WHERE tid = %d', $group->tid);
    while ($nid = db_result($result)) {
// process removed to save bandwidth and mental anguish ;)
    }

I've genius with neither of SQL nor modules but after I added some debugging code I discovered the first nid in term_node is studied until the page request processing was deemed excessive. I wish I knew how I might help more.

jeremy’s picture

Status: Active » Fixed

The ad_weight module currently is only an empty framework -- configuring it won't accomplish anything.

As for the infinite loops, I've fixed these in the development branch, thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.