Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Problem Admin Shell installation #9

Closed
r0kawa opened this issue Aug 19, 2013 · 3 comments
Closed

Problem Admin Shell installation #9

r0kawa opened this issue Aug 19, 2013 · 3 comments

Comments

@r0kawa
Copy link

r0kawa commented Aug 19, 2013

CakePHP 2.3.9
PHP 5.3.15

When installing Admin plugin I've problem with

define('USER_MODEL', 'User');
define('ADMIN_PREFIX', 'admin_');
define('ADMIN_DATABASE', Configure::read('Acl.database'));
Configure::write('Admin.aliases.administrator','admin');

All of this constant is not define and not detecting the setting inside Admin/Config default setting.

After hardcode it in /app/Config/database.php installation when 'ok'

A few question is

  1. What is use for Administrator role ? Is it a Role Model ?
  2. Why after installation (Forum plugin included) can't detect the variable inside config ?

Administrator Role: admin
Is this correct? (Y/N)

y
What user would you like to give admin access?
User ID:
y
User does not exist, please try again
User ID:
1
Access granted, proceeding...

Warning Error: in_array() expects parameter 2 to be array, null given in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 116]

Warning Error: Argument 1 passed to Hash::merge() must be an array, null given, called in /Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php on line 292 and defined in [/Users/r0kawa/Sites/phpnetmy2/lib/Cake/Utility/Hash.php, line 593]

Notice Error: Undefined index: fileFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Notice Error: Undefined index: imageFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Warning Error: array_merge(): Argument #1 is not an array in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Notice Error: Undefined index: hideFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 294]

Warning Error: array_merge(): Argument #1 is not an array in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 294]

Warning Error: Argument 1 passed to Hash::merge() must be an array, null given, called in /Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php on line 292 and defined in [/Users/r0kawa/Sites/phpnetmy2/lib/Cake/Utility/Hash.php, line 593]

Notice Error: Undefined index: fileFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Notice Error: Undefined index: imageFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Warning Error: array_merge(): Argument #1 is not an array in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Warning Error: in_array() expects parameter 2 to be array, null given in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 116]

Warning Error: in_array() expects parameter 2 to be array, null given in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 116]

Warning Error: in_array() expects parameter 2 to be array, null given in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 116]

Warning Error: Argument 1 passed to Hash::merge() must be an array, null given, called in /Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php on line 292 and defined in [/Users/r0kawa/Sites/phpnetmy2/lib/Cake/Utility/Hash.php, line 593]

Notice Error: Undefined index: fileFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Notice Error: Undefined index: imageFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Warning Error: array_merge(): Argument #1 is not an array in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Notice Error: Undefined index: hideFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 294]

Warning Error: array_merge(): Argument #1 is not an array in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 294]

Warning Error: in_array() expects parameter 2 to be array, null given in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 116]

Warning Error: Argument 1 passed to Hash::merge() must be an array, null given, called in /Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php on line 292 and defined in [/Users/r0kawa/Sites/phpnetmy2/lib/Cake/Utility/Hash.php, line 593]

Notice Error: Undefined index: fileFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Notice Error: Undefined index: imageFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Warning Error: array_merge(): Argument #1 is not an array in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Notice Error: Undefined index: hideFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 294]

Warning Error: array_merge(): Argument #1 is not an array in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 294]

Warning Error: in_array() expects parameter 2 to be array, null given in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 116]

Warning Error: Argument 1 passed to Hash::merge() must be an array, null given, called in /Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php on line 292 and defined in [/Users/r0kawa/Sites/phpnetmy2/lib/Cake/Utility/Hash.php, line 593]

Notice Error: Undefined index: fileFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Notice Error: Undefined index: imageFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Warning Error: array_merge(): Argument #1 is not an array in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Installing Admin...
Action Logs
Control Objects
Item Reports
Object Permissions
Request Objects
Admin model ACOs installed

Notice Error: Undefined offset: 0 in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Console/Command/InstallShell.php, line 115]

Warning Error: in_array() expects parameter 2 to be array, null given in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 116]

Warning Error: Argument 1 passed to Hash::merge() must be an array, null given, called in /Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php on line 292 and defined in [/Users/r0kawa/Sites/phpnetmy2/lib/Cake/Utility/Hash.php, line 593]

Warning Error: array_merge(): Argument #1 is not an array in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 293]

Notice Error: Undefined index: hideFields in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 294]

Warning Error: array_merge(): Argument #1 is not an array in [/Users/r0kawa/Sites/phpnetmy2/app/Plugin/Admin/Lib/Admin.php, line 294]

Installing ...
Users
Warning Error: DbAcl::allow() - Invalid node in [/Users/r0kawa/Sites/phpnetmy2/lib/Cake/Model/Permission.php, line 175]

 model ACOs installed
@milesj
Copy link
Owner

milesj commented Aug 19, 2013

Again, have you loaded the plugin in bootstrap? CakePlugin::load('Admin', array('bootstrap' => true, 'routes' => true));

@r0kawa
Copy link
Author

r0kawa commented Aug 20, 2013

thank you. Confusingly the loadAll didn't load all ;)

@r0kawa r0kawa closed this as completed Aug 20, 2013
@milesj
Copy link
Owner

milesj commented Aug 20, 2013

Yeah, it's kind of an annoying thing. I'll add more info to the docs about it.

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

No branches or pull requests

2 participants