An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://localhost/update.php?id=53&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function text_summary() in D:\wamp\www\modules\node\node.install on line 680

Don't really have any more details. Its a local Drupal install with 3 sub-sites.

Comments

Argus’s picture

More messages

The update process was aborted prematurely while running update #7006 in node.module. All errors have been logged. You may need to check the watchdog database table manually.

On clicking the 'logged' link to http://localhost/?q=admin/reports/dblog (same message is given on Frontpage):

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupaldb1.block_node_type' doesn't exist: SELECT module, delta, type FROM {block_node_type}; Array ( ) in node_block_list_alter() (line 2339 of D:\wamp\www\modules\node\node.module).

Back to http://localhost/update.php?op=results:

Notice: Undefined index: update_success in update_results_page() (line 162 of D:\wamp\www\update.php).

Argus’s picture

Removed all (themes, files, modules) subdirectories from all subsite's directories and run the install script again. This time it ended normally giving the following error's:

The following updates returned messages

node module

Update #7006
Failed: DatabaseSchemaObjectExistsException: Table <em class="placeholder">field_data_body</em> already exists. in DatabaseSchema->createTable() (line 621 of D:\wamp\www\includes\database\schema.inc).
comment module

Update #7006
Failed: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'comment_body_value' in 'field list': INSERT INTO {field_data_comment_body} (entity_id, comment_body_value, comment_body_format, bundle, etid, deleted, language, delta) SELECT c.cid AS entity_id, c.comment AS comment_body_value, c.format AS comment_body_format, 'comment_node_page' AS bundle, 1 AS etid, 0 AS deleted, 'und' AS language, 0 AS delta FROM {comment} c INNER JOIN {node} n ON c.nid = n.nid AND n.type = :type; Array ( [:type] => page ) in comment_update_7006() (line 311 of D:\wamp\www\modules\comment\comment.install).
update module

dblog module

Main page gives:

Error
Error messagePDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupaldb1.block_node_type' doesn't exist: SELECT module, delta, type FROM {block_node_type}; Array ( ) in node_block_list_alter() (line 2339 of D:\wamp\www\modules\node\node.module).
The website encountered an unexpected error. Please try again later.
Argus’s picture

This was an upgrade from 6.19 to 7.0-beta1

varontron’s picture

Same here. Upgrade 6.19 to 7.0-beta1. Failed 7006 4 times.
Had to add field_data_comment_body.comment_body_value and field_data_comment_body.comment_body_format manually to get the update (7006) to take. Used comment.comment and comment.format respectively as guides for field defs. Altogether had to run update.php 4 or 5 times. Crossing fingers.

webchick’s picture

Title: An AJAX HTTP error occurred » An AJAX HTTP error occurred during upgrade
Component: ajax system » update system
Issue tags: +D7 upgrade path

Tagging, so we get some people to look into this.

Also changing component since this has to do with the upgrade path, not the ajax system.

Any other details you folks can provide would be wonderful!

Argus’s picture

Possibly the same as http://drupal.org/node/934468: "sites/all/modules was not empty (still some Version 6 Modules)"?

If this is the case then there should be a simple check if sites/all/modules and sites/xyz/modules contain Drupal 6 modules, if so a warning "please remove all old modules before continuing the update" should be given. Just so ignorant people like myself think they can update from Drupal 6 to Drupal 7 without removing old modules. :)

Will check this later today in my install.

webchick’s picture

Argus’s picture

I'm not a coder, but I understand that issue discusses a patch to prevent someone trying to update from 6.0 to 7.0 with /sites/all/modules still containing 6.0 modules?

But that patch wasn't committed yet in 7.0-beta1?

I suppose once the damage is done there is no way to repair it other then restoring a backup? If so then I will just do a clean install.

These updates remain pending:

20 PENDING UPDATES
system module

7050 - Change {batch}.id column from serial to regular int.
7051 - make the IP field IPv6 compatible
7052 - Rename file to include_file in {menu_router} table.
7053 - Upgrade standard blocks and menus.
7054 - Remove {cache_}.headers columns.
7055 - Converts fields that store serialized variables from text to blob.
7057 - Increase the size of session-ids.
7058 - Remove cron semaphore variable.
7059 - Create the {file_usage} table.
7060 - Create fields in preparation for migrating upload.module to file.module.
7061 - Migrate upload.module data to the newly created file field.
7062 - Replace 'system_list' index with 'bootstrap' index on {system}.
comment module

7006 - Migrate data from the comment field to field storage.
node module

7006 - Convert body and teaser from node properties to fields, and migrate statuscommentpromote and sticky columns to the {node_revision} table.
7007 - Remove column min_word_count.
7008 - Split the 'administer nodes' permission from 'access content overview'.
7009 - Convert node languages from the empty string to LANGUAGE_NONE.
7010 - Add the {block_node_type} table.
user module

7013 - Add user module file usage entries.
7014 - Rename the 'post comments without approval' permission. In Drupal 7, this permission has been renamed to 'skip comment approval'.
mcrickman’s picture

During upgrade from 6.19 to 7 beta 1 I have same problem as #2.
This is the error on the website.

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mcrickma_drupal.block_node_type' doesn't exist: SELECT module, delta, type FROM {block_node_type}; Array ( )  in node_block_list_alter() (line 2339 of /home/mcrickma/public_html/modules/node/node.module).

FYI: When I ran the update.php I was given the access denied page and had to set the $update_free_access = TRUE; in the settings.php

Charlie

mcrickman’s picture

I got the upgrade to work I had to completely remove the version 6 cck directory for it to work. I did receive this info on the completion screen.

Update #7006

    * Failed: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'comment_body_value' in 'field list': INSERT INTO {field_data_comment_body} (entity_id, comment_body_value, comment_body_format, bundle, etid, deleted, language, delta) SELECT c.cid AS entity_id, c.comment AS comment_body_value, c.format AS comment_body_format, 'comment_node_page' AS bundle, 1 AS etid, 0 AS deleted, 'und' AS language, 0 AS delta FROM {comment} c INNER JOIN {node} n ON c.nid = n.nid AND n.type = :type; Array ( [:type] => page ) in comment_update_7006() (line 311 of /home/mcrickma/public_html/modules/comment/comment.install).

But I no longer get the error on the website.

Also I didn't do a restore of the site I simply removed the cck directory and re ran the update.php.

Charlie

Argus’s picture

Removing all v6 sites/all/modules and sites/xyz/modules doesn't change anything in my case

mcrickman’s picture

I had to manually added the two fields (comment_body_value & comment_body_format) to the (field_data_comment_body) table to get the upgrade to complete without errors.

ALTER TABLE `field_data_comment_body` ADD `comment_body_value` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `delta` ,
ADD `comment_body_format` INT( 10 ) NULL DEFAULT NULL AFTER `comment_body_value` 
webchick’s picture

Priority: Normal » Critical

K, well. Enough people are reporting this issue that I think we need to escalate it to critical.

Thanks for testing! Let's get to the bottom of this. :)

graytoby’s picture

I ran into the issue as well. Update fails on #7002 and #7007. I tried on linux, latest apache, mysql, php 5.3 and wamp with apache 2.2.11, mysql 5.1.36 and php 5.3 and 5.2.11, php and apache logs are completely empty. I tried both 7.0-beta1 and latest dev version, no luck. Below are errors from update result

Update #7002
Failed: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'module' in 'where clause': SELECT 1 AS expression FROM {role_permission} role_permission WHERE ( (rid = :db_condition_placeholder_0) AND (permission = :db_condition_placeholder_1) AND (module = :db_condition_placeholder_2) ) FOR UPDATE; Array ( [:db_condition_placeholder_0] => 2 [:db_condition_placeholder_1] => access user contact forms [:db_condition_placeholder_2] => contact ) in contact_update_7002() (line 128 of C:\wamp\www\modules\contact\contact.install).
Update #7007
Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4-administer recommender' for key 'PRIMARY': INSERT INTO {role_permission} (rid, permission) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1), (:db_insert_placeholder_2, :db_insert_placeholder_3), (:db_insert_placeholder_4, :db_insert_placeholder_5), (:db_insert_placeholder_6, :db_insert_placeholder_7), (:db_insert_placeholder_8, :db_insert_placeholder_9), (:db_insert_placeholder_10, :db_insert_placeholder_11), (:db_insert_placeholder_12, :db_insert_placeholder_13), (:db_insert_placeholder_14, :db_insert_placeholder_15), (:db_insert_placeholder_16, :db_insert_placeholder_17), (:db_insert_placeholder_18, :db_insert_placeholder_19), (:db_insert_placeholder_20, :db_insert_placeholder_21), (:db_insert_placeholder_22, :db_insert_placeholder_23), (:db_insert_placeholder_24, :db_insert_placeholder_25), (:db_insert_placeholder_26, :db_insert_placeholder_27), (:db_insert_placeholder_28, :db_insert_placeholder_29), (:db_insert_placeholder_30, :db_insert_placeholder_31), (:db_insert_placeholder_32, :db_insert_placeholder_33), (:db_insert_placeholder_34, :db_insert_placeholder_35), (:db_insert_placeholder_36, :db_insert_placeholder_37), (:db_insert_placeholder_38, :db_insert_placeholder_39), (:db_insert_placeholder_40, :db_insert_placeholder_41), (:db_insert_placeholder_42, :db_insert_placeholder_43), (:db_insert_placeholder_44, :db_insert_placeholder_45), (:db_insert_placeholder_46, :db_insert_placeholder_47), (:db_insert_placeholder_48, :db_insert_placeholder_49), (:db_insert_placeholder_50, :db_insert_placeholder_51), (:db_insert_placeholder_52, :db_insert_placeholder_53), (:db_insert_placeholder_54, :db_insert_placeholder_55), (:db_insert_placeholder_56, :db_insert_placeholder_57), (:db_insert_placeholder_58, :db_insert_placeholder_59), (:db_insert_placeholder_60, :db_insert_placeholder_61), (:db_insert_placeholder_62, :db_insert_placeholder_63), (:db_insert_placeholder_64, :db_insert_placeholder_65), (:db_insert_placeholder_66, :db_insert_placeholder_67), (:db_insert_placeholder_68, :db_insert_placeholder_69), (:db_insert_placeholder_70, :db_insert_placeholder_71), (:db_insert_placeholder_72, :db_insert_placeholder_73), (:db_insert_placeholder_74, :db_insert_placeholder_75), (:db_insert_placeholder_76, :db_insert_placeholder_77), (:db_insert_placeholder_78, :db_insert_placeholder_79), (:db_insert_placeholder_80, :db_insert_placeholder_81), (:db_insert_placeholder_82, :db_insert_placeholder_83), (:db_insert_placeholder_84, :db_insert_placeholder_85), (:db_insert_placeholder_86, :db_insert_placeholder_87), (:db_insert_placeholder_88, :db_insert_placeholder_89), (:db_insert_placeholder_90, :db_insert_placeholder_91), (:db_insert_placeholder_92, :db_insert_placeholder_93), (:db_insert_placeholder_94, :db_insert_placeholder_95), (:db_insert_placeholder_96, :db_insert_placeholder_97), (:db_insert_placeholder_98, :db_insert_placeholder_99), (:db_insert_placeholder_100, :db_insert_placeholder_101), 
.
.
.
in system_update_7007() (line 1883 of C:\wamp\www\modules\system\system.install).
webchick’s picture

Version: 7.0-beta1 » 7.x-dev

Huh. It looks like the sidebar block only picks up issues assigned to "7.x-dev", so re-assigning. I'll make a separate bug report about that.

catch’s picture

Argus - you can't recover an installation where the upgrade failed, or not easily. If you have you have a backup, please try again with no Drupal 6 modules around.

varontron, mrickman, spongecat - please post here whether you have any D6 modules in your Drupal install, especially CCK.

I think this is a duplicate of #895140: _system_rebuild_module_data() and _system_rebuild_theme_data() will choose 6.x versions of modules and themes over 7.x versions but would be good to confirm that either way before closing.

If anyone is getting this without having D6 modules around, we might need a dump of the D6 database to test with.

webchick’s picture

Status: Active » Postponed (maintainer needs more info)

Ok, #895140: _system_rebuild_module_data() and _system_rebuild_theme_data() will choose 6.x versions of modules and themes over 7.x versions has now been committed.

Could folks in this issue please try your upgrades again from scratch, using the latest, bleeding-edge code in CVS? (and/or wait ~12 hours for the new 7.x-dev.tar.gz file to be generated.) I suspect it should now be fixed.

graytoby’s picture

catch - I have a lots of modules, including cck. All were disabled though and sites/all and sites/default/files dirs were emptied completely. I tested it on local copy of production site.

yoroy’s picture

I ran into this ajax http error with Beta1. Tried again just now with a fresh checkout and did not see the error anymore so seems to be fixed indeed. Is 1 succesful test enough to mark this fixed then?

damien tournoud’s picture

Update #7007
Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4-administer recommender' for key 'PRIMARY': INSERT INTO {role_permission} (rid, permission) VALUES (...)

That's probably the culprit.

But contact_update_7002() should also depend on the user_update_7007().

yoroy’s picture

Welll, I still get reports that update 7006 still needs doing but that one keeps failing

Anonymous’s picture

FYI I had this error but then after reading this issue queue I removed my old 6 modules from sites/all/modules, tried again and it worked fine, upgraded with no errors.

effulgentsia’s picture

I'm concerned that "critical" and "postponed" is a bad combination now, because "postponed" issues don't show up in the "X Critical issues" contributor link, so they don't get nearly enough attention, which isn't good if it's truly "critical".

@DamZ, @yoroy: can you please make new issues for #20 and #21, if that's still needed.

What else is needed to close this?

effulgentsia’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

For everyone who reported the bugs, thank you, and please, please, keep doing so, but I think it makes sense to close this issue, because:

1) It's not 1 issue. It's at least 3 issues.

a) The originally reported issue is node_update_7006() calling text_summary(), but text_summary() not existing. I'm unable to reproduce this with either a 6.19 to 7.0-beta1 upgrade or a 6.19 to HEAD upgrade. And code-wise, there doesn't appear to be anything identifiably wrong. node_update_dependencies() lists system_update_7049() as a dependency, and that runs after system_update_7027(), which enables text.module, so it shouldn't be possible to have text_summary() not existing when node_update_7006() is running. Unless D6 CCK's text.module is being loaded instead of the D7 text.module. But now with #295255: Clean-up the upgrade path: UPGRADE.txt just landing, our instructions clearly say to remove D6 modules for which there are new D7 modules.

b) #10 is comment_update_7006() querying 'comment_body_value' and 'comment_body_format' columns of {field_data_comment_body}, but those columns don't exist. But comment_update_7005() creates the comment_body field, including its columns, unless again, there's D6 CCK modules lying around and causing conflict.

c) #14 is contact_update_7002() and system_update_7007() failures that don't appear to have anything to do with CCK. I haven't put much time into trying to reproduce these. @spongecat: if you're still seeing those, please open a new issue with steps on how to reproduce this, like "install Drupal 6.19, enable modules x, y, z, add roles a, b, c, and users foo and bar, then upgrade to Drupal 7, ...".

2) There's some evidence (#19) that HEAD has fewer of these problems than beta1.

3) Having this issue be open but postponed hasn't been useful in getting further information.

So, again, closing this issue, and encouraging new issues to be opened, specific to the actual update function failing, if anyone is finding problems with HEAD, using its new and improved UPGRADE.txt instructions.

effulgentsia’s picture

Oh, and as per #17, in addition to better UPGRADE.txt instructions, HEAD is now better about prioritizing D7 modules over D6 modules that may be lying around.