Help - Search - Members - Calendar
Full Version: Cannot Redeclare Mb_ord
Web Design Seo Forum > 3D Web Design English Forum > Joomla Scraper
cardin
I am using Joomla Scraper 1.9.9.1 but it is now giving the following error message.

Fatal error: Cannot redeclare mb_ord() in /home/xxx/administrator/components/com_aggregator/controller.php on line 200

Developers are not responding. Someone plz help

Thanks
Web Design Seo
Change function mb_ord in this way:

Код
if (!function_exists('mb_ord'))   {
function mb_ord($string)
{
    if (extension_loaded('mbstring') === true)
    {
        mb_language('Neutral');
        mb_internal_encoding('UTF-8');
        mb_detect_order(array('UTF-8', 'ISO-8859-15', 'ISO-8859-1', 'ASCII'));

        $result = unpack('N', mb_convert_encoding($string, 'UCS-4BE', 'UTF-8'));

        if (is_array($result) === true)
        {
                return $result[1];
        }
    }

    return ord($string);
}
}


And function mb_chr also:

Код
if (!function_exists('mb_chr'))   {
function mb_chr($string)
{
    return mb_html_entity_decode('&#' . intval($string) . ';');
}
}
cardin
Thanks. I did the changes. Now I am getting the following Warning..

"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/xxxxxxxxxxxxxxxxxxxxxxxx/administrator/components/com_aggregator/controller.php on line 2816
Web Design Seo
Warning not stopping php. Disable warning notifications and start using extension.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.

Web Analytics