A stacktrace is logged when trying to install in a non-English language.

At PoStreamReader::readHeader we are calling PoStreamReader::getItem that returns a NULL object.

Stacktrace:

[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP Fatal error:  Call to a member function getTranslation() on a non-object in /var/www/d8/core/lib/Drupal/Component/Gettext/PoStreamReader.php on line 220, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP   1. {main}() /var/www/d8/core/install.php:0, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP   2. install_drupal() /var/www/d8/core/install.php:36, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP   3. install_run_tasks() /var/www/d8/core/includes/install.core.inc:86, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP   4. install_run_task() /var/www/d8/core/includes/install.core.inc:377, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP   5. _batch_page() /var/www/d8/core/includes/install.core.inc:487, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP   6. _batch_do() /var/www/d8/core/includes/batch.inc:82, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP   7. _batch_process() /var/www/d8/core/includes/batch.inc:163, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP   8. call_user_func_array() /var/www/d8/core/includes/batch.inc:286, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP   9. locale_translate_batch_import() /var/www/d8/core/includes/batch.inc:0, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP  10. Drupal\\locale\\Gettext::fileToDatabase() /var/www/d8/core/modules/locale/locale.bulk.inc:416, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP  11. Drupal\\Component\\Gettext\\PoStreamReader->open() /var/www/d8/core/modules/locale/lib/Drupal/locale/Gettext.php:76, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2
[Sun Aug 19 18:59:12 2012] [error] [client 127.0.0.1] PHP  12. Drupal\\Component\\Gettext\\PoStreamReader->readHeader() /var/www/d8/core/lib/Drupal/Component/Gettext/PoStreamReader.php:170, referer: http://d8.local/core/install.php?langcode=ca&profile=standard&op=start&id=2

Comments

penyaskito’s picture

Title: Error when installing in catalan » Error when installing D8 in a non-English language

It happens with any language.

penyaskito’s picture

Status: Active » Closed (cannot reproduce)
Issue tags: -D8MI, -sprint

This was because of my local environment for #1658842: Introduce a translations:// stream wrapper to access the .po file directory. I'll try to not really introduce this issue on core ;)

Gábor Hojtsy’s picture

Issue tags: +D8MI

Leaving the D8MI tag is fine :)

Gábor Hojtsy’s picture

Issue summary: View changes

Any language.