Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Error with plugin AutoSEO

Started by marc 6 years ago · 1 replies · 802 views
6 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;
    }
6 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 Jerry Hunt, 4 days ago
2 82 10 hours ago
General · by pamtbaau, 16 hours ago
1 53 15 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 347 5 days ago
General · by Duc , 5 days ago
3 41 5 days ago