Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, what can i do with this error:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://d7.xxxxx/update.php?op=selection&token=o0hzVOphZk2Yr4k0UG_CYS7zr_TJz03_9XtmvHSCBBk&id=4379&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function _update_7000_field_read_fields() in /home/www/xxxxx/d7/modules/image/image.install on line 343
Comment | File | Size | Author |
---|---|---|---|
#16 | undefined_function_update_7000_field_read_field-1357072-16.patch | 395 bytes | DarrellDuane |
#11 | image_modules.png | 90.39 KB | dkingofpa |
#4 | undefined_function_during_upgrade-1357072-4.patch | 646 bytes | dkingofpa |
Comments
Comment #0.0
Prague man CreditAttribution: Prague man commentedAn AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://d7.xxxxx/update.php?op=selection&token=o0hzVOphZk2Yr4k0UG_CYS7zr_... StatusText: OK ResponseText: Fatal error: Call to undefined function _update_7000_field_read_fields() in /home/www/xxxxx/d7/modules/image/image.install on line 343
Comment #1
StevenPatzComment #2
xjmHi @mpark,
I'd suggest doing some more troubleshooting and providing more detail.
Thanks.
Comment #3
Prague man CreditAttribution: Prague man commentedHi,
I tried a long time to upgrade again - the same result.
I proceeded as follows:
1) update modules for Drupal 6
2) uninstall unneeded modules (in fact all except the core)
3) deleted Drupal 6.22
4) uploaded Drupal 7.10 (and modified the settings.php file)
5) entered update.php
6) 143 update was needed, but it stopped at around 120 update with this message:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. path: StatusText: OK responseText: Fatal error: Call to undefined function _update_7000_field_read_fields () in / home/www/myserver/modules/image/image.install on line 342
Comment #4
dkingofpa CreditAttribution: dkingofpa commentedI was having this issue as well when upgrading core from 6.24 to 7.12 via the drush updatedb command.
I set a dependency on the image module so it's upgrade isn't run before the fields module is enabled (system_7020). Patch attached. I also changed the subject to better reflect the issue.
Comment #5
xjmAh, good catch! This looks like a correct fix. I wonder, is there a way to trigger the hooks running in the wrong order to write an upgrade path test for this?
Comment #7
BTMash CreditAttribution: BTMash commentedChecking through this...is there a reason image does not have a dependency on field? I understand that there can be field styles but it seems very strange that since it is primarily going to be the images that will use the field styles anyways that field should not be required. Otherwise, image styles should have been split out from the image module.
Comment #8
BTMash CreditAttribution: BTMash commentedI should have noted that the patch looks good - I'll see if there is any possible way to have upgrade tests for this.
Comment #9
BTMash CreditAttribution: BTMash commentedI actually don't know how I am going to test this (as my suspicion is that this was caused by a particular contrib module) ... I was trying to figure out the circumstances under which a possibility like this could occur and so ... @dkingofpa, did you have the image module installed when you ran your D6 website? Also, was the module disabled when you did the upgrade to D7?
EDIT: I ask this because image module for D6 is not the same module as the image module for D7 and so I can see a situation where moving from D6 to D7 (and isn't there an issue about updates running even though modules are disabled?) could certainly cause this issue.
Comment #10
dkingofpa CreditAttribution: dkingofpa commentedHigh-level overview of my upgrade steps:
drush pm-uninstall `drush pm-list --type=module --status=disabled --pipe` --verbose --debug
drush pm-disable `drush pm-list --no-core --status=enabled --pipe` --verbose --debug
drush updatedb --verbose --debug
Error: Call to undefined function _update_7000_field_read_fields()
Yes, the image module was installed (downloaded and enabled) in the D6 site. During the upgrade, the image module was disabled and then moved out of the drupal folder. The D6 image module code was not in the drupal folder when updatedb was run.
Comment #11
dkingofpa CreditAttribution: dkingofpa commentedAttached is a screenshot of my image module list on the D6 site prior to any of the upgrade steps.
Comment #12
BTMash CreditAttribution: BTMash commentedI'm actually a little stumped on how to approach this issue. And the reason for this is because the image module in D6 is *completely* different from the image module in D7 (which has far more in common with imagefield) and because D7 has the image module in its core modules list.
What I see has happened is:
Since field was never installed (and image module's weight shows up before system * modules - I checked it and that is what the ordering is like), we end up in the situation you did. I think the patch is good, but as far as testing goes for this, I currently don't see an easy way to do so :( Any suggestions/guidance on this would be very helpful).
Comment #13
BTMash CreditAttribution: BTMash commentedI've talked with @webchick about this issue and based on our discussion...this patch looks good to go. We cannot write a test case for this as it requires a d6 contrib module (and putting that into core as a hidden module or creating a stub module would take quite a while) and the only real fix for this would be to fix up the disabled modules updates issue. As far as we see, this patch is safe and shouldn't cause any other issues (system update(s) run before image? Sounds pretty reasonable to me).
Comment #14
webchickCommitted and pushed to 7.x. Thanks!
Comment #16
DarrellDuane CreditAttribution: DarrellDuane commentedI received this error while running update.php even though I have the latest version of Drupal installed that includes this patch.
I was able to fix it by including this line at the top of image.install:
Attached is a patch to insert this line.