francodacosta / grav-plugin-autoseo

Grav AutoSEO is a plugin for Grav with which you can fill automatically the description and keywords metadata of a page using its content. It also adds Open Graph (used by facebook, google plus..) and Twitter Cards metadata.
http://www.gamecoderblog.com
MIT License
4 stars 4 forks source link

mb_ereg_replace(): mbregex search failure in php_mbereg_replace_exec(): retry-limit-in-match over #4

Open Stachelritter opened 1 month ago

Stachelritter commented 1 month ago

Hi, I don't know much about PHP, but I'm getting the above error in the Grav log and I suspect it's triggered by this plugin. The fix in c2890c9c7ef4a141e53e5db923accd8e667d5645 doesn't seem to work. The error occurs when a page with very few words (9) is called. If I add more words to the page, the error disappears.

Versions

Error message: mb_ereg_replace(): mbregex search failure in php_mbereg_replace_exec(): retry-limit-in-match over

Thanks

francodacosta commented 1 month ago

do you have a stack trace?

Stachelritter commented 4 weeks ago

No I didn't, sorry. grav.log and the web server logs only show the error message already described, no stacktrace. Where would I find the stacktrace?

francodacosta commented 4 weeks ago

@Stachelritter do you mind downloading https://github.com/francodacosta/grav-plugin-autoseo/blob/master/autoseo.php and replace it in yourplugin folder?

I did a quick search and it seems that the error is because too many matches/replacements where done, I've increased the limit

Stachelritter commented 3 weeks ago

I tried it, but unfortunately it didn't change anything.