Created on 1 August 2022, almost 2 years ago
Updated 12 April 2023, about 1 year ago

Enabled the module via drush went to configure it and received the following:

TypeError: Drupal\Component\Utility\Html::escape(): Argument #1 ($text) must be of type string, null given, called in /home/sitename/public_html/modules/contrib/x_frame_options/src/EventSubscriber/XframeSubscriber.php on line 43 in Drupal\Component\Utility\Html::escape() (line 423 of core/lib/Drupal/Component/Utility/Html.php).

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Christopher Riley

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada efrainh

    Hi Christopher Riley, thanks for reporting this issue. I'm on Dupal 9.5.2, I just upgraded my PHP from 8.0 to 8.1, reinstalled the module and went to configure it, but I couldn't reproduce that error.
    Line 43 has this: $allow_from_uri = Html::escape($this->config->get('x_frame_options_configuration.allow-from-uri', ''));
    So, if the value is null, then the escape function would receive an empty string.
    Can you please provide more information?

  • Status changed to Closed: cannot reproduce about 1 year ago
Production build 0.69.0 2024