Link to QR-code is broken or missing

Created on 9 April 2023, over 1 year ago
Updated 18 July 2023, over 1 year ago

Problem/Motivation

Steps to reproduce

Deployed a drupal/latest docker container. Standard setup. Added module via compose inside the docker container.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

2.0

Component

User interface

Created by

🇺🇸United States donaldcarek

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @donaldcarek
  • 🇺🇸United States donaldcarek
  • 🇮🇳India kmani

    Me too having same issue.

  • Status changed to Needs review over 1 year ago
  • 🇮🇳India bharath-kondeti Hyderabad

    There was a code change to support base64 images where Markup::create($authenticator->getQr()) has been to replaced by new FormattableMarkup('', ['@src' => $authenticator->getQr()]). This is somehow breaking the QR images.

    I have created a small patch reverting back the changes. Please review the same.

  • 🇮🇳India kmani

    This is because of FormattableMarkup and the image source has to convert markup.

  • @kmani opened merge request.
  • 🇩🇪Germany torstenzenk

    Yes, #5 patch is working, thank you!

  • 🇩🇪Germany torstenzenk

    Error 1:
    Type file
    Date Monday, May 15, 2023 - 23:18
    User Anonymous (not verified)
    Location http://default/
    Referrer
    Message The file permissions could not be set on translations://.
    Severity Error
    Hostname 127.0.0.1
    Operations

    Error2:
    Type file
    Date Monday, May 15, 2023 - 23:18
    User Anonymous (not verified)
    Location http://default/
    Referrer
    Message The specified file 'temporary://fileYNgFa0' could not be copied because the destination directory 'translations://' is not properly configured. This may be caused by a problem with file or directory permissions.
    Severity Error
    Hostname 127.0.0.1
    Operations

    Error3:

    Type locale
    Date Monday, May 15, 2023 - 23:18
    User Anonymous (not verified)
    Location http://default/
    Referrer
    Message Unable to download translation file https://ftp.drupal.org/files/translations/all/alogin/alogin-2.0.4.de.po.
    Severity Error
    Hostname 127.0.0.1
    Operations

    Error 4:
    Type php
    Date Monday, May 15, 2023 - 23:18
    User Anonymous (not verified)
    Location http://default/
    Referrer
    Message TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool given in fgets() (line 248 of /opt/bitnami/drupal/core/lib/Drupal/Component/Gettext/PoStreamReader.php)
    #0 /opt/bitnami/drupal/core/lib/Drupal/Component/Gettext/PoStreamReader.php(248): fgets()
    #1 /opt/bitnami/drupal/core/lib/Drupal/Component/Gettext/PoStreamReader.php(186): Drupal\Component\Gettext\PoStreamReader->readLine()
    #2 /opt/bitnami/drupal/core/lib/Drupal/Component/Gettext/PoStreamReader.php(217): Drupal\Component\Gettext\PoStreamReader->readItem()
    #3 /opt/bitnami/drupal/core/lib/Drupal/Component/Gettext/PoStreamReader.php(155): Drupal\Component\Gettext\PoStreamReader->readHeader()
    #4 /opt/bitnami/drupal/core/modules/locale/src/Gettext.php(56): Drupal\Component\Gettext\PoStreamReader->open()
    #5 /opt/bitnami/drupal/core/modules/locale/locale.bulk.inc(213): Drupal\locale\Gettext::fileToDatabase()
    #6 /opt/bitnami/drupal/core/modules/locale/locale.batch.inc(191): locale_translate_batch_import()
    #7 /opt/bitnami/drupal/vendor/drush/drush/includes/batch.inc(256): locale_translation_batch_fetch_import()
    #8 /opt/bitnami/drupal/vendor/drush/drush/includes/batch.inc(201): _drush_batch_worker()
    #9 /opt/bitnami/drupal/vendor/drush/drush/includes/batch.inc(95): _drush_batch_command()
    #10 /opt/bitnami/drupal/vendor/drush/drush/src/Drupal/Commands/core/BatchCommands.php(20): drush_batch_command()
    #11 [internal function]: Drush\Drupal\Commands\core\BatchCommands->process()
    #12 /opt/bitnami/drupal/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array()
    #13 /opt/bitnami/drupal/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
    #14 /opt/bitnami/drupal/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
    #15 /opt/bitnami/drupal/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(390): Consolidation\AnnotatedCommand\CommandProcessor->process()
    #16 /opt/bitnami/drupal/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
    #17 /opt/bitnami/drupal/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run()
    #18 /opt/bitnami/drupal/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand()
    #19 /opt/bitnami/drupal/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
    #20 /opt/bitnami/drupal/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run()
    #21 /opt/bitnami/drupal/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun()
    #22 /opt/bitnami/drupal/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run()
    #23 /opt/bitnami/drupal/vendor/drush/drush/drush(4): require('...')
    #24 /opt/bitnami/drupal/vendor/bin/drush(120): include('...')
    #25 {main}
    .
    Severity Error
    Hostname 127.0.0.1
    Operations

  • 🇵🇰Pakistan Ahmed.Raza

    Thank everybody for sharing the patch, I was using exactly same approach to render the QR previously, don't remember what made me change it to FormattableMarkup. Anyways I am merging the patch by @bharath-kondeti.

  • Status changed to Fixed over 1 year ago
  • 🇵🇰Pakistan Ahmed.Raza

    Please update to 2.0.7, this issue has been resolved in that release.

  • Status changed to Fixed over 1 year ago
Production build 0.71.5 2024