Install D7 beta2
Install multiform
The webinterface reports:
* Notice: Undefined index: log in update_authorize_install_batch_finished() (line 231 of /srv/www/htdocs/modules/update/update.authorize.inc).
* Warning: Invalid argument supplied for foreach() in update_authorize_install_batch_finished() (line 231 of /srv/www/htdocs/modules/update/update.authorize.inc).
* Notice: Undefined index: log in update_authorize_install_batch_finished() (line 266 of /srv/www/htdocs/modules/update/update.authorize.inc).
* Notice: Undefined index: tasks in update_authorize_install_batch_finished() (line 267 of /srv/www/htdocs/modules/update/update.authorize.inc).
* Installation failed! See the log below for more information.

Line 231 contains:
230 function update_authorize_install_batch_finished($success, $results) {
231 foreach ($results['log'] as $project => $messages) {
232 if (!empty($messages['#abort'])) {
233 $success = FALSE;
234 }
235 }

Line 266 and 267 contain:
266 $_SESSION['authorize_results']['messages'] = $results['log'];
267 $_SESSION['authorize_results']['tasks'] = $results['tasks'];

As other modules (media and the like) are dependend on this module, this bug may have a higher priority than 'normal', as it blocks the installation of the other modules.

Comments

radoeka’s picture

Hmm, I'm getting the same error for a subsequent module too. It seems a core problem?

radoeka’s picture

Similar problems in:
http://drupal.org/node/908390
http://drupal.org/node/951558

Let me reboot the machine, let's see what happens.

After the machine rebooted and I installed another module, the problem is not seen....
Is this an initialization problem?

Perhaps the bug report should be assigned to the core module?

radoeka’s picture

Project: Multiple forms » Drupal core
Version: 7.x-1.0-beta1 » 7.0-beta2
Component: Code » base system

Changed project to 'Drupal Core'

radoeka’s picture

Title: Error when installing on freshly installed D7 beta2 » Error: "Undefined index: log in update_authorize_install_batch_finished" when installing modules on freshly installed D7 beta2
radoeka’s picture

This problem occurs after a new installation of the OS including apache. I can prevent the problem by restarting apache after I have installed and configured the core drupal installation.

So this looks like an apache problem, perhaps it isn't don't know.

Netbuddy’s picture

Had the same problem. Sequence of events basically went as follows.

- Installed D7 beta 2
- Played around with config and content types, added a couple basic pages, an article, and a comment, moved blocks around. Basic stuff to see how things looked on bartik.
- Installed BUEditor, bueditor-7.x-1.x-dev.tar.gz, through the URL method. Absolutely no problem.
- Played around with that for a while.
- Attempted to install pathauto-7.x-1.x-dev.tar.gz, also through the URL method, and got exactly the same error messages as the OP.
- Using UniServer, I rebooted apache/sql (as suggested above).
- Reloaded homepage, it said something like "No batch file"?. Hit refresh, that message went away.
- Went into the module administration. Pathauto is showing but I didnt have token, so couldnt enable it.
- Installed token through the URL method, got the same error message again.
- Went into module admin, enabled both token and pathauto.
- Configured pathauto, did a full update. It created 15 aliases, and all seems well with the world.

...but those error messages are scary.

Using the latest UniServer install on Windows Vista

Uniform Server 5.6.14-Nano
Apache 2.2.17
MySQL 5.1.51
PHP 5.3.3

geerlingguy’s picture

Version: 7.0-beta2 » 7.0-beta3

Had same error (just a me too).

Peter Arius’s picture

Had the same error on D7.0-beta2 (installing globalredirect) and after update to D7.0-beta3 (installing advanced_help) on my test site on a shared hosting server (Localized Drupal profile, "Localization client" as only non-core module active, Languages German/English, a bunch of core configuration settings, PHP Version 5.2.11).

However, could not reproduce it on my local XAMPP installation with D7.0-beta2 (just core + a few other modules, Languages German/English, PHP Version 5.3.1).

mandreato’s picture

Same here with following scenario:
- Windoxs XP SP3
- XAMPP 1.7.3
- Apache 2.2.14
- PHP 5.3.1
- MySQL 5.1.41
- clean installation of drupal-7.0-beta3
- add italian default language + translate interface
- install core optional modules Content Translation + Locale
- try to install Address Field and get the messages below

Notice: Undefined index: log in update_authorize_install_batch_finished() (line 231 of ...\modules\update\update.authorize.inc).
Warning: Invalid argument supplied for foreach() in update_authorize_install_batch_finished() (line 231 of ...\modules\update\update.authorize.inc).
Notice: Undefined index: log in update_authorize_install_batch_finished() (line 266 of ...\modules\update\update.authorize.inc).
Notice: Undefined index: tasks in update_authorize_install_batch_finished() (line 267 of ...\modules\update\update.authorize.inc).
Installation failed! See the log below for more information.
David_Rothstein’s picture

Component: base system » update.module
Status: Active » Closed (duplicate)

This bug occurs in the Update Manager user interface. It's being discussed in more detail here: #936686: "Installation failed" errors when installing modules from Update Manager w/ Overlay

If anyone can figure out how to reproduce it reliably, please post details there - thanks!

chefnelone’s picture

I think I have similar problem here

I get this error message when installing the View Module. In Drupal 7

Notice: Undefined index: log in update_authorize_install_batch_finished() (line 236 of /Applications/MAMP/htdocs/drupal-7.0/modules/update/update.authorize.inc).
Warning: Invalid argument supplied for foreach() in update_authorize_install_batch_finished() (line 236 of /Applications/MAMP/htdocs/drupal-7.0/modules/update/update.authorize.inc).
Notice: Undefined index: log in update_authorize_install_batch_finished() (line 277 of /Applications/MAMP/htdocs/drupal-7.0/modules/update/update.authorize.inc).
Notice: Undefined index: tasks in update_authorize_install_batch_finished() (line 278 of /Applications/MAMP/htdocs/drupal-7.0/modules/update/update.authorize.inc).
Installation failed! See the log below for more information.

chefnelone’s picture

StatusFileSize
new116.96 KB

Again same problem when installing Views Module
I attached a screen capture

brightbold’s picture

I just experienced this problem installing Webform Validation through the "Install new module" action link on a D7 site created within the last month — I have previously installed modules on this site with no problem. The comment in #5 by radoeka is interesting, as I know my host had some problems with the server last week and it was down briefly — that potentially could have included an OS reinstall.

brightbold’s picture

Looks like there's a patch in the issue referenced by David Rothstein in #10, so if you experience this issue check out #936686: "Installation failed" errors when installing modules from Update Manager w/ Overlay.

nco71’s picture

I had the same problem , and although I got the message installation failed , the module was there ( I guess it downloaded and extracted ) and all I needed was to activate it.

Dave Sandilands’s picture

I also have the same issue installing a module to a brand new install of Drupal 7.7 ie

Notice: Undefined index: log in update_authorize_install_batch_finished() (line 235 of
/home/xxxxxx/public_html/xxxxxx.com/drupal/drupal-7.7/modules/update/update.authorize.inc).
Warning: Invalid argument supplied for foreach() in update_authorize_install_batch_finished() (line 235 of /home/xxxxxx/public_html/xxxxxx.com/drupal/drupal-7.7/modules/update/update.authorize.inc).
Notice: Undefined index: log in update_authorize_install_batch_finished() (line 276 of /home/xxxxxx/public_html/xxxxxx.com/bannersrmoney.com/drupal/drupal-7.7/modules/update/update.authorize.inc).
Notice: Undefined index: tasks in update_authorize_install_batch_finished() (line 277 of
/home/xxxxxx/public_html/xxxxxx.com/drupal/drupal-7.7/modules/update/update.authorize.inc).
Installation failed! See the log below for more information.

It's a very worrying message but is it as bad as it looks? After all, Version 7 has been in production for some time now.

dresimple’s picture

I have the same error, when installing modules by file upload. It said that installation failed but when I checked in the list of modules the module was there. Have anyone found a solution?

David_Rothstein’s picture

This issue is a duplicate of another one, which is already fixed (see discussion above). It will therefore no longer be a problem in the next release of Drupal core. No need to keep posting here :)