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

embed Shortcodes break Text::Summary() method. #2929

Closed
quamsta opened this issue Mar 6, 2014 · 2 comments
Closed

embed Shortcodes break Text::Summary() method. #2929

quamsta opened this issue Mar 6, 2014 · 2 comments

Comments

@quamsta
Copy link
Contributor

quamsta commented Mar 6, 2014

We just found that when users were searching for a page on one of our sites that the search results would break when we were using
$Content.Summary(30) in the Page_results.ss template. We were getting this error:

Fatal error: Call to a member function appendChild() on a non-object in /xx/framework/parsers/ShortcodeParser.php on line 124

We're pretty sure this was being caused by at least one correctly formed [embed] shortcode in the content of the results returned.

@tractorcow
Copy link
Contributor

Will try to address in #5653

tractorcow pushed a commit to tractorcow/silverstripe-framework that referenced this issue Jun 15, 2016
tractorcow pushed a commit to tractorcow/silverstripe-framework that referenced this issue Jun 17, 2016
tractorcow pushed a commit to tractorcow/silverstripe-framework that referenced this issue Jun 17, 2016
tractorcow pushed a commit to tractorcow/silverstripe-framework that referenced this issue Jun 17, 2016
tractorcow pushed a commit to tractorcow/silverstripe-framework that referenced this issue Jun 17, 2016
tractorcow pushed a commit to tractorcow/silverstripe-framework that referenced this issue Jul 12, 2016
@tractorcow
Copy link
Contributor

Fixed with #5653 :D

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

No branches or pull requests

3 participants