-
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
Logger is not always defined in Magento\Framework\Image\Adapter\Abstract... #893
Conversation
…actAdapter I got this on a clean install on OSX with PHP 5.5.18: Fatal error: Call to a member function critical() on a non-object in .../lib/internal/Magento/Framework/Image/Adapter/AbstractAdapter.php on line 678
Hi @pierredup, Travis builds are red. Please review you PR. |
Hi @maksek The failures are unrelated to this change
|
@pierredup, it supposed to be fixed with the commit - 1d7b54a |
That commit was added after the builds for this PR ran. So if you re-run the builds, then they should all pass |
I got the same error, the patch bei @pierredup removed it. |
Hey @pierredup, i have re-run several times the builds, but travis is red. Can you please review and fix you PR. |
@@ -675,7 +675,10 @@ protected function _prepareDestination($destination = null, $newName = null) | |||
try { | |||
$this->directoryWrite->create($this->directoryWrite->getRelativePath($destination)); | |||
} catch (\Magento\Framework\Filesystem\FilesystemException $e) { | |||
$this->logger->critical($e); | |||
if (null !== $this->logger) { |
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.
This doesn't fix the cause of the issue.
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.
I suspect the bug is the logger property is not being initialized in constructor. Add it to constructor list and DI framework will provide it.
Looks like this was already fixed in latest dev ;) |
Correct, It looks like the commit b2bcbba fixes the issue (In the proper way :) ) |
…ETWO-64401-TravisBuildFail-2.0 MAGETWO-64401: Travis Build Fail 2.0
...Adapter
I got this on a clean install on OSX with PHP 5.5.18:
Fatal error: Call to a member function critical() on a non-object in .../lib/internal/Magento/Framework/Image/Adapter/AbstractAdapter.php on line 678