Error while updating FreePBX 13 [SOLVED]

I updated a FreePBX 13 following the usual procedure but something went wrong

Now asterisk does not work I tried restarting but error:

[Root @ auto-q ~] # amportal restart

Please wait …

Amportal is depreciated. Please use fwconsole !!!
Forwarding all commands to ‘fwconsole’
Asterisk not currently running
Running FreePBX shutdown …

RestApps Server is not running
UCP Node is not running

[Exception]
Unable to locate the FreePBX BMO Class’ Userman’A required module could be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install userman 2) fwconsole ma enable userman

Restart [-i | --immediate] [args1] … [argsN]

Stopping fail2ban: [OK]
Ensuring logfiles are presentStarting in fail2: [OK]

Error while updating FreePBX 13

I updated a FreePBX 13 following the usual procedure but something went wrong

Now asterisk does not work I tried restarting but error:

[Root @ auto-q ~] # amportal restart

Please wait …

Amportal is depreciated. Please use fwconsole !!!
Forwarding all commands to ‘fwconsole’
Asterisk not currently running
Running FreePBX shutdown …

RestApps Server is not running
UCP Node is not running

[Exception]
Unable to locate the FreePBX BMO Class’ Userman’A required module could be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install userman 2) fwconsole ma enable userman

Restart [-i | --immediate] [args1] … [argsN]

Stopping fail2ban: [OK]
Ensuring logfiles are presentStarting in fail2: [OK]

If I go to the gui I have other errors, I attach screen capture

Whoops \ Exception \ ErrorException (E_ERROR)
HELP
Call to a member function getUserByUsername () on a non-object
/var/www/html/admin/modules/userman/Userman.class.php

  • @param string $ username The User Manager Username
  • @return bool
  • /
    Public function getUserByUsername ($ username, $ directory = null) {
    If (! Empty ($ directory)) {
    $ User = $ this-> directories [$ directory] → getUserByUsername ($ username);
    } Else {
    $ User = $ this-> globalDirectory-> getUserByUsername ($ username);
    }

Return $ user;

As the error states install userman and also as the prompt states stop using amportal

It’s a bit embarrassing
This all happened while a colleague updated the PBX without permission and did not know what he was doing …

So what do you suggest to do?

Following an online post that spoke of my problem I ran "fwconsole but upgradeall"
But having a small disk filled as I can remove and modules now?

I have uninstalled some modules with the “fwconsole but uninstall” command and now the disk space is available but the problem persists

Call to a member function getUserByUsername() on a non-object

I can tell you this if you happen to have problems with the modules during the upgrades … or if a colleague makes you a bad shot … :slight_smile: the best thing is to go to the console and with “fwconsole” get rid of and Reinstall what works badly but above all look carefully at logs and fix problems

I took about 3 hours but I settled down, which tired!