Views was enabled, than I tried to run update.php and get this error:

Fatal error: Call to undefined function project_release_check_supported_versions() in \sites\all\modules\project\release\project_release.install on line 543

Technical backround: #794192: Documentation of hook_update_N() should explain that certain functions cannot be called from there

Comments

hass’s picture

Issue tags: +6.x-1.0 blocker

tagging

hass’s picture

Reason was the project module was disabled, as i have upgraded core first without any modules as recommended. After this step I copied project to modules folder and tried to re-run the upgrade. On modules page I have seen the modules have been disabled, when the error ocoured.

The main reason for this failure may be that hook_upgrade() use functions from the .module file and this requires a drupal_load() in every of this type of upgrade hooks.

hass’s picture

Version: 6.x-1.0-alpha5 » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new3.42 KB

Patch attached should do the trick.

Status: Needs review » Needs work
hass’s picture

Status: Needs work » Needs review
StatusFileSize
new3.42 KB
hass’s picture

Issue summary: View changes

A

hass’s picture

Issue summary: View changes
Status: Needs review » Fixed

  • hass committed d528ead on 6.x-1.x
    Issue #1394118 by hass: Upgrade from D5 to D6 fails with undefined...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.