Skip to content
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

typo3f-3.0 setup is broken #67

Open
seyfer opened this issue Dec 6, 2016 · 4 comments
Open

typo3f-3.0 setup is broken #67

seyfer opened this issue Dec 6, 2016 · 4 comments

Comments

@seyfer
Copy link
Contributor

seyfer commented Dec 6, 2016

I got this error on first run bash setup.sh with php7

> TYPO3\Flow\Composer\InstallerScripts::postPackageUpdateAndInstall
Generating optimized autoload files
Deprecation Notice: The callback TYPO3\Flow\Composer\InstallerScripts::postUpdateAndInstall declared at /home/seyfer/www/php-framework-benchmark/typo3f-3.0/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Composer/InstallerScripts.php accepts a Composer\Script\CommandEvent but post-install-cmd events use a Composer\Script\Event instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes in phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:289
> TYPO3\Flow\Composer\InstallerScripts::postUpdateAndInstall
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to TYPO3\Flow\Error\AbstractExceptionHandler::handleException() must be an instance of Exception, instance of TypeError given in /home/seyfer/www/php-framework-benchmark/typo3f-3.0/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Error/AbstractExceptionHandler.php:78
Stack trace:
#0 [internal function]: TYPO3\Flow\Error\AbstractExceptionHandler->handleException(Object(TypeError))
#1 {main}
  thrown in /home/seyfer/www/php-framework-benchmark/typo3f-3.0/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Error/AbstractExceptionHandler.php on line 78
Execution of subprocess failed with exit code 255 without any further output.
(Please check your PHP error log for possible Fatal errors)

  Type: TYPO3\Flow\Core\Booting\Exception\SubProcessException
  Code: 1355480641
  File: Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Core/Booting/Scripts.php
  Line: 528

Open Data/Logs/Exceptions/20161206152544f24afe.txt for a full stack trace.

And this error with php5.6

***** typo3f-3.0 *****
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating optimized autoload files
Deprecation Notice: The callback TYPO3\Flow\Composer\InstallerScripts::postUpdateAndInstall declared at /home/seyfer/www/php-framework-benchmark/typo3f-3.0/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Composer/InstallerScripts.php accepts a Composer\Script\CommandEvent but post-install-cmd events use a Composer\Script\Event instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes in phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:289
> TYPO3\Flow\Composer\InstallerScripts::postUpdateAndInstall
ArrayObject::__construct() expects parameter 3 to be a class name derived from Iterator, '' given

  Type: InvalidArgumentException
  File: Data/Temporary/Production/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Mvc_Con
        troller_Arguments.php
  Line: 293
@kenjis
Copy link
Owner

kenjis commented Feb 1, 2017

@seyfer I don't reproduce it.

[vagrant@localhost php-framework-benchmark]$ bash setup.sh typo3f-3.0
***** typo3f-3.0 *****
Loading composer repositories with package information
Installing dependencies from lock file
  - Installing neos/composer-plugin (2.0.1)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing doctrine/lexer (v1.0.1)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing doctrine/inflector (v1.1.0)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing doctrine/collections (v1.3.0)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing doctrine/cache (v1.6.1)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing doctrine/annotations (v1.3.0)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing doctrine/common (v2.6.2)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing symfony/yaml (v2.5.12)
    Downloading: 100%         

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing symfony/polyfill-mbstring (v1.3.0)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing psr/log (1.0.2)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing symfony/debug (v3.0.9)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing symfony/console (v2.8.14)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing zendframework/zend-eventmanager (3.0.1)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing zendframework/zend-code (2.6.3)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing ocramius/proxy-manager (1.0.2)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing doctrine/dbal (v2.5.5)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing doctrine/migrations (v1.3.1)
    Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing doctrine/orm (v2.4.8)
    Downloading: 100%         

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing symfony/dom-crawler (v2.5.12)
    Downloading: 100%         

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing typo3/flow (3.0.10)
    Loading from cache

> TYPO3\Flow\Composer\InstallerScripts::postPackageUpdateAndInstall
  - Installing typo3/fluid (3.0.10)
    Loading from cache

> TYPO3\Flow\Composer\InstallerScripts::postPackageUpdateAndInstall
  - Installing typo3/eel (3.0.10)
    Loading from cache

> TYPO3\Flow\Composer\InstallerScripts::postPackageUpdateAndInstall
  - Installing typo3/welcome (3.0.1)
    Loading from cache

> TYPO3\Flow\Composer\InstallerScripts::postPackageUpdateAndInstall
Generating optimized autoload files
> TYPO3\Flow\Composer\InstallerScripts::postUpdateAndInstall
Warmed up caches.

[vagrant@localhost php-framework-benchmark]$ php -v
PHP 5.6.23 (cli) (built: Jun 22 2016 09:05:27) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

@seyfer
Copy link
Contributor Author

seyfer commented Feb 1, 2017

@kenjis
You have all your dependencies from cache.
Loading from cache

Clear your install and try from scratch in new folder.

@kenjis
Copy link
Owner

kenjis commented Feb 14, 2017

I got the error when I run setup.sh.

Catchable Fatal Error: Argument 1 passed to TYPO3\Flow\Object\ObjectManager::setObjects() must be of the type array, null given, called in /home/vagrant/public/php-framework-benchmark/typo3f-3.0/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Core/Booting/Scripts.php on line 397 and defined in /home/vagrant/public/php-framework-benchmark/typo3f-3.0/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Object/ObjectManager.php line 104

  Type: TYPO3\Flow\Error\Exception
  Code: 1
  File: Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Error/ErrorHandler.php
  Line: 81

@kenjis
Copy link
Owner

kenjis commented Feb 14, 2017

After running composer update, the error above still remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants