Jump to content

Migrate from Drupal to Processwire


kreativmonkey
 Share

Recommended Posts

Hi,

I read an article about Processwire in a Magazin and it sounds good. So i tested processwire and read a lot about it. Now I am sure that it is exactly what I was looking for my project. Currently, I use Drupal for my project, and before that I used WordPress. My Site has over 700 article and a lot of comments, other posttypes and (700) Users.

Now my Problem is to migrate my Data from Drupal to Processwire.

The articles were written by different users. The Comments were written by users and guasts.

How can i Migrate my Porjekt without loosing to much information?

I found this thread https://processwire.com/talk/topic/1015-switching-from-drupal-to-processwire/ but what is with the users and comments?  A lot more thinks are not transfered (post date and auhtor).

Thanks a lot for your help!

Link to comment
Share on other sites

You should be able to get users out and imported as ProcessWire Users (essentially pages themselves) and the comments - there's a PW comments module so I'm reasonably sure there would be a way to import those too.

The big issue you will have is that most CMS' use different methods of encrypting their passwords, which is not a bad thing. What it does mean is that if you successfully convert your site you will probably need to get everyone to generate a new password somehow, or add a little extra code in the login routine to check the old database when someone logs in and, if it's a match, update it against the PW user (easier than it sounds, but a little coding required).

That's all possible, but probably the least of your worries as well :)

Is there any chance you can link to your current site? It would help to see visually what might pose a problem and suggest the best ways of going about certain things.

Also if you could describe the current workflow for authors that would be helpful - presumably they can only create and edit their own articles, but does someone approve them or are they simply posted by the author live to the site?

Link to comment
Share on other sites

Hi Pete,

thanks for your fast answer. I have activate the comments module but i dont find any way to import the comments with my posts. My knowled about php is rudimental, but i'm currently learning it.

The big issue you will have is that most CMS' use different methods of encrypting their passwords, which is not a bad thing. What it does mean is that if you successfully convert your site you will probably need to get everyone to generate a new password somehow, or add a little extra code in the login routine to check the old database when someone logs in and, if it's a match, update it against the PW user (easier than it sounds, but a little coding required).

I already accepted the problem with the user passwords. The same problem occured when changing from WordPress to Drupal.

Also if you could describe the current workflow for authors that would be helpful - presumably they can only create and edit their own articles, but does someone approve them or are they simply posted by the author live to the site?

The users can creat and edit their own articles than the user send a request for publishing and one of the reviewer checks the article and communicate with the author over an note field. I found a solution by ryan: https://processwire.com/talk/topic/3987-cmscritic-development-case-study/?p=40168

But what is your solution for this problem?

Hear is the link to my project: http://www.mta-r.de

Link to comment
Share on other sites

For comments, this thread is useful: https://processwire.com/talk/topic/7145-is-it-possible-to-add-a-comment-programmatically/

Since you're importing pages AND comments for those pages you will probably have created the new page further up in your code and saved it already.

You seem to have found all the relevant topics (well, now with the one I linked to) but if you don't know much PHP this may seem a daunting task - we're here if you have any questions though. The main things you need to learn are how your data is stored in Drupal - getting it out is probably the hardest part, putting it into ProcessWire will be easier I think and also will be an excellent learning experience in terms of the functionality in the API.

My solution for managing articles is pretty similar to Ryan's. His is more suited to your needs though I think. Once you get your data imported, you'll know enough about the API that you can create custom admin pages such as dashboards showing articles pending approval etc - that sort of thing is really easy in ProcessWire so you're limited only by how fast you can learn and your imagination :)


I'm not sure if anyone else has done a Drupal conversion recently who could help you further, but I could take a look later next week if you were willing to supply a copy of the site? It's hard to go into much more detail without seeing exactly how things are set up in the DB etc.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Similar Content

    • By alanxptm
      Hi, I have already tried in different ways and many times to migrate but I always have issues at the end.
      Here's what I have done so far:
       
      case 1:
      1. Install PW on live server (all normal)
      2. Import local DB into live DB
      3. Front page site seems to work but I cannot login into admin page
      case 2 (I'm currently on this stage):
      1. Copied all files from local to live server
      2. Import local DB into live empty DB
      3. Front page works, but any other page and admin page are 404
       
      In both cases:
      - I have changed config.php info accordingly to live server (DB name, DB user and pwd, userauthsalt code)
      - Uncommented RewriteBase / and RewriteBase /pw/ lines on .htaccess
      - applied owner and group permissions to www-data for PW location
      - applied permissions to folders and files accordingly
      - applied a2enmod rewrite to apache2 on live server and restarted service
       
      I have read some posts (Ryan's too) about migration and it seems to me that I'm doing it fine, don't know what it fails-
      I'm on VMWare machine, Ubuntu Server 18.04, php 7.2, phpMyAdmin 5.0.1
      Hope you can help me, thanks in advance
    • By franciccio-ITALIANO
      Hi, I must change server provider.
      I don't want rewtrite all page and articles, what must I do?
      I download a database copy on my pc, and now?

      Thanks!!
    • By joeck
      Hi Guys,
      I'm trying to do my first migration to the customers existing server (IIS 10) . I ran the site as a subdirectory on my website for test purposes (everything works fine).
      Following the tutorial of Joss, I tryed the site on a local xampp server to make sure, it also works on a root directory. So far so good, everything works.
      Now I moved the files (from the xampp) to the customers server. The root/index page is shown but for every subpage i get 404 Errors...
      Hence I followed the troubleshooting guide for not working URLs:
      On the first sight, the .htaccess file is not recognized, therefore I contacted the host support. They said, it is recognized but not all modules are supported in the processwire .htaccess file. I did the "öalskjfdoal" test in the .htaccess file and didn't get a 500 Error.... BUT the rewrite rule from the hosts support, to proof the file is read, DID work... The support claims, they do not provide debugging... so basically the .htaccess file is recognized and working, but not throwing any errors (for whatever reason).
      Working rewrite rule (from support):
      RewriteEngine On RewriteBase / RewriteRule ^test\.asp$ index.html [NC,L] RewriteRule ^test\.html$ konzept.html [NC,L] RewriteRule ^test2\.html$ team.html [NC,L] The support said, a couple modules are not supported in the htaccess file, the supported ones are listed here: http://www.helicontech.com/ape/ (I think mod_rewrite is supported)
      As I do not completely understand what exactly is happening in the htaccess file, I'm stuck. I tried all suggestions I found regarding this topic on the forum, but none of them solved the problem.
       
      .htaccess.txt
    • By pwuser1
      First I am a PW student I think it's the best PHP Framework.  So please don't get me wrong when I asked when other Frameworks like the big 3 (Wordpress, Joomla, Drupal) are too complicated to use or maintain (I tried them all) why are people still using them? PW is just too elegant in comparison even for a newbie like me.
    • By Jota
      I need an expert in processwire (ver.2.3.0) to help us change a website of a hosting, contact info@intuitiva.com.co
×
×
  • Create New...