also, disabling FreePBX modules auto updates is a bit tricky, on the enterprise we do it by overwriting the modules repository in the database. Remember that you are disabling also FreePBX security updates
mysql asterisk -e 'UPDATE `module_xml` SET `data` = "http://nethserver.org" WHERE id = "module_repo"'
mysql asterisk -e 'UPDATE `freepbx_settings` SET `value` = "http://nethserver.org" WHERE keyword = "MODULE_REPO"'
When you want to manually update modules, launch
# enable FreePBX mirrors to update modules
mysql asterisk -e 'UPDATE `module_xml` SET `data` = "http://mirror1.freepbx.org,http://mirror2.freepbx.org" WHERE id = "module_repo"'
mysql asterisk -e 'UPDATE `freepbx_settings` SET `value` = "http://mirror1.freepbx.org,http://mirror2.freepbx.org" WHERE keyword = "MODULE_REPO"'
# update all modules
scl enable rh-php56 -- fwconsole ma upgradeall
this is the error i get after doing it… minutes later
PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php on line 90
Whoops\Exception\ErrorException: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in file /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php on line 90
Stack trace:
Another workaround you can do is this:
edit /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php
and change line 90
- @trigger_error(sprintf('Passing a "%s" instance into the "%s" as a second argument is deprecated since Symfony 3.4 and will be removed in 4.0. Inject a "%s" implementation instead.', MessageSelector::class, __METHOD__, MessageFormatterInterface::class), E_USER_DEPRECATED);
+ @trigger_error(sprintf('Passing a "%s" instance into the "%s" as a second argument is deprecated since Symfony 3.4 and will be removed in 4.0. Inject a "%s" implementation instead.', 'MessageSelector::class', __METHOD__, 'MessageFormatterInterface::class'), E_USER_DEPRECATED);