-
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
FIX for #11166 Index Handling Fatal Error #11183
FIX for #11166 Index Handling Fatal Error #11183
Conversation
@@ -418,6 +418,11 @@ public function reindexAll() | |||
$state->save(); | |||
$this->getView()->resume(); | |||
throw $exception; | |||
}catch (\Error $error) { |
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.
- please add space before catch
- is there more specific exception you can catch?
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.
Nice, thanks @larsroettig! I think this fix should be backported to Magento 2.1.x, would be appreciated if someone is willing to do this. |
Hi, @hostep I cannot so easy backport my Fix because 2.1.X allowed to use php5.6 and this Error handling requires php7.0 it is broken change for 2.1.X. To catch Engine Error only for one function is in php5.6 not so simple. Magento 2.1.X: Line 11 in 13d3888
Magento 2.2.X Line 11 in 4d26093
|
@larsroettig: ah yes, you have a valid point there! We could add a dependency to https://github.com/symfony/polyfill-php70 to get around this, but that's probably a bit out of scope and might introduce new problems. |
see #11166