I am willing to use disqus at a site made with drupal7 but in order to do so I need to import the existing comments to disqus. I know D6 version has a migration sub-module, but that's not the case in D7 version. Since there's an open issue about this #1095194: Disqus Migration module revamp which seems to be "forgotten", I'd like to ask if there's any workaround to solve this problem.

Additionally I'd like to know if there's a way to export comments from disqus and place them in the correct nodes as drupal comments (just in case)



daco’s picture

I would also like to know more about this feature... it would be great to be able to migrate from drupal comments to disqus and from disqus to drupal comments.

Shane Birley’s picture

The Disqus module has an import and export feature. When you are viewing the Disqus configuration page on your web site, you should see three tabs at the top marked General, Export, and Import.

Don't forget to activate the Disqus Migrate module.

c-c-m’s picture

I'm afraid version 7.x-1.9 doesn't have Migrate module, so those tabs you're talking about doesn't show up. That's the reason about the question, since it seems that the issue regarding this topic (#1095194: Disqus Migration module revamp) is somewhat abandoned...

Shane Birley’s picture

Status: Active » Closed (duplicate)

Ah! My apologies. I hadn't realized the migration module wasn't included. Looks like I should read fully before commenting or stop drinking beer, one or the other. I will close this ticket and refer to the other issue in the queue. We should keep all of the comments over there.

For further discussion, please visit: http://drupal.org/node/1095194.

c-c-m’s picture

Status: Closed (duplicate) » Active

Dear Shane,

If you don't mind I don't think that this is an exact copy of the already mentioned issue. On that issue (which has not received any progress sin April 2011) the topic was to include an import/export feature to drupal7.

This issue, however, is not about that, it's about asking if somenone knows how to achieve the same without that module, in case there's a workaround.


Shane Birley’s picture

This would be true but I don't think there is a work around for the issue, hence why I closed it. I also think it isn't worth spending a huge amount of time of working around something that is already being worked on... helping out, etc.

I note there doesn't seem to be any activity here for a work around but were you successful?

c-c-m’s picture

I have not yet solved the issue but I may be close. I am reading this disqus documentation page: http://docs.disqus.com/developers/export/

As far as I understand (I am not an expert on this, so be aware) we could export comments in xml format (maybe using feeds module) as far as we follow disqus guidelines: http://docs.disqus.com/developers/export/

However, I am not pretty sure how to achieve that.


dwkitchen’s picture

Here is a sandbox of a Disqus Migrate module developed for Dennis Publishing


c-c-m’s picture

Thank you very much, I was willing to have it migrated to d7!
However, I am new to git and I've just installed it into my server and executed the command:
git clone http://git.drupal.org/sandbox/dwkitchen/1483518.git disqus_migrate and I see an empty folder (with hidden files and folders), am I missing something?

dwkitchen’s picture

You will need to use
git clone --branch 7.x-1.x git@git.drupal.org:sandbox/dwkitchen/1483518.git disqus_migrate
To get the Drupal 7 version

c-c-m’s picture

Thank you very much, I did as you said (replacing your username with mine) and it worked. However I have to admit that I don't understand how it's supposed to work. I've read the readme.txt file but its explanation is not very helpful (See below):


Exports existing comments in to XML format ready for import in to Disqus

I have enabled disqus migrate module and then visited migrate tab in admin/config/services/disqus but I do not know what I am supposed to do now.

Hope you can guide me a little bit more.

Thank you

c-c-m’s picture

Oops, forget about it. I visited admin/content/comment/ and realized there's a new tab called "disqus export" so I can generate the xml file!

c-c-m’s picture

Dear dwkitchen,

I'm not sure, but it seems that the export does not work very well, since I get some errors when I try to open with my browser. Additionally I uploaded it to disqus 9 days ago and I still don't see any imported comment (and I am still waiting for a propper answer from disqus' support team)

Did you succeed in exporting comments and then importing to disqus site?


kenyan’s picture

Hi all,
When I go to admin/content/comment/disqus_export and click on "export all comments to xml" it seems to be doing something then just stops. I was hoping I'd see a download start on my browser or something..
Please advice.

rerooting’s picture

If you are having issues with disqus_export I would highly suggest creating an issue here on the Disqus Migrate sandbox:


rerooting’s picture

More specifically, if you are having issues with the D7 diqus_export sandbox as mentioned above http://drupal.org/sandbox/dwkitchen/1483518 then you should report issues in the issue queue I mentioned above. It seems that the D6 version of this module includes its own disqus_migrate submodule. Just friendly advice to ensure folks get support!

Rosamunda’s picture

Hi there,
I´m sorry but I have no idea of how to use "git clone --branch 7.x-1.x dwkitchen@git.drupal.org:sandbox/dwkitchen/1483518.git disqus_migrate".
Please, could someone post the module´s zip here so I can download it?

I´ve installed the git program for windows (Git-, and try that at the command line, but couldn´t get anything downloaded...


dwkitchen’s picture

Hi Rosamunda

You will need to change my username before the @ to yours to be able to download, missed that when I first added the comment.

Rosamunda’s picture

Thanks for you reply!
But I don´t see any username before the @.
Isn´t this the working code?
git clone --branch 7.x-1.x git@git.drupal.org:sandbox/dwkitchen/1483518.git disqus_migrate

Or should I just type it this way?
git clone --branch 7.x-1.x git@git.drupal.org:sandbox/Rosamunda/1483518.git disqus_migrate


Rosamunda’s picture

Nope, I´ve tried that and it says:

Cloning into 'disqus_migrate' ...
ssh: gitgit.drupal.org:no address associated with name
fatal: Could not read from remote repository.
Please make sure you have the correct address rights
and the repository exists.

I don´t have any git account nowhere... onec I get it right, where should download the zip?

Side note: Why isn´t this module into the D7 version anyway...?

dwkitchen’s picture


git clone --branch 7.x-1.x http://git.drupal.org/sandbox/dwkitchen/1483518.git disqus_migrate

Rosamunda’s picture

Thanks! It seems to work now, but where´s the downloaded file?

Cloning into 'disqus_migrate' ...
remote: Counting objects:61, done.
remote: Compressing objects: 100% (58/58), done.
remote: Total 61 (delta 24), reused 0 (delta 0)
Unpacking objects: 100% (61/61), done.

Rosamunda’s picture

Never mind... I´ve got it!
It was inside my users folder :)


Rosamunda’s picture

Hi again,
I´ve exported the comments of my test site, and disqus is in the process of importing it to their platform.
How may I import comments back to my Drupal site? And how about the "importing in regular intervals". Is that still applicable here?
I see the "migrate" link at "admin/config/services/disqus", but don´t know what to do with it as it only shows a textfield and this information "Overide the base URL. Usefull if generating XML file for a different domain from current (http://www.liganet.net). Use the full base url eg. http://www.somesite.co.uk"

Again, thanks for your help!!!

sreynen’s picture

Status: Active » Fixed

I'm marking this as fixed, as the original query is answered with disqus_migrate. Specific questions about using disqus_migrate should be raised in the disqus_migrate issue queue, not here, so others with the same questions can easily find them.

Status: Fixed » Closed (fixed)

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