[BUGFIX] Catch InvalidPackageManifestException in PackageManager 71/41171/3
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Mon, 13 Jul 2015 17:53:52 +0000 (19:53 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 14 Jul 2015 19:53:30 +0000 (21:53 +0200)
Prevents TYPO3 from going fatal when ext_emconf.php for some
package is missing.

Releases: master
Resolves: #68082
Change-Id: I646a26e9b952561480241cc06ad918fb64bb3d94
Reviewed-on: http://review.typo3.org/41171
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/core/Classes/Package/PackageManager.php

index f82a162..9d0efce 100644 (file)
@@ -448,6 +448,10 @@ class PackageManager implements \TYPO3\CMS\Core\SingletonInterface {
                                $this->unregisterPackageByPackageKey($packageKey);
                                $packageStatesHasChanged = TRUE;
                                continue;
+                       } catch (Exception\InvalidPackageManifestException $exception) {
+                               $this->unregisterPackageByPackageKey($packageKey);
+                               $packageStatesHasChanged = TRUE;
+                               continue;
                        }
 
                        $this->registerPackage($package, FALSE);