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'])) {
after a failed freepbx 13 upgrade… AMPORTAL will not run. Below is the returned msg
# 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.
Ok. Can you please stop opening multiple tickets and multiple threads with the same information. You are only going to hurt yourself as everyone gets lost trying to figure out what’s going on with your system
./fwconsole
Whoops\Exception\ErrorException: trim() expects parameter 1 to be string, array given in file /var/www/html/admin/libraries/modulefunctions.class.php on line 2128
Stack trace:
There is a module on your system (NOTE: Nothing from Sangoma, a third party module). That has multiple < description > tags in it. This breaks all sorts of things of course (and is not to spec)
You’ll have to find that module. Look in /var/www/html/admin/modules/*/module.xml
On the status page was a notification for the WGET module in the advance page setting.
Forced MODULEADMINWGET to true
The system detected a problem trying to access external server data and changed internal setting MODULEADMINWGET (Use wget For Module Admin) to true, see the tooltip in Advanced Settings for more details.
After hitting the submit button and Apply changes… now getting the following errors
Under the Applications/Extensions Menu… I can click on Extensions… but there are no extensions that show up… There is an error log on the right hand side.
Whoops\Exception\ErrorException
fwrite(): 53 is not a valid stream resource
File:/var/www/html/admin/libraries/php-asmanager.php:237
If FreePBX cant talk to Asterisk then you will have more problems than just this moving forward. I know you want help here but I can’t do much from my end at this time.