Closed pmoreno-rodriguez closed 3 years ago
Thanks for the bug report!
The str_contains
function is only available since PHP 8.
Grav however requires PHP 7.1.3 or higher. So you're probably on PHP 7; and that's the reason for the error.
I will fix this shortly with a PHP 7 compatible solution and you should be good to go. 🙂
Fixed with 7f963693314b87177cafae62b39fae2fb2c58a06 An update should soon be available via the admin panel.
Please verify the fix and close this issue, if it worked.
It's working fine now. Great solution. Thanks for your help.
I'm tryin your plugin and it shows the following error:
Call to undefined function Grav\Plugin\Shortcodes\str_contains(), in line 45
If I comment this code, it works fine:
What's wrong?