Issue related to setup of Symfony 3.4 - symfony-3.4

I have installed PHP 5.6.40, and have also run command
symfony check:requirements
in accordance with https://symfony.com/doc/3.4/reference/requirements.html
Its output is shown below.
/usr/local/bin/symfony: line 1: syntax error near unexpected token
newline' /usr/local/bin/symfony: line 1: '

Related

Command for generating bundle installer not working

While following the Oro documentation for generating an installer for my bundle
I get the following error when using the oro:migration:dump --bundle=MyBundle command:
In schema-template.php.twig line 38:
Unexpected token "name" of value "table" ("end of statement block"
expected).
Is this a known issue or am I missing something?

syntax error, unexpected T_STRING PHPMAILER line 22

Parse error: syntax error, unexpected T_STRING in /home1/mast1456/public_html/src/PHPMailer.php on line 22
line 22 namespace PHPMailer\PHPMailer;
This means you're running a very old version of PHP that doesn't understand namespaces, which were introduced in PHP 5.3. You need to run at least PHP 5.5 for PHPMailer anyway, but I would recommend you use PHP 7.4 for anything you're developing now.

Unable to parse JSON data: JSON_ERROR_SYNTAX

On a newly installed server running CakePHP 3.2.14, a call to debug($myEntity) displays the following error after displaying the entity without any visible problem:
An Internal Error Has Occurred
Error: Error executing command: Unable to parse JSON data: JSON_ERROR_SYNTAX - Syntax error, malformed JSON
Any idea?
EDIT According to my tests, I get this error runing PHP7.0. I don't have this error running PHP5.6.
What does it mean?
Sorry guys, after deeper searchs I found that te problem comes from a plugin.

Update to Alamofire 4.0 and Swift 3.0 via Carthage

I am trying to update Alamofire to version 4.0. When I run carthage update I get many errors when building Alamofire scheme. It looks like files weren't updated to Swift 3.0 syntax. What I am doing wrong? Log from terminal:
*** Checking out Alamofire at "4.0.0"
*** xcodebuild output can be found in /var/folders/ls/6t_b5mqx5s187hq2dtts6ys00000gn/T/carthage-xcodebuild.ORghi2.log
*** Building scheme "Alamofire watchOS" in Alamofire.xcworkspace
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:36:1: error: expressions are not allowed at the top level
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:36:5: error: consecutive statements on a line must be separated by ';'
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:74:5: error: expected declaration
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:74:9: error: consecutive declarations on a line must be separated by ';'
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:77:5: error: expected declaration
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:77:9: error: consecutive declarations on a line must be separated by ';'
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:80:5: error: expected declaration
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:80:9: error: consecutive declarations on a line must be separated by ';'
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:83:5: error: expected declaration
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:83:9: error: consecutive declarations on a line must be separated by ';'
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:89:5: error: expected declaration
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:89:9: error: consecutive declarations on a line must be separated by ';'
/Users/liborzapletal/Documents/Aplikace/PNG/PNG/Carthage/Checkouts/Alamofire/Source/NetworkReachabilityManager.swift:92:5: error: expected declaration
....... and many others
I am using carthage version 0.18. I tried delete carthage Build and Checkout folders. I have set Xcode 8 version as default. For now without any luck.
The problem was that in terminal default Xcode was still 7. I checked it by command:
xcodebuild -version
which returns:
Xcode 7.3
Build version 7D175
In system it looks like default is Xcode 8.0 but not in terminal. So I use command:
sudo xcode-select -switch /Applications/Xcode\ 8.app/
And now it's working.

Error on line 1: Content is not allowed in prolog - Rubymine

As of yesterday when trying to integrate Pivotal Tracker tasks with Rubymine (6.x and now 7 EAP) this error appears instead of Rubymine connecting to the Tracker server -
Error on line 1: Content is not allowed in prolog
Anyone else getting this / thoughts?
This was an api key error. Unfortunately not a very helpful error message from RubyMine.