-
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
Bogus error message if mcrypt extension is not installed. #456
Comments
Did you install magento2 via installer? On Fri, Dec 27, 2013 at 11:03 PM, samm-git notifications@github.com wrote:
|
No, git clone in the www/magento2 directory |
@samm-git, |
@igor-svizev i am agree with this. But Magento should provide reasonable error message for this instead of bogus one. It is very common to not have required extension and error "Error happened during application run. Could not write error message to log. Please use developer mode to see the message. " is absolutely useless in this case. Especially because all file permissions were set correctly. |
@samm-git what would you find to be more "reasonable" than
? |
@benmarks please read error message again before commenting. Only error with unpatched magento is "Error happened during application run. Could not write error message to log. Please use developer mode to see the message. ". To get stacktrace i had to patch magento. |
+1 for not hiding/obscuring original error messages. |
Looks like, this is a bug in processing errors. It should be fixed so that errors will be logged. |
@samm-git Would you prefer that the application be in developer mode when installing? This would render verbose error messages during what is certainly a developer interaction. However (for example) if mcrypt is removed in a production server, the generic error message seems appropriate. |
@benmarks as SA and Magento consultant i would prefer to display such critical errors, especially on installation stage. I don`t see any problems to show "mcrypt extension is not insalled" on prod or on dev. Also for the user not experienced with Magento or PHP it would be hard, if ever possible to find what is wrong, because "Could not write error message to log. " is not appropriate and misleading. E.g. i was searching for file permissions problems instead of looking on installed extensions. |
Perhaps it's different with your clients or in the regions you serve, but I can imagine most clients being upset with or firing their developer immediately if a developer-worded / hard error message were rendered to a site consumer. Obviously having a further error condition of not being able to write to the log file complicates matter of getting information to the developer. But, I'd still take this issue further to state that even the generic message which you saw is not generic enough, not in production. I recognize the validity of your counter argument and join you in wondering which way the core team will take this. |
+1 to non descript error, purely because a customer will generally get very
|
@benmarks yeah,, probably in YOUR region developers and clients like to see messages like that one instead of real cause. Are you serious? And please, stop teaching me. I am working with largest Magento installations as part of Magento ECG team. And hey, we are talking about installer errors. If installer is showing on prod site then something is definitively VERY wrong, and probably its not a developer fault ;-) And i don`t see any differences for business owners if site renders shitty message about fake error or one about real error. Both situations are not acceptable on prod, but second one at least will give a chance to fix it QUICKLY instead of reading Magento code and patching source ;-) |
@samm-git Clearly we have a difference of opinion (which is reasonable, as I stated), and clearly you are misunderstanding my tone and purpose in participating in this discussion. I've stated my opinion and logic for the core team's consideration, so I'm done participating on this thread. Please feel free to introduce yourself in person sometime, as it seems we both do some work for/with people at ECG. |
@benmarks I do not see arguments here, sorry.
|
@samm-git , I personally agree that the error message displayed currently is misleading. Since I am not a tech savvy guy, I would be very confused and would probably start googling for developer mode in Magento and so on and so forth. Thus, no reason for me to argue that there is no issue since mcrypt is stated as a required component in system requirements :) The team investigated the issue and we found out that previously, if some of the required extensions were not installed, the system would issue an appropriate message during the installation. However, due to some recent changes, we lost this ability. What I personally can do is create a ticket (what I actually already did) in our bug tracker to have the ability to show proper human error messages back. In your original message I read that you had to hack EntryPoint.php to be able to read the error message. Please let me know if I may help you with the information on how to enable developer mode. I know this is not a remedy for this kind of cases - as I already wrote, we will work on getting the normal installation behavior back when error messages are understandable. |
@verklov thank you for reply and confirmation that this is wrong behavior :) Information about enabling of the devmode correctly is interesting, thanks. |
@samm-git , you are welcome! :) To enable Developer mode, add the SetEnv MAGE_MODE 'developer' string at the end of the .htaccess file in the root folder where Magento is installed. |
@samm-git, the team has fixed this issue and deployed the code to the GitHub. For some reason the issue was not referenced in the changelog. We are closing this issue. We will address the documentation issue to have the procedure of enabling the developer mode properly documented and publicly available. |
…right [Extensibility] MAGETWO-48081: Copyright Year Update
- MAGETWO-47698: [Github] Custom options not displayed correctly on a store view level #2908 #5885 - MAGETWO-56411: [GitHub] Shopping cart product options missing #248 - MAGETWO-58242: Issue with an Import Export when Attribute Changes - MAGETWO-58053 [GITHUB] Product image issue with multiple store views Magento 2.1.0 #6259
Cabpi 324. Org check with new endpoint
If magento2 is running on server w/o mcrypt extension installed i am getting error
"Error happened during application run. Could not write error message to log. Please use developer mode to see the message. "
I was not able to get stacktrace using changes in di.xml, but after hacking EntryPoint.php i got
I think Magento should check extensions and print correct message instead.
The text was updated successfully, but these errors were encountered: