-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Fixed warning Undefined array key 0
when installing OM via command line (dev mode on) (#3672)
#3677
Conversation
Not sure if its the best way, but i have no better idea right now. Needs some investigation. |
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.
fine to me
false leads to another exception in behind. I run into same and did not fix it that way. At least add a "todo" annotation. |
This can provide unexpectable behavior of application. In ideal case method should throw Exception, that website not exists and fix places, where the error is provided. I do not think, that if you call |
Why not just fix the file |
Thanks for everyone's advice. I made some changes to this PR, and I think that |
@akunzai I still believe we shouldn't modify one of the most commonly used method in code. Instead, let's focus on fixing the specific file where you discovered the issue. |
Co-authored-by: Fabrizio Balliano <[email protected]>
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.
current solution is ok for me, approving
Undefined array key 0
(#3672)Undefined array key 0
when installing OM via command line (#3672)
@akunzai silly question, did you test the current implementation of this PR? |
@fballiano Yes, I tested the CLI installation via with current implementation. |
It "works", but seems wrong as @Sekiphp pointed out. |
Please explain your point, I didn't get it. or fire another PR to fix it? |
@akunzai is the latest implementation of this PR tested? everybody: Since this PR patches the install file, it seems to be ok to me and I'd merge it, anything against it? |
This. But i had no better idea so far. |
@sreichel in that case it could be fixed in a different place but could probably be another PR right? |
I really dont know ... as said, i faced same issue and thought about to fix it that way, but it leads to another exception in background (needs to turn dev-mode on, or xdebug on ... ) imho ... this need more investigation |
The console installation success without any errors with the latest implementation of this PR. |
@akunzai this error only occurs with dev-mode on. You can set the environment variable to 0 in CLI too. This "fix" seems wrong to me. (otherwise I'd have already made a pr) |
|
@akunzai I'm testing this PR now but I get this error:
|
In my setup, the deprecated errors was suppressed by ~E_STRICT & ~E_DEPRECATED, IMHO, the deprecated errors should be fix in another PRs. |
Undefined array key 0
when installing OM via command line (#3672)Undefined array key 0
when installing OM via command line (dev mode on) (#3672)
I don't think it's that useful without fixing #3677 (comment) (and probably more that would appear) but ok |
Description (*)
Handle posible false value in App::getWebsite from Store::getWebsite at mysql4-data-upgrade-1.4.0.0.7-1.4.0.0.8.php
Related Pull Requests
Fixed Issues (if relevant)
Undefined array key 0
warning at console Installation #3672Manual testing scenarios (*)
install.sh
from gist to install OpenMageQuestions or comments
Contribution checklist (*)