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

Empty output on development environment #2

Open
almod90 opened this issue Oct 13, 2018 · 13 comments
Open

Empty output on development environment #2

almod90 opened this issue Oct 13, 2018 · 13 comments
Labels
help wanted Extra attention is needed

Comments

@almod90
Copy link

almod90 commented Oct 13, 2018

Package installed successfully, however it returns empty output.

Probable reason for this is xdebug enabled in development environment as refered here

Checked your composer execution code under artisan tinker and it works fine, so it's xdebug issue 99%

I would appreciate if you'd be able to solve this issue

@yurik94
Copy link

yurik94 commented Oct 27, 2018

+1

@yurik94
Copy link

yurik94 commented Oct 27, 2018

image

After some debug it seems that I don't have composer in path, check that!

@jxlwqq
Copy link
Member

jxlwqq commented Oct 29, 2018

@jxlwqq jxlwqq added the help wanted Extra attention is needed label Dec 26, 2018
@AaronChengHao
Copy link

image
composer 环境变量不能识别,我加了一个全路径就可以了

@AaronChengHao
Copy link

image
image

我不知道为什么没有执行成功

@schel4ok
Copy link

also doesn't work for me

@jxlwqq
Copy link
Member

jxlwqq commented Mar 17, 2020

1b6790d

hope this commit can be helpful.

@schel4ok
Copy link

no. I still have empty Composer Packages list on /admin/composer-viewer page

@schel4ok
Copy link

any ideas?

@schel4ok
Copy link

@jxlwqq please help

@jxlwqq
Copy link
Member

jxlwqq commented Jun 5, 2020

PHP.INI settings Disable exec, shell_exec, system, popen and Other Functions To Improve Security.

Check your php.ini file, and make sure exec function is removed.

Lark20200605193255

@schel4ok
Copy link

schel4ok commented Jun 9, 2020

I have empty value

disable_functions = 

@usamaits
Copy link

usamaits commented Jun 10, 2020

First of all you have to enable PHP exec() in your php.ini if it's not ,

it's work fine, typically 'which-composer' asks for full composer file path + file name ex;
'c:\dev\php composer\composer'.

I'm using Windows.
So, if composer is added on global system path ; 'composer file run globally from any path',
just replace config/admin variable 'which-composer' by 'composer'.

'composer-viewer' => [
// Set this to false if you want to disable this extension
'enable' => true,
// Set the location of composer command
'which-composer' => 'composer', // !! it's important !!
]

you have to fulfill and pass this two line to run composer :
$command = 'cd ' . base_path() . ' && ' . $which_composer . ' show --latest --format=json';
exec($command, $output);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants