-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 500 in Module Manager #15211
Error 500 in Module Manager #15211
Conversation
There is an error in Module Manager (http://store.com/setup/index.php/moduleGrid/modules) if some module has no "moduleName" property: ``` { "name": "amzn\/amazon-pay-and-login-magento-2-module", "type": "magento2-module", "version": "2.0.4" } ```
@@ -178,7 +178,7 @@ private function getModulesInfo(array $moduleList) | |||
private function addGeneralInfo(array $items) | |||
{ | |||
foreach ($items as &$item) { | |||
$item['moduleName'] = $item['moduleName'] ?: $this->packageInfo->getModuleName($item['name']); | |||
$item['moduleName'] = isset($item['moduleName']) ? $item['moduleName'] : $this->packageInfo->getModuleName($item['name']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The line length exceeds 120 characters. According to PSR-2 coding style, a line length must be <= 120 characters. Also as an improvement, I would recommend using null coalescing operator to simplify the construction (http://php.net/manual/en/language.operators.comparison.php#language.operators.comparison.coalesce)
Hello @flancer64. Thank you for your collaboration. Please, consider fixing issues mentioned in the review. Also, adjust the PR description using the template you have upon the PR creation which includes Fixed Issues, Steps to Reproduce and other required sections. |
Hi, guys. Thanks for your responses. Feel free to change this code as you wish. It is just my proposal to fix the bug. |
@flancer64 thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
@flancer64: can you edit your opening post, follow the template and add issue #15192 under the Thanks for the fix! |
@hostep , done. |
@magento-engcom-team , done. |
Hi @flancer64. Thank you for your contribution. Please, consider porting this solution across release lines. |
I am having same problem Screenshoot: http://prntscr.com/jojvx0 But changing module.php line 181 did not solved my problem. Does any1 have any other idea ? Many thanks. |
PHP version? |
There is nothing in log files: http://prntscr.com/jokvek My PHP version is 7.0. I can upgrade it to version 7.1 if I need. |
No, not in Magento logs. Try to look up for error message in |
Hm, I'm going to find apache log files. For now I have found only this: http://prntscr.com/jolgx0 |
Does the file |
error.log.20180530.gz Before I downloaded log files, I have initiated Module Manager a few times. Is there anything which could tell where is the problem ? |
Sorry, @Donnerberg , I see nothing in error log. Could you give me an access log? We need to found request with HTTP result code 500. |
Oh, I should send you both. I hope there is something what could help. Many thanks for helping me with this. 1day older access log file you could find here: |
Sorry, @Donnerberg . I see that these error log & access log are from one server but I cannot see the error message in the log. Did you try to go directly to the URL "http://donnerberg.net.dedivirt595.your-server.de/setup/index.php/module-grid" under admin account (authorized)? You should see smth. like If you will not see & will get error 500 try to debug app. Set breakpoint in |
Yes you were right: http://prntscr.com/jp0tpm But I am not sure how to set breakpoint in ./setup/src/Magento/Setup/Controller/ModuleGrid.php ? |
Dear Flancer, I have full access SSH and FTP control of server. This is error from Network: http://prntscr.com/jp1vk8 What do you think about that ? |
@Donnerberg , do you have "root" access? You need to click on entry with error (red one) then go to tab "Response". |
@flancer64 , Yes I have full root access. Here is screenshoot of response tab: http://prntscr.com/jp2f8u |
Try to setup remote debugging then walk through the code starting from |
Description
There is an error in Module Manager (http://store.com/setup/index.php/moduleGrid/modules) if some module has no "moduleName" property:
Fixed Issues (if relevant)
Manual testing scenarios
Module Manager doesn't show module grid when going through below step:
Contribution checklist