FreePBX cannot execute fwconsole

Hello:
My FreePBX has the following problems.
Asterisk could not connect and an error occurred executing fwconsole restart.


error message:[root@freepbx ~]# fwconsole install
PHP Fatal error: Cannot redeclare class FreePBX\Console\Command\RemoteUnlock in /var/www/html/admin/libraries/Console/RemoteUnlock.class.php on line 23
Whoops\Exception\ErrorException: Cannot redeclare class FreePBX\Console\Command\RemoteUnlock in file /var/www/html/admin/libraries/Console/RemoteUnlock.class.php on line 23
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/admin/libraries/Console/RemoteUnlock.class.php:23
    PHP Fatal error: Cannot redeclare class FreePBX\Console\Command\RemoteUnlock in /var/www/html/admin/libraries/Console/RemoteUnlock.class.php on line 23
    How can I solve this problem?
    Thanks!

Check the folder:

/var/www/html/admin/libraries/Console

and note that you have two copies of RemoteUnlock.class.php with slightly different spelling. Remove one. There may be other duplicated files here as well.

1 Like

Hello:
With your help, I have solved this problem. Thank you very much.
But I have the following problems
Zulu needs @FQDN to log in. How should this be set up?
I tried to log in with FreePBX’s IP address, but there were the following problems.



How can I solve this problem?
Thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.