Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2011 at 00:10 UTC
Updated:
23 Mar 2012 at 02:51 UTC
Jump to comment: Most recent
Comments
Comment #1
pwaterz commentedAlright well I figured out the problem. I put hook_install_tasks in the .install file. This caused the profile to kinda of work, which made it really confusing. Someone should update the documentation on hook_install_task. I am going to close this.
Comment #2
gauravkumar87 commentedSame Issue : I have an implementation of hook_install_tasks in my .profile file. For tasks set to type 'batch', install_run_task within install.core.inc gets called for case batch, the $batch object is retrieved properly from the callback via
$batch = $function($install_state);Seems like there's a problem with the call to batch_process within install.core.inc
Has anyone else faced this issue? If so, please help. Thanks.
Comment #3
pwaterz commentedDo you have your hook install tasks in your .profile file?
Comment #4
gauravkumar87 commentedYes, was also following http://drupal.org/node/655190 and the documentation. Seems like support for that particular hook in .install files was added recently and one's supposed to use this in a .profile file generally. Does that make sense?
Comment #5
gauravkumar87 commentedTried implementing the same in my .install file as well, same issue.
The Batch does not get processed irrespective of whether this resides in my .install or .profile file.
Comment #6
mrfelton commentedI have a module that runs a batch process as part of it's install hook. When this module is installed either as from an install profiles's .info file, or as part of an instal task, the batch is not properly executed.
Comment #7
pwaterz commentedMake sure that the hook_install_tasks is in the .profile file of your install profile. I am closing this.
Comment #8
mrfelton commentedIt is. In my .profile file, I have the following:
The hook_install_tasks are in example.install.inc
I think, though I'm not sure, that my problem is slightly different. It's not an insall task of type batch, but a module's hook_install implementation that is being installed in an install task using module_enable.
Comment #9
pwaterz commentedThis looks not related. I would post a new bug report