grav-plugin-shortcode-core icon indicating copy to clipboard operation
grav-plugin-shortcode-core copied to clipboard

Shortcode Core v5.2.0 causes SimpleSearch to crash

Open petira opened this issue 1 year ago • 2 comments

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()));

petira avatar Nov 05 '24 16:11 petira

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

rhukster avatar Nov 05 '24 17:11 rhukster

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

petira avatar Nov 05 '24 17:11 petira