1

when I try to use this command in CakePHP console :

cake migrations create CreatePostsTable

I get the following error:

Fatal error: Class 'Symfony\Component\Console\Application' not found in C:\wamp\ www\CookieCMS\vendor\cakephp\migrations\src\MigrationsDispatcher.php on line 22

What could be the cause for the error?

2
  • Have you ran the composer installer? book.cakephp.org/3.0/en/installation.html#installing-cakephp
    – Sevvlor
    Feb 29, 2016 at 10:41
  • Yes, in the end I realized that something was wrong with the folder structure of Symfony package, so I reaplaced the vendor/symfony folder with the corresponding folder from the newly installed CakePHP 3 project.
    – datalore
    Mar 1, 2016 at 11:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.