Hello,
As a volunteer I developed a site in Drupal 6.22 (www.vvwaspik.nl). I would like to upgrade this site to Drupal 7.9. I tried to do it manually and must say I did not succeed. There were issues on images, panels did not show up etc. I figured it could not be so that upgrading a site would mean so much work. After upgrading the core and some modules it seemed like I had to correct lots of content items and views and what more .....
Then I read about DRUSH. Installed it and tried updates on my Drupal 6.22 site. I was amazed. It was a breeze. First time all modules were up to date. So I want to use DRUSH for upgrading.
I spend some time to get the upgrade starting to do its job. Now it does start I get some errors which I can not resolve without help. I thought it would be a good idea to document my findings and journey to do the upgrade so others can benefit from it. I am a user who needs detailed steps although I know something about computer, programming, office programs and the like. I think I can make a rather detailed description of what I do.
I do hope I will get support which will lead to an upgraded site and a detailed 'manual' for upgrading a site on a machine running Windows XP.
Comments
Drush: installation topics
About my local site
For paths an versions see the description on DRUSH (status)
The settings.php file contains:
I enabled:
The word "Andere" is Dutch for 'Other'.
First attempt of upgrade
I did not create a directory, nore did I create a database. According to what I read it is not necessary to do that.
So I execute the command "drush site-upgrade @targetsite" (shorthand "drush sup @targetsite")
Windows-users: Wait for the execution, it may take some time...
The output before the question to proceed gives:
So I press y and and now I will split the output:
Now that is allright.
But then (Issue 1):
I really do not know which path and which file. So I need help on this!
And then (Issue 2):
Well, I can not interrupt so I do not understand why this question is there. Or can I interrupt?
And then (Issue 3):
I do not know how to make this 'mysqldump' an internal or external command. I read nothing about it. So I need to know how to enable 'mysqldump'.
And then (Issue 4):
I do not know which specified file?
And then (Issue 5):
This is abacadabra for me. So i need help here as well!
And then (Issue 6):
Well this is probably the same problem as the one before. Is it?
And then a bootstrap failure again (Issue 7):
Well, I thought the upgrade is going to install my site and configure my database.
So i need help on this one too.
Then the last part which belongs to the one just before here:
So, it was not just "a push on a button and voila". Did not expect it to be. But there will be lots of people starting a site on Drupal running into likewise problems trying to upgrade a site. Let us try and do something about it.
Thanks for helping me (and probably others!)
What I saw after the first attempt
which is the same as in the Drupal 6 site. I expected a database with name 'waspik7'
I see no new database.
Second attempt of upgrade
As if figured lots of warnings and errors in the first attempt where related to the database I changed the "aliases.drushrc.php" by adding a line for the database. Now it is:
I created a database called 'vvw_drup7' by means of phphadmin. No tables.
As you see I made a little change to the 'uri' and 'root'. I added a 'd' before the 7. Just to know this is about Drupal 7.
The last part of the output is (the first part of the ouput is the same):
So some things are better, but still some problems.
What I saw after the second attempt
There are no tables in vvw_drup7. Probably due to the 'mysqldump' problem.
I ask myself wether this has something to do with the PATH environment.
Also no new modules were downloaded, but maybe this would have been done in a later part of the process.
Upgrading is a pain. One of
Upgrading is a pain. One of the big downsides of Drupal. Sounds like it is no easier with drush than without....
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
Making it work?
Can't we 'all together' make it work?
Is the structure I use all right. I mean putting the d7 site in D:\xampp\waspikd7.
Should I be able to see it by means of "localhost\waspikd7" in the addressbar of my browser?
Thanks for answering. I'll try youre 'output' tip next time.
Updating worked flawles
I must say my first attempt updating Drupal 6,22 site worked perfectly. So we must make upgrading work. I am not a professional website builder, but I managed to come this far. So please help me do the 'trick'.
Third attempt of upgrade
As I had a dump of my Drupal 6.22 database I decided to import it in the database vvw_drup7. All tables were created and data inserted except for the tables cache_menu and cache_update. As they are cache tables (and gave troubles importing) I left them empty.
I started the upgrade and wow ...... was this the upgrade I waited for. I asked myself: "How do I catch this output of DRUSH? Can't read it and can't copy and paste it because lots of lines are gone." But then, after a minute or so (maybe two) the upgrade stopped. I waited some more to be sure. There was this cursor flickering. Nothing happens anymore. No warning, no error. This is the output at that moment:
Oh, by the way: I did not answer the question about "run all pending update?"
Well, what to do now?
drush --debug --pipe >
drush --debug --pipe > /path/to/logfile.txt
maybe?
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
What I saw after the third attempt
I looked at the Task manager and there were processes running like:
php.exe consuming about 45% CPU
another 3 php.exe switching from 0% to about 7%
mysqld.exe about 7%
system idle about 47%
Lots of modules were in D:\xampp\waspikd7\modules. So that is nice!
In settings.php no pointer to vvw_drup7, but maybe that is because the process was not finished.
I wonder wehter it is the feeds of pathauto module what is causing the problem. I would think it will be feeds.
Finally I killed one of the "idle" php.exe processes, looked at DRUSH and s h o c k: the process had resumed, but was it before or after killing one php.exe process in the Task Manager.
The (last part of the) output now is:
Well, I have to test if something works on the d7 site.....
No working site
Well, no working site.
I do get a page header and a working ddblock banner and then a page not found message. I can not recall where the page com from.
I entered localhost/waspikd7 in the adressbar.
I changed the settings.php to
Hm, I think I will need a (big) pause. Feels like I am stuck in the middle of nowhere.......
Working site (partially)
I first tried a standard Drupal 7 install in htdocs and it worked.
Then I moved the waspikd7 folder to htdocs and now I get my 'homepage' when entering "localhost/waspikd7" in the address bar.
I will report later about the status of the upgrade.
Themes not available, but module list seems complete
The list of themes is not available. When trying to get to "http://127.0.0.1/waspikd7/admin/build/themes" i get the warning:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'system_themes_form' not found or invalid function name in drupal_retrieve_form() (line 785 of D:\xampp\htdocs\waspikd7\includes\form.inc).On my live site www.vvwaspik.nl I use Pixture Reloaded with Superfish Drop Menus enabled. In the Garland theme these dropdown do not show up and I do not even know how to get to them.
Well, maybe it is a good idea to disable and uninstall all modules in Drupal 6.22 which do not have a Drupal 7 version. Lik you have to do when upgrading manually. I recon I can not use the data of these modules.
Also I think it is better to disable (maybe uninstall) Pixture Reloaded. All menu-items will still be there I hope so when I reistall Pixture Reloaded it should work again.
I must say in comparison with manually upgrading now all "7 modules" are in the list. I left some '6 modules' while manually upgrading because I thought they were needed. Then after the upgrade I could not remove them (maybe it could have been done in the database, but that is not the way I wanted it to do).
So, I think I will have to prepare a fourth attempt.
Is someone following me and interested in this 'journal'?
Fourth attempt of upgrade
Well, I decided to upgrade after 'stripping' my Drupal 6.22 site. This 'stripping' means:
1. Disable and unistall all modules incompatable with Drupal 7. In my site they were:
2. Disable and uninstall CKEditor and WYSIWYG
3.CKEditor gave troubles while updating in 6.22. I think they both can pretty easily be re-installed in Drupal 7.
Then I update the Drupal 6.22 website succesfully.
I made a backup of the 'htdocs' directory and exported the database
I imported the database in vvw_drup7
I started the upgrade. I saw the same warnings flying by but the upgrade went on till it hanged on approxametily the same spot as in attempt three:
Again I killed one of the php.exe processes. No luck this time: proces stopped.
So, up to the fifth attempt!
Fifth attempt
Before the fifth attempt I did the following:
At this very moment I have:
Again, hanging with four php.exe processes running. I will wait patiently for about 45 minutes.
Well nothing happen anymore, so I killed the process again. For now: end of my yourney until anyone helps me out!
Maybe you wanna uninstall the
Maybe you wanna uninstall the modules that make problems one by one until it runs... you could also try to update every module seperately.
No choice for upgrading modules one by one
I do not know which modules cause problems, I uninstalled the ones which have no Drupal 7 version and at last also uninstalled Date Api.
Still it hangs on the "same spot".
As far as I know on the command site-upgrade there is no choice for modules.
yeah, just delete them from
yeah, just delete them from the modules directory, to find out ;-)