WordPress.org

Support

Support » Plugins and Hacks » Plugin Causes Site to Hang

Plugin Causes Site to Hang

Viewing 1 replies (of 1 total)
  • Have same problem.

    After hours of investigating i found what cause this: plugin connects to api server and get contacts from it piece by piece and link to next portion of contacts. In last iteration api returns next page url same as current one has and code executes an infinite loop.

    i fix it by changing plugin file class.cc.php (modified lines 834-839):

    $next_p = $this->contact_meta_data->next_page;
    $curr_p = '';
    while(!empty($this->contact_meta_data->next_page) && ($next_p != $curr_p)) {
    	$curr_p = $next_p;
    	$_contacts[] = $this->get_contacts($this->contact_meta_data->next_page);
    	$next_p = $this->contact_meta_data->next_page;
Viewing 1 replies (of 1 total)
  • The topic ‘Plugin Causes Site to Hang’ is closed to new replies.