PhantomVl / sccp_manager

SCCP Manager
35 stars 19 forks source link

Module installation issue: a non-numeric value encountered #73

Open DJUnreal opened 4 years ago

DJUnreal commented 4 years ago

When trying to install the sccp_manager module into a FreePBX system (freshly built, using the latest Raspbian, php 7.3, pre-packaged asterisk and chan_sccp compiled from source), I get partway through the installation either via the GUI or CLI (have tried both). The most recent attempt, using source pulled from this git repo and the install process at https://github.com/PhantomVl/sccp_manager/wiki throws the following error:

<li>Checking for Sccp_manager database tables..</li><li>Checking Asterisk Version : </li><li>Sccp model Compatible code : 433</li><li>Checking for previw version Sccp_manager..</li><li>Create Config BackUp</li><li>Create Config BackUp: /etc/asterisk/sccp_instal_backup20200503.zip</li><li>Move Old Config</li><li>Creating sccpuser table...</li><li>Creating buttons table...</li><li>Creating sccpsettings table...</li><li>Creating sccpdevmodel table...</li><li>Modify Database schema</li><li>Update table row :6</li><li>Modify table</li><li>Total modify count :1</li><li>Fill sccpdevmodel</li><li>Update sccpdevice</li><li>(Re)Create buttonconfig trigger</li><li>(Re)Create trigger Ok</li><li>(Re)Create sccpdeviceconfig view</li><li>Update DB Ver</li>
In install.php line 744:

  A non-numeric value encountered  

moduleadmin [-f|--force] [-d|--debug] [--edge] [--stable] [--color] [--skipchown] [-e|--autoenable] [--skipdisabled] [--snapshot SNAPSHOT] [--format FORMAT] [-R|--repo REPO] [-t|--tag TAG] [--skipbreakingcheck] [--sendemail] [--onlystdout] [--] [<args>]...

As an aside, it also throws warnings that:

!******! 'amportal' IS DEPRECIATED. PLEASE USE 'fwconsole' !******!
FORWARDING ALL COMMANDS TO 'fwconsole', OUTPUT WILL BE MODIFIED
CONTINUING TO RELY ON AMPORTAL WILL HAVE UNDESIRED CONSEQUENCES

Might want to update the instructions for that.

PhantomVl commented 4 years ago

Fix

DJUnreal commented 4 years ago

Thanks - the new version worked nicely for installing via the GUI