• Resolved ddrager

    (@ddrager)


    On latest version I received a server error when trying to archive post, when Disqus plugin is installed. The problem went away when Disqus plugin was deactivated.

    To fix, I updated the archive_post_by_id by adding wp_rewrite as a global.

    private function archive_post_by_id($postid) { 
      $GLOBALS['wp_rewrite'] = new wp_rewrite;
      $update = array( 'ID' => $postid, 'post_status' => $this->newstatusname );
      wp_update_post($update);
    }

    I wanted to create a pull request on the Github repo but it does not have the latest live version of this plugin.

    Thanks – otherwise love this plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Server Error When Using Disqus’ is closed to new replies.