Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Admin plugin

Started by Muut Archive 11 years ago · 10 replies · 770 views
11 years ago

I keep getting this error on back end
InvalidArgumentException thrown with message "Identifier "user" is not defined."

TXT
#10 InvalidArgumentException in /home/mypath/birthday/vendor/pimple/pimple/src/Pimple/Container.php:95
#9 Pimple\Container:offsetGet in /home/mypath/birthday/user/plugins/admin/classes/admin.php:93
#8 Grav\Plugin\Admin:__construct in /home/mypath/birthday/user/plugins/admin/admin.php:309
#7 Grav\Plugin\AdminPlugin:initializeAdmin in /home/mypath/birthday/user/plugins/admin/admin.php:113
#6 Grav\Plugin\AdminPlugin:onPluginsInitialized in <#unknown>:0
#5 call_user_func in /home/mypath/birthday/vendor/symfony/event-dispatcher/EventDispatcher. php:164
#4 Symfony\Component\EventDispatcher\EventDispatcher:doDispatch in /home/mypath/birthday/vendor/symfony/event-dispatcher/EventDispatcher. php:53
#3 Symfony\Component\EventDispatcher\EventDispatcher:dispatch in /home/mypath/birthday/vendor/rockettheme/toolbox/Event/src/EventDispat cher.php:23
#2 RocketTheme\Toolbox\Event\EventDispatcher:dispatch in /home/mypath/birthday/system/src/Grav/Common/Gra v.php:371
#1 Grav\Common\Grav:fireEvent in /home/mypath/birthday/system/src/Grav/Common/Grav.php:201
#0 Grav\Common\Grav:process in /home/mypath/birthday/index.php:31

I have a user/accounts/admin.yaml file like:

YAML
email: xxxx
fullname: 'xxxxx'
title: 'Site Administrator'
access:
  site.login: true
admin:
    login: true
    super: true
authenticated: true
hashed_password: $2y$10$8FapKwpx9pjsja1nrvyPdOKZbHqWJCaxdugRJetOdSSzexBHrACoG

Am i missing a config?

11 years ago

Not sure if this is the problem, but the admin.yaml structure should be

YAML
access:
  admin:
    login: true
    super: true
  site:
    login: true

does it change anything?

11 years ago

thx for reply - changed that but no difference. still get

TXT

11 years ago

argh / doh!
i had underscored the folder

11 years ago

because of an issue with private plugin..

11 years ago

Yes thx but it causes issues with private plugin not rendering. My bad reporting this as issue. See my other post 'Login and private plugin'

11 years ago

Seems there is a twig template conflict between login plugin which is needed and used by the admin plugin, and the private plugin which has the same template name. So currently these two plugins are not compatible with one another.

11 years ago

Thx for this - will attack that issue in private plugin when i have a moment

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1333 9 years ago
Archive · by Muut Archive, 9 years ago
2 924 9 years ago
Archive · by Muut Archive, 9 years ago
2 4055 9 years ago
Archive · by Muut Archive, 9 years ago
1 2935 9 years ago
Archive · by Muut Archive, 9 years ago
3 1110 9 years ago