CPanel to DirectAdmin Roundcube Contacts

sparek

Verified User
Joined
Jun 27, 2019
Messages
543
Is anyone else having issues bringing Roundcube contact information from a cPanel server to a DirectAdmin server using the cpanel_to_da.sh?

It actually looks like this is more of an issue with the DirectAdmin restore function than the cpanel_to_da.sh script. It would seem that the backup/example.tld/email/data/roundcube.xml is being created, but the restore process is just not doing what it should to create the necessary information in Roundcube.

Anyone else having this issue, or is it just me?

Edit 1:
An error being reported in /var/log/directadmin/errortaskq.log says:

RoundCube Restore Error (255):
Fatal error: Uncaught Error: Undefined constant "RCMAIL_VERSION" in /var/www/html/roundcubemail-1.6.11-o79H/config/config.inc.php:24
Stack trace:
#0 /usr/local/directadmin/scripts/restore_roundcube.php(117): include_once()
#1 {main}
thrown in /var/www/html/roundcubemail-1.6.11-o79H/config/config.inc.php on line 24


Edit 2:
Seems the /usr/local/directadmin/scripts/restore_roundcube.php script is missing a:

define('RCMAIL_VERSION', '1.6.11');

Adding this line to /usr/local/directadmin/scripts/restore_roundcube.php seems to fix the issue - but I suspect this needs to be updated every time Roundcube is updated. Perhaps /usr/local/directadmin/scripts/restore_roundcube.php needs to include /var/www/html/roundcube/program/include/iniset.php - if it exists? Although that sets you down a path of including includes that the parent include needs to include but can't include because the relative path is different.

Looks like you can just put a

define('RCMAIL_VERSION', 'DOESNTMATTER');

at the top of /usr/local/directadmin/scripts/restore_roundcube.php and get it to work.
 
Last edited:
Back
Top