-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Error on installation using php 7.4.4 #768
Comments
I'm not sure what this lsphp thing is, but it looks like it is performing some kind of code style check. I would recommend you running Shlink with a regular PHP binary. That will solve the problem. |
Hey @elaur I have done a bit of research, and it looks like this error could be caused by the fact that this is a CLI script and stats with the shebang. Could you try removing the |
Hmm, got thissudo -u lsadm /usr/local/lsws/lsphp74/bin/lsphp ./install Welcome to Shlink!! DATABASESelect database type [MySQL]:
Warning: Use of undefined constant STDIN - assumed 'STDIN' (this will throw an Error in a future version of PHP) in /usr/local/lsws/mywebsite.cc/html/vendor/symfony/console/Helper/QuestionHelper.php on line 107 Warning: feof() expects parameter 1 to be resource, string given in /usr/local/lsws/mywebsite.cc/html/vendor/symfony/console/Helper/QuestionHelper.php on line 254 Warning: fread() expects parameter 1 to be resource, string given in /usr/local/lsws/mywebsite.cc/html/vendor/symfony/console/Helper/QuestionHelper.php on line 255 Fatal error: Uncaught TypeError: Return value of Shlinkio\Shlink\Installer\Config\Option\Database\DatabaseUserConfigOption::askRequired() must be of the type string, null returned in /usr/local/lsws/mywebsite.cc/html/vendor/shlinkio/shlink-installer/src/Util/AskUtilsTrait.php:20 |
It's hard to say, but it looks like everything is related with the PHP variation you are using. I would recommend using a regular PHP distribution, as some of these errors are happening on third party code that I will not be able to change. I will close this for now, and consider supporting lite speed PHP in the future. |
How Shlink is set-up
Summary
sudo -u lsadm /usr/local/lsws/lsphp74/bin/lsphp ./install
PHP Fatal error: strict_types declaration must be the very first statement in the script in /usr/local/lsws/mydomain.cc/html/bin/install on line 3
Fatal error: strict_types declaration must be the very first statement in the script in /usr/local/lsws/mydomain.cc/html/bin/install on line 3
Any solutions to fix it?
The text was updated successfully, but these errors were encountered: