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

Shortcode Core v5.2.0 causes SimpleSearch to crash #129

Open
petira opened this issue Nov 5, 2024 · 2 comments
Open

Shortcode Core v5.2.0 causes SimpleSearch to crash #129

petira opened this issue Nov 5, 2024 · 2 comments
Assignees

Comments

@petira
Copy link

petira commented Nov 5, 2024

Hi!

After updating to Shortcode Core v5.2.0, SimpleSearch Plugin stopped working.

RuntimeException
PCRE failure `4`.

/user/plugins/shortcode-core/vendor/thunderer/shortcode/src/Parser/RegularParser.php

...
    private function tokenize($text)
    {
        $count = preg_match_all($this->lexerRegex, $text, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);
        if(false === $count || preg_last_error() !== PREG_NO_ERROR) {
            throw new \RuntimeException(sprintf('PCRE failure `%s`.', preg_last_error()));
        }
...

Specifically this line:

throw new \RuntimeException(sprintf('PCRE failure `%s`.', preg_last_error()));
@rhukster
Copy link
Member

rhukster commented Nov 5, 2024

pretty strange.. fine with previous version of shortcode core?

@rhukster rhukster self-assigned this Nov 5, 2024
@petira
Copy link
Author

petira commented Nov 5, 2024

I believe so, I updated everything at once when Grav v1.7.48 came out. Search was working before.

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

No branches or pull requests

2 participants