Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Error with plugin AutoSEO

Started by marc 7 years ago · 1 replies · 1071 views
7 years ago

hello, here is an error I have when I use the Autoseo plugin. do you have any idea to fix this? I have this error when using the "timer" skeleton. thank you

Whoops \ Exception \ ErrorException (E_WARNING)
mb_ereg_replace(): mbregex search failure in php_mbereg_replace_exec(): retry-limit-in-match over

plugins/autoseo/autoseo.php

PHP
            if (is_callable ( $replacement)) {
                $text = preg_replace_callback ($regex, $replacement, $text);
            } else {
                $text = preg_replace ($regex, $replacement, $text);
            }
        }
        $text=str_replace(".\n", '.', $text);
        $text=str_replace("\n", '.', $text);
        $text=str_replace('"', '', $text);

        return htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
    }

    private function cleanText ($content, $config) {
        $length = $config['description.length'];       
        if ($length <=1 ) $length=20; 

        $content = $this->cleanMarkdown($content);
        // truncate the content to the number of words set in config
        **$contentSmall = mb_ereg_replace('((\w+\W*){'.$length.'}(\w+))(.*)', '${1}', $content); // beware if content is less than length words, it will be nulled**    
        if ($contentSmall == '' ) $contentSmall = $content;

        return $contentSmall;
    }
7 years ago

@marc63400, The best place to ask these kind of questions is at the source: The repo of the developer...

Unfortunately, the repo states that all development on AutoSEO is on hold and the issue will therefor probably not be solved:

Unhappily, due to lack of Time, all development on this plugin are on hold.If someone wants to restart the development, He will be welcome...

You might want to look for another seo plugin.

last edited 01/10/20 by pamtbaau

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 17 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago