Installation Typo3-Neos

  • andy-man andy-man
    Sternenflotten-Admiral
    0 x
    167 Beiträge
    0 Hilfreiche Beiträge
    11. 10. 2012, 11:48

    Hallo,
    ich habe mir mal die neue ALPHA Version Typo3-Neos unter xampp und Ubuntu installiert. Beide Installationen laufen. doch im Backend gibt es im Bereich Administration/Package Management kein weiterkommen.
    Unter xampp kommt die Fehlermeldung:

    1. Fatal error: Call to undefined method TYPO3\Flow\Package\MetaData::getTitle() in C:\xampp\htdocs\Data\Temporary\Production\Cache\Code\Flow_Object_Classes\TYPO3_TYPO3_Controller_Module_Administration_PackagesController_Original.php on line 45

    und unter Ubuntu eine leere Seite.

    1. <?php
    2. namespace TYPO3\TYPO3\Controller\Module\Administration;
    3.  
    4. /* *
    5.  * This script belongs to the Flow package "TYPO3". *
    6.  * *
    7.  * It is free software; you can redistribute it and/or modify it under *
    8.  * the terms of the GNU General Public License, either version 3 of the *
    9.  * License, or (at your option) any later version. *
    10.  * *
    11.  * The TYPO3 project - inspiring people to share! *
    12.  * */
    13.  
    14. use TYPO3\Flow\Annotations as Flow;
    15.  
    16. /**
    17.  * The TYPO3 Package Management module controller
    18.  *
    19.  * @Flow\Scope("singleton")
    20.  */
    21. class PackagesController_Original extends \TYPO3\TYPO3\Controller\Module\StandardController {
    22.  
    23. /**
    24. * @Flow\Inject
    25. * @var \TYPO3\Flow\Persistence\Doctrine\Service
    26. */
    27. protected $doctrineService;
    28.  
    29. /**
    30. * @Flow\Inject
    31. * @var \TYPO3\Flow\Package\PackageManagerInterface
    32. */
    33. protected $packageManager;
    34.  
    35. /**
    36. * @return void
    37. */
    38. public function indexAction() {
    39. $packageGroups = array();
    40. foreach ($this->packageManager->getAvailablePackages() as $package) {
    41. $packageGroup = current(array_slice(explode('/', $package->getPackagePath()), -3, 1));
    42. $packageGroups[$packageGroup][$package->getPackageKey()] = array(
    43. 'sanitizedPackageKey' => str_replace('.', '', $package->getPackageKey()),
    44. 'version' => $package->getPackageMetaData()->getVersion(),
    45. 'title' => $package->getPackageMetaData()->getTitle(),
    46. 'description' => $package->getPackageMetaData()->getDescription(),
    47. 'metaData' => $package->getPackageMetaData(),
    48. 'isActive' => $this->packageManager->isPackageActive($package->getPackageKey()),
    49. 'isFrozen' => $this->packageManager->isPackageFrozen($package->getPackageKey()),
    50. 'isProtected' => $package->isProtected()
    51. );
    52. }
    53. ksort($packageGroups);
    54. foreach (array_keys($packageGroups) as $packageGroup) {
    55. ksort($packageGroups[$packageGroup]);
    56. }
    57. $this->view->assignMultiple(array(
    58. 'packageGroups' => $packageGroups,
    59. 'isDevelopmentContext' => $this->objectManager->getContext()->isDevelopment()
    60. ));
    61. }
    62.  
    63. /**
    64. * Activate package
    65. *
    66. * @param string $packageKey Package to activate
    67. * @return void
    68. */
    69. public function activateAction($packageKey) {
    70. $this->flashMessageContainer->addMessage($this->activatePackage($packageKey));
    71. $this->redirect('index');
    72. }
    73.  
    74. /**
    75. * Deactivate package
    76. *
    77. * @param string $packageKey Package to deactivate
    78. * @return void
    79. */
    80. public function deactivateAction($packageKey) {
    81. $this->flashMessageContainer->addMessage($this->deactivatePackage($packageKey));
    82. $this->redirect('index');
    83. }
    84. /**
    85. * Import package
    86. *
    87. * @param string $packageKey Package to import
    88. * @return void
    89. */
    90. public function importAction($packageKey) {
    91. try {
    92. $this->packageManager->importPackage($packageKey);
    93. $message = new \TYPO3\Flow\Error\Message($packageKey . ' has been imported', 1343231682);
    94. } catch (\TYPO3\Flow\Package\Exception\PackageKeyAlreadyExistsException $exception) {
    95. $message = new \TYPO3\Flow\Error\Error($exception->getMessage(), 1343231683);
    96. } catch (\TYPO3\Flow\Package\Exception\PackageRepositoryException $exception) {
    97. $message = new \TYPO3\Flow\Error\Error($exception->getMessage(), 1343231684);
    98. }
    99. $this->flashMessageContainer->addMessage($message);
    100. $this->redirect('index');
    101. }
    102.  
    103. /**
    104. * Delete package
    105. *
    106. * @param string $packageKey Package to delete
    107. * @return void
    108. */
    109. public function deleteAction($packageKey) {
    110. $this->flashMessageContainer->addMessage($this->deletePackage($packageKey));
    111. $this->redirect('index');
    112. }
    113.  
    114. /**
    115. * Freeze package
    116. *
    117. * @param string $packageKey Package to freeze
    118. * @return void
    119. */
    120. public function freezeAction($packageKey) {
    121. $this->flashMessageContainer->addMessage($this->freezePackage($packageKey));
    122. $this->redirect('index');
    123. }
    124.  
    125. /**
    126. * Unfreeze package
    127. *
    128. * @param string $packageKey Package to freeze
    129. * @return void
    130. */
    131. public function unfreezeAction($packageKey) {
    132. $this->packageManager->unfreezePackage($packageKey);
    133. $this->flashMessageContainer->addMessage(new \TYPO3\Flow\Error\Message($packageKey . ' has been unfrozen', 1347464246));
    134. $this->redirect('index');
    135. }
    136.  
    137. /**
    138. * @param array $packageKeys
    139. * @param string $action
    140. * @return void
    141. * @throws \RuntimeException
    142. */
    143. public function batchAction(array $packageKeys, $action) {
    144. switch ($action) {
    145. case 'freeze':
    146. $frozenPackages = array();
    147. foreach ($packageKeys as $packageKey) {
    148. $message = $this->freezePackage($packageKey);
    149. if ($message instanceof \TYPO3\Flow\Error\Error || $message instanceof \TYPO3\Flow\Error\Warning) {
    150. $this->flashMessageContainer->addMessage($message);
    151. } else {
    152. array_push($frozenPackages, $packageKey);
    153. }
    154. }
    155. if (count($frozenPackages) > 0) {
    156. $message = new \TYPO3\Flow\Error\Message('Following packages have been frozen: ' . implode(', ', $frozenPackages));
    157. } else {
    158. $message = new \TYPO3\Flow\Error\Warning('Unable to freeze the selected packages');
    159. }
    160. break;
    161. case 'unfreeze':
    162. foreach ($packageKeys as $packageKey) {
    163. $this->packageManager->unfreezePackage($packageKey);
    164. }
    165. $message = new \TYPO3\Flow\Error\Message('Following packages have been unfrozen: ' . implode(', ', $packageKeys));
    166. break;
    167. case 'activate':
    168. $activatedPackages = array();
    169. foreach ($packageKeys as $packageKey) {
    170. $message = $this->activatePackage($packageKey);
    171. if ($message instanceof \TYPO3\Flow\Error\Error || $message instanceof \TYPO3\Flow\Error\Warning) {
    172. $this->flashMessageContainer->addMessage($message);
    173. } else {
    174. array_push($activatedPackages, $packageKey);
    175. }
    176. }
    177. if (count($activatedPackages) > 0) {
    178. $message = new \TYPO3\Flow\Error\Message('Following packages have been activated: ' . implode(', ', $activatedPackages));
    179. } else {
    180. $message = new \TYPO3\Flow\Error\Warning('Unable to activate the selected packages');
    181. }
    182. break;
    183. case 'deactivate':
    184. $deactivatedPackages = array();
    185. foreach ($packageKeys as $packageKey) {
    186. $message = $this->deactivatePackage($packageKey);
    187. if ($message instanceof \TYPO3\Flow\Error\Error || $message instanceof \TYPO3\Flow\Error\Warning) {
    188. $this->flashMessageContainer->addMessage($message);
    189. } else {
    190. array_push($deactivatedPackages, $packageKey);
    191. }
    192. }
    193. if (count($deactivatedPackages) > 0) {
    194. $message = new \TYPO3\Flow\Error\Message('Following packages have been deactivated: ' . implode(', ', $deactivatedPackages));
    195. } else {
    196. $message = new \TYPO3\Flow\Error\Warning('Unable to deactivate the selected packages');
    197. }
    198. break;
    199. case 'delete':
    200. $deletedPackages = array();
    201. foreach ($packageKeys as $packageKey) {
    202. $message = $this->deletePackage($packageKey);
    203. if ($message instanceof \TYPO3\Flow\Error\Error || $message instanceof \TYPO3\Flow\Error\Warning) {
    204. $this->flashMessageContainer->addMessage($message);
    205. } else {
    206. array_push($deletedPackages, $packageKey);
    207. }
    208. }
    209. if (count($deletedPackages) > 0) {
    210. $message = new \TYPO3\Flow\Error\Message('Following packages have been deleted: ' . implode(', ', $deletedPackages));
    211. } else {
    212. $message = new \TYPO3\Flow\Error\Warning('Unable to delete the selected packages');
    213. }
    214. break;
    215. default:
    216. throw new \RuntimeException('Invalid action "' . $action . '" given.', 1347463918-);
    217. }
    218.  
    219. $this->flashMessageContainer->addMessage($message);
    220. $this->redirect('index');
    221. }
    222.  
    223. /**
    224. * @param string $packageKey
    225. * @return \TYPO3\Flow\Error\Error|\TYPO3\Flow\Error\Message
    226. */
    227. protected function activatePackage($packageKey) {
    228. try {
    229. $this->packageManager->activatePackage($packageKey);
    230. $this->doctrineService->updateSchema();
    231. $message = new \TYPO3\Flow\Error\Message('The package ' . $packageKey . ' is activated', 1343231680);
    232. } catch (\TYPO3\Flow\Package\Exception\UnknownPackageException $exception) {
    233. $message = new \TYPO3\Flow\Error\Error('The package ' . $packageKey . ' is not present and can not be activated', 1343231681);
    234. }
    235. return $message;
    236. }
    237.  
    238. /**
    239. * @param string $packageKey
    240. * @return \TYPO3\Flow\Error\Error|\TYPO3\Flow\Error\Message
    241. */
    242. protected function deactivatePackage($packageKey) {
    243. try {
    244. $this->packageManager->deactivatePackage($packageKey);
    245. $this->doctrineService->updateSchema();
    246. $message = new \TYPO3\Flow\Error\Message($packageKey . ' was deactivated', 1343231678-);
    247. } catch (\TYPO3\Flow\Package\Exception\ProtectedPackageKeyException $exception) {
    248. $message = new \TYPO3\Flow\Error\Error('The package ' . $packageKey . ' is protected and can not be deactivated', 1343231679);
    249. }
    250. return $message;
    251. }
    252.  
    253. /**
    254. * @param string $packageKey
    255. * @return \TYPO3\Flow\Error\Error|\TYPO3\Flow\Error\Message
    256. */
    257. protected function deletePackage($packageKey) {
    258. try {
    259. $this->packageManager->deletePackage($packageKey);
    260. $message = new \TYPO3\Flow\Error\Message($packageKey . ' has been deleted', 1343231685);
    261. } catch (\TYPO3\Flow\Package\Exception\UnknownPackageException $exception) {
    262. $message = new \TYPO3\Flow\Error\Error($exception->getMessage(), 1343231686);
    263. } catch (\TYPO3\Flow\Package\Exception\ProtectedPackageKeyException $exception) {
    264. $message = new \TYPO3\Flow\Error\Error($exception->getMessage(), 1343231687);
    265. } catch (\TYPO3\Flow\Package\Exception $exception) {
    266. $message = new \TYPO3\Flow\Error\Error($exception->getMessage(), 1343231688-);
    267. }
    268. return $message;
    269. }
    270.  
    271. /**
    272. * @param string $packageKey
    273. * @return \TYPO3\Flow\Error\Error|\TYPO3\Flow\Error\Message
    274. */
    275. protected function freezePackage($packageKey) {
    276. try {
    277. $this->packageManager->freezePackage($packageKey);
    278. $message = new \TYPO3\Flow\Error\Message($packageKey . ' has been frozen', 1343231689);
    279. } catch (\LogicException $exception) {
    280. $message = new \TYPO3\Flow\Error\Error($exception->getMessage(), 1343231690);
    281. } catch (\TYPO3\Flow\Package\Exception\UnknownPackageException $exception) {
    282. $message = new \TYPO3\Flow\Error\Error($exception->getMessage(), 1343231691);
    283. }
    284. return $message;
    285. }
    286.  
    287. }
    288.  
    289. #

    Kann das sein, dass die angegebenen Pfade überhaupt nicht stimmen oder fehler noch die Daten?
    Auch beim Testaccount von Mittwald trifft das zu.

    Danke andy-man


  • 1
  • LuP LuP
    Jedi-Meister
    0 x
    496 Beiträge
    1 Hilfreiche Beiträge
    11. 10. 2012, 12:14

    Hallo,

    es handelt sich um einen bereits [url="http://forge.typo3.org/issues/41660"]bekannten Bug[/url]. Einen Patch findest Du [url="http://blog.mittwald.de/wp-content/uploads/2012/10/0001-BUGFIX-Missing-functions-get-set-Title-in-package-me.patch"]hier[/url].

    VG,
    LuP

  • 1