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

Error with plugin AutoSEO

Started by marc 7 years ago · 1 replies · 898 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 jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago