I've recently been working on upgrading a Drupal 6 site to Drupal 7. I'm brand new to Drupal, but I've been following the instructions set out in Upgrade.txt, so I've done the following:
- backed up all files and the database
- disabled all contributed modules
- removed all old files
- uploaded the Drupal 6.37 files
- replaced the sites directory with the one I had previously backed up
- ran update.php
- removed all the files
- uploaded the Drupal 7 files
- replaced the sites directory with the one I had previously backed up

At this point, I tried to run update.php, but the page appears blank. When I try to navigate to the website, I get the following error:
Fatal error: Cannot redeclare template_preprocess_block() (previously declared in /home2/mccotter/public_html/test/includes/theme.inc:2042) in /home2/mccotter/public_html/test/modules/block/block.module on line 1038

The only thing in the upgrade process that I can think of that I skipped was upgrading the individual modules to the latest 6.x version. But I removed all the contributed modules during the upgrade process when it had me remove all the old files; I was just planning on reinstalling the 7.x versions of the modules after the core was upgraded, so I wouldn't think that would be a problem. The only modules in there are the core modules.

Comments

VM’s picture

I suggest migrating the content from the D6 to the D7 site rather than upgrading.

dklee10’s picture

It's my understanding that migrating involves building the entire site from scratch first, and then copying the data over. Is that correct? As a novice, I'm not sure how I feel about that.

VM’s picture

migrating involves building the entire site from scratch first, and then copying the data over. Is that correct?

correct.

upgrading from D6 to D7 is a beast when contrib modules are in play. Even if you get core to upgrade then you have to deal with upgrading each module and its dependencies. Just too many variables involved.

utilizing the error you receiving as search terms doesn't uncover any hints. Did you switch to a core theme before starting the upgrade? D6 themes do not work with D7.

dklee10’s picture

Yes, I switched to Garland

anshul.udapure’s picture

Hi
Lot of functions changed from d6 to d7 . It will not be good to take update directly. even if we solve your above stated problem by going manually correcting issue but it will be difficult to maintain site later. so for migration you can take help some modules avaialble in d7
like migrate module , feeds module, node export . ask me in same thread if you feel some difficulties.
Thanks
Anshul