Title: Server Error When Using Disqus
Last modified: October 23, 2017

---

# Server Error When Using Disqus

 *  Resolved [ddrager](https://wordpress.org/support/users/ddrager/)
 * (@ddrager)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/server-error-when-using-disqus/)
 * 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)

 *  Plugin Author [shawfactor](https://wordpress.org/support/users/shawfactor/)
 * (@shawfactor)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/server-error-when-using-disqus/#post-9728045)
 * I have added this to the latest versionb (2.20) please test.
 * pete
 *  Plugin Author [shawfactor](https://wordpress.org/support/users/shawfactor/)
 * (@shawfactor)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/server-error-when-using-disqus/#post-9773565)
 * I am resolving this for good order, I will still monitor this thread

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

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

 * ![](https://ps.w.org/lh-archived-post-status/assets/icon-256x256.png?rev=2763873)
 * [LH Archived Post Status](https://wordpress.org/plugins/lh-archived-post-status/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lh-archived-post-status/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lh-archived-post-status/)
 * [Active Topics](https://wordpress.org/support/plugin/lh-archived-post-status/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lh-archived-post-status/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lh-archived-post-status/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [shawfactor](https://wordpress.org/support/users/shawfactor/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/server-error-when-using-disqus/#post-9773565)
 * Status: resolved