Closed cloudinstone closed 5 years ago
Which version of PHP are you using? This should work from PHP 5.6.
The line in error is:
https://github.com/thephpleague/omnipay-common/blob/master/src/Common/Http/Client.php#L5
Edit: silly question: PHP 5.6.37 Hmm. Are you certain it is PHP 5.6.37 actually running your script?
@judgej I test it on a shared Hosting by Fastcomet, the cPanel said it's 5.6.37. it's working on my local env.
after contact to hosting provier and change php version to 5.6, the old error is gone and got new error.
[27-Sep-2018 02:22:26 UTC] PHP Parse error: syntax error, unexpected '?' in /home/dedepres/public_html/.../vendor/symfony/http-foundation/Request.php on line 1944
then I change php version to 7.0 and all done.
PHP Parse error: syntax error, unexpected 'function' (T_FUNCTION), expecting identifier (T_STRING) or \ (T_NS_SEPARATOR) in /home/public_html/github.com/fake-path/vendor/omnipay/common/src/Common/Http/Client.php on line 5
Server Information Apache Version | 2.4.34 PHP Version | 5.6.37 MySQL Version | 5.6.40 Architecture | x86_64 Operating System | linux Path to Sendmail | /usr/sbin/sendmail Path to Perl | /usr/bin/perl Perl Version | 5.10.1 Kernel Version | 2.6.32-896.16.1.lve1.4.54.el6.x86_64