Was running upgrade from 12 to 13 and upgrade it failed.
The upgrade seems to have stopped with an error. The log on the screen says:
Submitting data to servers...Done
Running checks...Passed
Stage 1
Bumping FreePBX to version 13...Done
Checking online servers...Done
Downloading 13 Framework......Done
Installing 13 Framework...Done
Stage 2
ERROR: See Console
Running Elastix
Asterisk 11.7.0
Do not have fwconsole
amportal returns the following
# amportal
Fetching FreePBX settings with gen_amp_conf.php..
/usr/local/sbin/amportal: line 52: Whoops\Exception\ErrorException:: command not found
/var/lib/asterisk/bin/freepbx_engine: line 100: Whoops\Exception\ErrorException:: 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.
Running the GUI returns the following:
Whoops \ Exception \ ErrorException (E_WARNING)
HELP
trim() expects parameter 1 to be string, array given
/var/www/html/admin/libraries/modulefunctions.class.php
$parser = new xml2Array($data);
$xmlarray = $parser->data;
if (isset($xmlarray['module'])) {
// add a couple fields first
$xmlarray['module']['name'] = str_replace("\n&\n","&",$xmlarray['module']['name']);
$xmlarray['module']['displayname'] = $xmlarray['module']['name'];
if (isset($xmlarray['module']['description'])) {
$xmlarray['module']['description'] = trim(str_replace("\n","",$xmlarray['module']['description']));
}
if (isset($xmlarray['module']['methods'])) {