Problem/Motivation

Recently created articles not appearing in search results.

Steps to reproduce

1. Using iFrame extension, create content type with an iFrame field.
2. Specify a URL that is considered invalid by the cron process. In my case, it was file://parsbrown2/c$/inetpub/wwwroot/BMS2021a.html, which I was able to view in a browser but for whatever reason, something in the cron job didn't like it. This file name appeared in errors in the Recent Log Messages report. Here's the full error message.

InvalidArgumentException: The URI 'file://parsbrown2/c$/inetpub/wwwroot/BMS2021a.html' is invalid. You must use a valid URI scheme. Use base: for a path, e.g., to a Drupal file that needs the base path. Do not use this for internal paths controlled by Drupal. in Drupal\Core\Utility\UnroutedUrlAssembler->assemble() (line 65 of /opt/rh/httpd24/root/var/www/html/vistaprd/core/lib/Drupal/Core/Utility/UnroutedUrlAssembler.php).

3. Run cron from the administration page. Check the Recent Log Messages report for an error.
4. Create a new article with a unique phrase to search for.
5. Re-run cron.
6. Search for the unique phrase. In my case, the new article did not appear in the search results.

Proposed resolution

When I reviewed the report, the above URL appeared in every error listed. I tracked down the article and deleted it. I re-ran cron, searched for the unique phrase in my new article. The article now appeared in the results.

Apparently, indexing stopped when the error occurred. I believe the article with the error should have been skipped and indexing should have continued.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

parkhillrecords created an issue. See original summary.

parkhillrecords’s picture

Issue summary: View changes
cilefen’s picture

larowlan’s picture

Category: Bug report » Support request
spokje’s picture

And are you _actually_ on Drupal Core version 8.5.something?

Version: 8.5.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev
cilefen’s picture

Status: Active » Closed (cannot reproduce)