Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error: syntax error, unexpected '?' in \phpredisadmin\vendor\src\Client.php on line 60 #164

Closed
a6965921 opened this issue Oct 28, 2020 · 5 comments

Comments

@a6965921
Copy link

不支持PHP5.4??

@erikdubbelboer
Copy link
Owner

How did you install phpredisadmin?

@a6965921
Copy link
Author

git clone https://github.com/ErikDubbelboer/phpRedisAdmin.git
cd phpRedisAdmin
git clone https://github.com/nrk/predis.git vendor

php5.4 can't support ?? grammar

@erikdubbelboer
Copy link
Owner

You can't just git clone https://github.com/nrk/predis.git vendor. That version is not compatible with phpRedisAdmin or with your PHP version.

You can fix it using:

cd vendor/predis
git checkout v1.1.6

@venu-ibex-9
Copy link

I am getting this issue, can anyone help me with this?

Fatal error: Uncaught Predis\Response\ServerException: ERR unknown command 'CONFIG' in /src/app/vendor/predis/predis/src/Client.php:370 Stack trace: #0 /src/app/vendor/predis/predis/src/Client.php(335): Predis\Client->onErrorResponse(Object(Predis\Command\ServerConfig), Object(Predis\Response\Error)) #1 /src/app/vendor/predis/predis/src/Client.php(314): Predis\Client->executeCommand(Object(Predis\Command\ServerConfig)) #2 /src/app/index.php(209): Predis\Client->__call('config', Array) #3 {main} thrown in /src/app/vendor/predis/predis/src/Client.php on line 370

@erikdubbelboer
Copy link
Owner

@venu-ibex-9 please check #102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants