-
-
Notifications
You must be signed in to change notification settings - Fork 258
[BUGFIX] Add check if generator is valid before traversing it #4283
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
[BUGFIX] Add check if generator is valid before traversing it #4283
Conversation
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.
💯
da2f122
to
b2cbeae
Compare
All methods in SiteRepository using the result from $siteGenerator = $this->getAvailableTYPO3ManagedSites($stopOnInvalidSite); have to test against If this is done, the patch is OK for me. Stefan |
If there's no solr configuration for any site, saving pages or content results in a PHP exception: Uncaught TYPO3 Exception: Cannot traverse an already closed generator | Exception thrown in file .../Classes/Domain/Site/SiteRepository.php in line 135 The added check prevents this error.
b2cbeae
to
947336b
Compare
I've added the checks for the remaining three calls. |
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.
Look good to me. Thank you for providing that patch.
I also got hit by that bug. Any chance to get this merged and a patchlevel release out soon-ish? |
@andreaswolf |
If there's no solr configuration for any site, saving pages or content results in a PHP exception: Uncaught TYPO3 Exception: Cannot traverse an already closed generator | Exception thrown in file .../Classes/Domain/Site/SiteRepository.php in line 135 The added check prevents this error. Fixes: TYPO3-Solr#4284 Ports: TYPO3-Solr#4283
If there's no solr configuration for any site, saving pages or content results in a PHP exception: Uncaught TYPO3 Exception: Cannot traverse an already closed generator | Exception thrown in file .../Classes/Domain/Site/SiteRepository.php in line 135 The added check prevents this error. Fixes: #4284 Ports: #4283
If there's no solr configuration for any site, saving pages or content results in a PHP exception:
Uncaught TYPO3 Exception: Cannot traverse an already closed generator | Exception thrown in file .../Classes/Domain/Site/SiteRepository.php in line 135
The added check prevents this error.
Fixes: #4284