I got this error message:

Notice: Undefined variable: install_locale in install_import_locales_remaining() (line 1403 of /home/dm7/install.php).

Looked at the code and proposed this fix. I hate seeing php notices.

CommentFileSizeAuthor
install.php_.notice.patch775 bytesmgifford
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

David_Rothstein’s picture

Status: Needs review » Reviewed & tested by the community

Yup, makes sense!

Is it really only a PHP notice that this causes? From looking at the code, I would think that it would actually prevent the batch import from working correctly at all...

Note that when rewriting the installer in #524728: Refactor install.php to allow Drupal to be installed from the command line I am reasonably sure that no one ever tested it with language imports... So if you find yourself using this feature, definitely be on the lookout for other problems :)

mgifford’s picture

Well, that would explain why
#513940: Installation task progress is not determinable non-visually

wasn't importing the french text for the installation in my tests.

Thank goodness for PHP notices!

Wonder how long this has been broken for?

David_Rothstein’s picture

Title: Ran into a notice when installing in French » Language import during installation is broken
Priority: Normal » Critical

Since July 28, apparently - the date that the initial patch at #524728: Refactor install.php to allow Drupal to be installed from the command line was committed :)

So it sounds like this is a critical bug?

mgifford’s picture

Status: Reviewed & tested by the community » Needs work

I'd agree with that!

dddave’s picture

Status: Needs work » Reviewed & tested by the community

Setting back, ok?

mgifford’s picture

Yup. That's fine with me. It must have been overlooked in the creation of the new function:
http://api.drupal.org/api/function/install_import_locales_remaining/7

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks!

Status: Fixed » Closed (fixed)

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