Printable Version of Topic

Click here to view this topic in its original format

Web Design Seo Forum _ Joomla Scraper _ Cannot Redeclare Mb_ord

Posted by: cardin Jul 21 2019, 10:13 AM

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

Posted by: Web Design Seo Jul 22 2019, 07:56 AM

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) . ';');
}
}

Posted by: cardin Jul 22 2019, 10:12 AM

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

Posted by: Web Design Seo Jul 22 2019, 10:45 AM

Warning not stopping php. Disable warning notifications and start using extension.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)