Hi, when I go to "admin/reports/config-inspector" page I receive a 500 error page. In my web error log I see this:

my_drupal | NOTICE: PHP message: Recoverable fatal error: Object of class Drupal\Core\Link could not be converted to string in /var/www/html/core/lib/Drupal/Component/Utility/Xss.php on line 67 #0 /var/www/html/core/includes/bootstrap.inc(587): _drupal_error_handler_real(4096, 'Object of class...', '/var/www/html/c...', 67, Array)
my_drupal | #1 [internal function]: _drupal_error_handler(4096, 'Object of class...', '/var/www/html/c...', 67, Array)
my_drupal | #2 /var/www/html/core/lib/Drupal/Component/Utility/Xss.php(67): str_replace('\x00', '', Object(Drupal\Core\Link))
my_drupal | #3 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(753): Drupal\Component\Utility\Xss::filter(Object(Drupal\Core\Link), Array)
my_drupal | #4 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(384): Drupal\Core\Render\Renderer->ensureMarkupIsSafe(Array)
my_drupal | #5 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false)
my_drupal | #6 /var/www/html/core/lib/Drupal/Core/Template/TwigExtension.php(501): Drupal\Core\Render\Renderer->render(Array)
my_drupal | #7 /var/www/html/vendor/twig/twig/src/Environment.php(497) : eval()'d code(195): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
my_drupal | #8 /var/www/html/vendor/twig/twig/src/Template.php(427): __TwigTemplate_066f953c483c6535a0daf359ff549bb6b892ef0edda470e36db70377941501e9->doDisplay(Array, Array)

I have this problem only on this url.
This site is a new site. No new content.

Thanks.

M.

CommentFileSizeAuthor
#5 3084666-4.patch1.4 KBvuil
#3 3084666-3.patch1.06 KBidebr
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ziobudda created an issue. See original summary.

FatherShawn’s picture

I have this same issue with 8.x-1.0 in core 8.7.7 and PHP 7.2.

idebr’s picture

Version: 8.x-1.0-beta2 » 8.x-1.x-dev
Status: Active » Needs review
Issue tags: -Object of class Drupal\Core\Link could not be converted to string
FileSize
1.06 KB

#2684383: Allow download of configuration files introduced an invalid Link to the Config inspector report page. Attached patch fixes the Link generation, so the page renders properly.

vuil’s picture

Status: Needs review » Needs work

Please remove the non-used use statement.

vuil’s picture

Status: Needs work » Needs review
FileSize
1.4 KB

  • ilchovuchkov committed 957f22a on 8.x-1.x
    Issue #3084666 by idebr, ilchovuchkov: Recoverable fatal error: Object...
vuil’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

imclean’s picture

Thanks, I'm now using the dev version. I think this issue alone would be worth a release.

Grimreaper’s picture

Hello,

I just got this bug too.

+1 for a new release.