Restore to Warm standby fail

I have installed a new server to act as a warm standby and have followed the wiki accordingly.
The backup / restore to the warm server ran through ok but no web interface and cannot start or use any amportal commands.

The web interface shows this error:

FATAL ERROR

unknown type: [textarea]

Trace Back

/var/www/html/admin/libraries/freepbx_conf.class.php:1075 die_freepbx()
[0]: unknown type: [textarea]

/var/www/html/admin/libraries/freepbx_conf.class.php:228 freepbx_conf->_prepare_conf_value()
[0]:
[1]: textarea
[2]: 1
[3]:

/var/www/html/admin/libraries/freepbx_conf.class.php:178 freepbx_conf->__construct()

/var/www/html/admin/bootstrap.php:88 freepbx_conf::create()

/etc/freepbx.conf:9 require_once()
[0]: /var/www/html/admin/bootstrap.php

/var/www/html/admin/config.php:99 include_once()
[0]: /etc/freepbx.conf

The cli shows:

[[email protected] ~]# amportal

Fetching FreePBX settings with gen_amp_conf.php…
/usr/local/sbin/amportal: line 49: [FATAL]: command not found

/var/lib/asterisk/bin/freepbx_engine: line 98: [FATAL]: command not found
**** WARNING: ERROR IN CONFIGURATION ****
astrundir in ‘/etc/asterisk’ is set to but the directory
does not exists. Attempting to create it with: 'mkdir -p ’

mkdir: missing operand
Try `mkdir --help’ for more information.
**** ERROR: COULD NOT CREATE ****
Attempt to execute 'mkdir -p ’ failed with an exit code of 1
You must create this directory and the try again.
[[email protected] ~]#

The conf files all exist and I’ve reapplied the owner permissions (chown).
I’ve even removed the conf files and tried to use install_amp

Installing new FreePBX files…OK (2650 files copied, 0 skipped)
amportal…no fpbx…freepbx_engine…freepbx_setting…gen_amp_conf.php…done
/var/lib/asterisk/bin/freepbx_engine: line 98: [FATAL]: command not found
mkdir: missing operand
Try mkdir --help' for more information. apply username/password changes to conf files: running apply_conf.sh from freepbx_settings /usr/src/freepbx-2.11.0.38/apply_conf.sh: line 51: [FATAL]: command not found sed: can't read /manager.conf: No such file or directory sed: can't read /manager.conf: No such file or directory Bootstrapping Configuration Settings Updating configuration... /manager.conf user: [] secret: [] Done done with apply_conf.sh creating missing #include files..OK OK Setting permissions on files../usr/local/sbin/amportal: line 49: [FATAL]: command not found /var/lib/asterisk/bin/freepbx_engine: line 98: [FATAL]: command not found mkdir: missing operand Trymkdir --help’ for more information.
OK
Checking for upgrades…No further upgrades necessary
Creating or updating freepbx_conf settings…[FATAL] unknown type: [textarea]

Trace Back:

/var/www/html/admin/libraries/freepbx_conf.class.php:1075 die_freepbx()
[0]: unknown type: [textarea]

/var/www/html/admin/libraries/freepbx_conf.class.php:228 freepbx_conf->_prepare_conf_value()
[0]:
[1]: textarea
[2]: 1
[3]:

/var/www/html/admin/libraries/freepbx_conf.class.php:178 freepbx_conf->__construct()

/usr/src/freepbx-2.11.0.38/libfreepbx.install.php:453 freepbx_conf::create()

/usr/src/freepbx-2.11.0.38/install_amp:1532 freepbx_settings_init()
[0]: 1

but still no joy.
About to wipe the warm backup box but would like to find out what has happened.
Any ideas on how to troubleshoot this further?