CWP Roundcube Bug

Started by AcemiPenguen, March 07, 2018, 12:24:24 PM

Previous topic - Next topic

AcemiPenguen

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

AcemiPenguen

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..

VPREATR

Has there been resolve to this, we're getting a 500 error on a brand new install of CWP7 Pro.  Please advise.

Netino

I think it's better to upgrade roundcube.
You can use the following HowTos:

https://www.mysterydata.com/upgrade-to-roundcube-version-mail-on-cwp-centos-webpanel/

https://panel.bullten.net/knowledgebase/31/Update-Roundcube-in-CWP.html

https://blog.bullten.com/centos-web-panel/upgrading-roundcube-webmail-in-cwp/

Their versions are a bit outdated, but I already use them and works downloading the latest stable version.
Don't forget to backup before.

Regards,
Netino

studio4host

in centos7 it's simple
sh /scripts/mail_roundcube_update
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.