Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: AcemiPenguen on March 07, 2018, 12:24:24 PM

Title: CWP Roundcube Bug
Post by: AcemiPenguen 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
Title: Re: CWP Roundcube Bug
Post by: AcemiPenguen 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..
Title: Re: CWP Roundcube Bug
Post by: VPREATR on January 26, 2019, 12:12:41 PM
Has there been resolve to this, we're getting a 500 error on a brand new install of CWP7 Pro.  Please advise.
Title: Re: CWP Roundcube Bug
Post by: Netino on January 27, 2019, 01:52:49 AM
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
Title: Re: CWP Roundcube Bug
Post by: studio4host on February 14, 2019, 10:53:25 PM
in centos7 it's simple
Code: [Select]
sh /scripts/mail_roundcube_update