The fairly simple Drupal 6.16 site described in #785184: Attempts to update a D6.16 site to D7 will update to D7 HEAD (providing the patch in #22 of that issue is applied before attempting the update!). But opening the new D7 site produces the error:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'stuart_d6.drupal6_block_node_type' doesn't exist: SELECT module, delta, type FROM {block_node_type}; Array ( ) in node_block_list_alter() (line 2287 of C:\WebStuff\www\drupal7\modules\node\node.module).
This table does not exist in the D6.16 database, but it is not created by the update process.
Comment | File | Size | Author |
---|---|---|---|
#9 | 7006-update.diff | 1.19 KB | marcingy |
#7 | 7006-update.diff | 692 bytes | marcingy |
#6 | 7006-update.diff | 654 bytes | marcingy |
Comments
Comment #1
StuartJNCC CreditAttribution: StuartJNCC commentedTagging for D7 Upgrade path
Comment #2
StuartJNCC CreditAttribution: StuartJNCC commentedIt seems that this should have been fixed in #684774: Block visibility settings cannot be properly extended. The patch in #34 includes
function block_update_7001()
which creates the block_node_type table. According to #38, this patch was committed to HEAD by Dries on 28/03/2010. But I just updated my version of HEAD and checked modules/block/block.install and this function is not there (updates 7000, 7002, 7003 and 7004 are however present). So what has happened to update 7001? I searched for this function and can find no other mention of it outside that issue.Comment #3
marcingy CreditAttribution: marcingy commentedThe code now lives in node_update_7010 after being moved there by http://drupal.org/node/684774#comment-2703744.
Comment #4
marcingy CreditAttribution: marcingy commentedI believe the cause of this is because node update 7006 fails and hence the node 7010 is never run - we get the following errr Attempt to create an instance of field body without a bundle.
Site was set up by running devel to create randon story and page nodes.
Comment #5
marcingy CreditAttribution: marcingy commentedComment #6
marcingy CreditAttribution: marcingy commentednode_add_body_field expects an object not a string. This patch converts it and once applied remainder of upgrade completes and error reported by
StuartJNCC no longer occurs.
Comment #7
marcingy CreditAttribution: marcingy commentedAbove will fail to apply - grr windows...
Comment #8
catchOuch. The phpdoc for node_add_body_field() is wrong too though.
Comment #9
marcingy CreditAttribution: marcingy commentedReroll with updated phpdoc.
Comment #10
catchComment #11
webchickAwesome! I love munching RTBC critical issues. Especially when they're about the upgrade path. :D
Committed to HEAD!