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

Composer install post cmd error #105

Open
ugintl opened this issue Aug 12, 2021 · 7 comments
Open

Composer install post cmd error #105

ugintl opened this issue Aug 12, 2021 · 7 comments

Comments

@ugintl
Copy link

ugintl commented Aug 12, 2021

I am trying to download this https://github.com/markaspot/flyspray using composer 2. I am on windows 10. php 7.4. Everything goes well except at the end, I see this error. I do not know what to do with this so I am posting it here. Thank you for your understanding.

Script echo '<?php return array("session_name"=>"flyspray"); ?>' > vendor/dapphp/securimage/config.inc.php handling the post-update-cmd event returned with error code 1

@peterdd
Copy link

peterdd commented Aug 12, 2021

This comes from https://github.com/Flyspray/flyspray/blob/master/composer.json and is intended to setup the minimal required config.inc.php for using dapphp/securimage with Flyspray.

As I do not use Windows10 there is maybe a compatibility issue. (path separator?, path to vendor directory?)

@ugintl
Copy link
Author

ugintl commented Aug 12, 2021

I have linux sub system installed as well. So what I did is that I pressed Shift + Right Click on the parent folder and opened linux shell. Then ran this command echo '<?php return array(\"session_name\"=>\"flyspray\"); ?>' > vendor/dapphp/securimage/config.inc.php Hope it helps someone else.

@peterdd
Copy link

peterdd commented Aug 12, 2021

The escaping of " with the \ is to work with composer (composer.json)

If you want to run from shell try

echo '<?php return array("session_name"=>"flyspray"); ?>' > vendor/dapphp/securimage/config.inc.php

@peterdd
Copy link

peterdd commented Aug 12, 2021

It just adds a minimal config.inc.php containing

<?php return array("session_name"=>"flyspray"); ?>

@ugintl
Copy link
Author

ugintl commented Aug 12, 2021

Thanks for the explanation. Now I understand what it is doing. Learned something new today.

@ugintl
Copy link
Author

ugintl commented Aug 12, 2021

What is "session_name"? It can be anything?

@peterdd
Copy link

peterdd commented Aug 12, 2021

No, for using with Flyspray it must be flyspray.

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

2 participants