FreePBX - there was an error - just minutes after fresh install

where do you get this error?

take a look at this issue: nethserver-freepbx: use php 5.6 to execute Asterisk AGI · Issue #5499 · NethServer/dev · GitHub if you have nethserver-freepbx at version 14.0.10-1 it should be fixed. (check with rpm -ql nethserver-freepbx)

if you get it in AGI, it should be fixed for AGI that uses #!/usr/bin/env php as shebang, two FreePBX AGI doesn’t, I’ve PR for that but they didn’t merged yet Use #!/usr/bin/env php as shebang by Stell0 · Pull Request #3 · FreePBX/calendar · GitHub and Use #!/usr/bin/env php as shebang by Stell0 · Pull Request #5 · FreePBX/recordings · GitHub. Meanwhile you can manually change those AGI, you found them in /var/lib/asterisk/agi-bin/

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);