Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
penyaskitoIt happens with any language.
Comment #2
penyaskitoThis 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 ;)
Comment #3
Gábor HojtsyLeaving the D8MI tag is fine :)
Comment #3.0
Gábor HojtsyAny language.