"Function get_magic_quotes_gpc() is deprecated" when installing freepbx on gentoo

(Dmitriy Q) #1

Installing FreePBX on Gentoo

Linux newpbx 5.4.97-gentoo-x86_64 #1 SMP Mon Mar 22 11:38:24 +05 2021 x86_64 Intel(R) Atom(TM) CPU D2550 @ 1.86GHz GenuineIntel GNU/Linux


# fwconsole reload
Whoops\Exception\ErrorException: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in file /var/www/html/admin/modules/conferences/functions.inc.php on line 131
Stack trace:
  1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/conferences/functions.inc.php:131
  2. Whoops\Run->handleError() /var/www/html/admin/bootstrap.php:362
  3. require_once() /var/www/html/admin/bootstrap.php:362
  4. require_once() /etc/freepbx.conf:9
  5. include_once() /var/lib/asterisk/bin/fwconsole:12

Asterisk was installed without problems and works, but with the installation of FreePBX 14 problems. Maybe you should choose 13 or 15 - there will be no such problem? Or build apache2.4.46 or php7.4.15 with other flags?

dev-lang/php apache2 cgi fpm acl bzip2 cli ctype curl embed filter ftp iodbc -libedit libressl mysql mysqli odbc pcntl pdo readline simplexml sockets spell sqlite ssl -threads tidy tokenizer truetype unicode webp xml xmlreader xmlwriter zip zlib jit gd posix iconv sysvipc mhash xpm imap


I seem to remember that php 7.4 apparently breaks FreePBX on some OS’s. go back to 7.3

(Dmitriy Q) #3

The web interface loaded - it helped, thank you.
Now a slightly different problem:

# /var/lib/asterisk/bin/retrieve_conf
Unable to continue. "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/html/admin/libraries/less/Less.php on line 9468
#0 /var/www/html/admin/libraries/BMO/Less.class.php(13): Whoops\Run->handleError(2, '"continue" targ...', '/var/www/html/a...', 9468, Array)
#1 /var/www/html/admin/libraries/BMO/Less.class.php(13): include()
#2 /var/www/html/admin/libraries/BMO/Self_Helper.class.php(168): include('/var/www/html/a...')
#3 /var/www/html/admin/libraries/BMO/Self_Helper.class.php(106): FreePBX\Self_Helper->loadObject('Less')
#4 /var/www/html/admin/libraries/BMO/Self_Helper.class.php(37): FreePBX\Self_Helper->autoLoad('Less')
#5 /var/lib/asterisk/bin/retrieve_conf(172): FreePBX\Self_Helper->__get('Less')
#6 /var/lib/asterisk/bin/retrieve_conf(550): connectdirs->generate_less('builtin')
#7 {main}


You probably need a newer FreePBX where that has been fixed.

git clone -b release/15.0 --single-branch https://github.com/freepbx/framework.git freepbx

(Dmitriy Q) #5
Installing framework...
Updating tables admin, ampusers, cronmanager, featurecodes, freepbx_log, freepbx_settings, globals, module_xml, modules, notifications, cron_jobs...
In DBALException.php line 131:
  An exception occurred while executing 'SELECT COLUMN_NAME AS Field, COLUMN_TYPE AS Type, IS_NULLABLE AS `Null`, COLUMN_KEY AS `Key`, COLUMN_DEFAULT AS `Default`, EXTRA AS Extra, COLUMN_COMMENT AS Commen  
  t, CHARACTER_SET_NAME AS CharacterSet, COLLATION_NAME AS Collation FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'asterisk' AND TABLE_NAME = 'admin'':                                               
  SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql-temptable-a88-10-1.MAI' (Errcode: 13 "Permission denied")                                                                           

In Database.class.php line 247:
  SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql-temptable-a88-10-1.MAI' (Errcode: 13 "Permission denied")  

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

In Process.php line 239:
  The command "/usr/sbin/fwconsole ma install framework" failed.  
  Exit Code: 1(General error)                                     
  Working directory: /usr/src/freepbx-15/freepbx                  
  Error Output:                                                   

install [--dbengine DBENGINE] [--dbname DBNAME] [--dbhost DBHOST] [--dbport DBPORT] [--cdrdbname CDRDBNAME] [--dbuser DBUSER] [--dbpass DBPASS] [--user USER] [--group GROUP] [--dev-links] [--skip-install] [--webroot WEBROOT] [--astetcdir ASTETCDIR] [--astmoddir ASTMODDIR] [--astvarlibdir ASTVARLIBDIR] [--astagidir ASTAGIDIR] [--astspooldir ASTSPOOLDIR] [--astrundir ASTRUNDIR] [--astlogdir ASTLOGDIR] [--ampbin AMPBIN] [--ampsbin AMPSBIN] [--ampcgibin AMPCGIBIN] [--ampplayback AMPPLAYBACK] [-r|--rootdb] [-f|--force]

(Dmitriy Q) #6

After dancing with the tambourine, freepbx 15 was established. It’s about the permissions on the directory, including /tmp, and the running mysql and asterisk services.

(system) closed #7

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