bakkerij / notifier

Notifications plugin for CakePHP 3.x
MIT License
59 stars 38 forks source link

Install failes #16

Closed ulistaerk closed 8 years ago

ulistaerk commented 8 years ago

Can not install the plugin: php composer.phar create-project --prefer-dist cakephp/app cakeadmintestapp cd cakeadmintestapp php ../composer.phar require cakeplugins/notifier bin/cake plugin install -b Notifier

fails: Error: Unknown short option b

If I use the load plugin it works: bin/cake plugin load Notifier

But the next step fails: bin/cake migrations migrate Notifier Exception: Plugin Notifier could not be found. in [/var/www/vhosts/workspace_us/htdocs/cakeadmintestapp/vendor/cakephp/cakephp/src/Core/Plugin.php, line 148]

bobmulder commented 8 years ago

Sounds very strange to me, what version did you install of CakePHP itself?

ulistaerk commented 8 years ago

according to composer.json: "php": ">=5.5.9", "cakephp/cakephp": "~3.2", "mobiledetect/mobiledetectlib": "2.", "cakephp/migrations": "~1.0", "cakephp/plugin-installer": "", "cakeplugins/notifier": "^1.1"

It is: 3.2.12

bobmulder commented 8 years ago

Can it be the 3.3.0-beta release or not?

bobmulder commented 8 years ago

Problem 1

Can not install the plugin: php composer.phar create-project --prefer-dist cakephp/app cakeadmintestapp cd cakeadmintestapp php ../composer.phar require cakeplugins/notifier bin/cake plugin install -b Notifier

fails: Error: Unknown short option b

This can be solved using load instead of install. My fault, because it's documented this way in the documentation ;) So cake plugin load -b Notifier should work.

Problem 2 will follow up ;)

bobmulder commented 8 years ago

Problem 2

If I use the load plugin it works: bin/cake plugin load Notifier

But the next step fails: bin/cake migrations migrate Notifier Exception: Plugin Notifier could not be found. in [/var/www/vhosts/workspace_us/htdocs/cakeadmintestapp/vendor/cakephp/cakephp/src/Core/Plugin.php, line 148]

I know whats wrong here. I've moved several times from namespace because of the organisation name. The plugin should be called CakePlugins/Notifier, but since the organisation name 'CakePlugins' isn't allowed by the Cake Organisation I've to rename it.

I will do this today, and will fix all documentation issues so you can use this library. My apologies for all struggles!

bobmulder commented 8 years ago

Hi @ulistaerk,

As you see the repository has been moved.

You can install the plugin following the readme: https://github.com/bakkerij/notifier