Author Topic: CWP Roundcube Bug  (Read 765 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CWP Roundcube Bug
« on: March 07, 2018, 12:24:24 PM »
when the login roundcube, 500 server error

roundcube logs
thrown in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/bootstrap.php on line 405
[07-Mar-2018 10:40:56 UTC] PHP Fatal error:  Uncaught Error: Class 'Net_IDNA2' not found in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/bootstrap.php:405

boostrap.php

if (!function_exists('idn_to_ascii'))
{
    function idn_to_ascii($domain)
    {
        static $idn, $loaded;

        if (!$loaded) {
            $idn    = new Net_IDNA2();
            $loaded = true;
        }

        if ($idn && $domain && preg_match('/[^\x20-\x7E]/', $domain)) {
            try {
                $domain = $idn->encode($domain);
            }
            catch (Exception $e) {
            }
        }

        return $domain;
    }
}

bold line is problem line. no have this function on bootstrap.php

Offline
*
Re: CWP Roundcube Bug
« Reply #1 on: March 12, 2018, 10:43:43 AM »
If someone install CWP, need to first upgrade Roundcube.. Because, all releases (6 and 7) have bug in roundcube.

I solved that problem. Downloaded 1.3.4 version of roundcube and changed all files and installed again and fixed..