Question

https://github.com/cakedc/users/tree/2.0

After extracting the cakedc users plugin i copied it to app/Plugin folder.

I ran this command and got error:

cake migration all -plugin users

Why is this error? It's cakephp-2.0 and after extracting the users plugin, i see the convention of the folders are like cakehp-1.3

Error: Shell class MigrationShell could not be found.
#0 /var/www/cakephp/lib/Cake/Console/ShellDispatcher.php(167): ShellDispatcher->_getShell('migration')
#1 /var/www/cakephp/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch()
#2 /var/www/cakephp/lib/Cake/Console/cake.php(24): ShellDispatcher::run(Array)
#3 {main}

How can i install this users plugin and use it ?

Was it helpful?

Solution

  1. Have you installed CakeDC's Migrations plugin?
  2. Have you loaded the plugins?

OTHER TIPS

In case someone will search this, here's how to use Migrations and Users plugins from CakeDC with CakePHP 2.x:

1) Make sure you downloaded correct branches (2.0) from git. It can be checked by camel-cased directory names of plugins

2) Place them inside app/Plugins/ with corresponding names: Migrations and Users

3) make sure you loaded plugins by including them in app/Config/bootstrap.php like: CakePlugin::load('Migrations');

4) to import Users plugins scheme go to app/ and run command ./Console/cake Migrations.migration all --plugin Users

This sequence worked for me. Hope it will help someone else. If there are any improvements to this - all are welcome.

Syntax is a bit wrong on the docs. For migration, (first install the CakeDC Migrations plugin) you should run ..

Console/cake Migrations.migration run all --plugin Users
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top