Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

History Preview - unterminated entity reference stage=Stage #520

Open
rafaeldsousa opened this issue Oct 11, 2022 · 0 comments
Open

History Preview - unterminated entity reference stage=Stage #520

rafaeldsousa opened this issue Oct 11, 2022 · 0 comments
Labels

Comments

@rafaeldsousa
Copy link

The following is triggering a warning when trying to parse a not found file and the error page is loaded instead. This seems to be caused because the returned Link is not parsed.

Steps to reproduce

  • On a page with an HTML editor field
  • Add a link to an existing file
  • Save/publish
  • Delete file
  • Remove the file link from the page
  • Save/publish
  • Go to the history tab
  • Look through your versions and find the one where you had the link to the file that was deleted
  • The preview should load with the following error
SilverStripe\View\Parsers\ShortcodeParser::replaceAttributeTagsWithContent(): unterminated entity reference stage=Stage
GET /YOUR_PAGE/?stage=Stage&archiveDate=2021-08-18%2019%3A58%3A11
Line 478 in /Users/.../vendor/silverstripe/framework/src/View/Parsers/ShortcodeParser.php

Note that the error is only reported all the way back up at ShortcodeParser - replaceAttributeTagsWithContent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants