PhantomVl / sccp_manager

SCCP Manager
35 stars 19 forks source link

DB error #78

Closed beom80 closed 4 years ago

beom80 commented 4 years ago

Hi,

I have installed this on a Raspberry Pi4B 4GB using Raspbx however when I try to use it, I keep getting the same or similar errors. I also installed chan_sccp from APT.

"Cannot use object of type DB_Error as Array File:/var/www/html/admin/sccp_manager/Sccp_manager.class.php:977"

I am guessing that it is related to the realtime database. I am using MySQL/MariaDB and have imported the mysql-v5_enum.sql in.

I have tried setting a new password for the user 'asterisk' and adding the 'asterisk' user to the asterisk database and changing the password in the config files.

Regards, Ben.

PhantomVl commented 4 years ago

Hi ! You can imported the mysql-v5_enum.sql before Install Sccp Manager.

beom80 commented 4 years ago

Hi,

I did import the mysql-v5_enum before installing Sccp Manager.

I also tried removing and reinstalling Sccp Manager as well as a fresh system install and going through all the steps in order again.

PhantomVl commented 4 years ago

Ок. Go to the chat https://gitter.im/sccp_manager/community. I am available to chat on business days from 14-17 UTC.

beom80 commented 4 years ago

Hi,

I found that root cause of the problem, I forgot that when I tried installing the module, it gave me an error in the install.php. I commented out a portion to try and get around it but I obviously commented out something that was needed. I changed what I commented out and the script installed and doesn't give the error anymore.

I have attached an image showing the script error.

Screen Shot 2020-08-22 at 6 35 18 pm

The only problem I am having now is that I get 'registration rejected' on the phones and am not sure if it is related to the commented out section. Screen Shot 2020-08-25 at 3 14 29 pm

PhantomVl commented 4 years ago

Hi ! The ZipArchive class is used by other asterisk modules as well. You need to add it to the system. One of the following commands will help you do this: sudo apt-get install php-zip sudo phpenmod zip sudo apt-get install php7.0-zip

and restart Apach : sudo service apache2 restart

beom80 commented 4 years ago

Hi,

Thank you for all your help. That was indeed the problem.