Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create page via admin #126

Closed
mufac opened this issue Aug 30, 2015 · 3 comments
Closed

Unable to create page via admin #126

mufac opened this issue Aug 30, 2015 · 3 comments
Labels

Comments

@mufac
Copy link
Contributor

mufac commented Aug 30, 2015

I think this change:

e2e1076

May have caused a regression. I'm getting:

Whoops\Exception\ErrorException thrown with message "Undefined index: type"

Stacktrace:
#13 Whoops\Exception\ErrorException in /var/www/grav/user/plugins/admin/classes/admin.php:586
#12 Whoops\Run:handleError in /var/www/grav/user/plugins/admin/classes/admin.php:586
#11 Grav\Plugin\Admin:getPage in /var/www/grav/user/plugins/admin/classes/admin.php:233
#10 Grav\Plugin\Admin:page in /var/www/grav/user/plugins/admin/admin.php:224
#9 Grav\Plugin\AdminPlugin:onTwigSiteVariables in <#unknown>:0
#8 call_user_func in /var/www/grav/vendor/symfony/event-dispatcher/EventDispatcher.php:164
#7 Symfony\Component\EventDispatcher\EventDispatcher:doDispatch in /var/www/grav/vendor/symfony/event-dispatcher/EventDispatcher.php:53
#6 Symfony\Component\EventDispatcher\EventDispatcher:dispatch in /var/www/grav/vendor/rockettheme/toolbox/Event/src/EventDispatcher.php:23
#5 RocketTheme\Toolbox\Event\EventDispatcher:dispatch in /var/www/grav/system/src/Grav/Common/Grav.php:370
#4 Grav\Common\Grav:fireEvent in /var/www/grav/system/src/Grav/Common/Twig/Twig.php:303
#3 Grav\Common\Twig\Twig:processSite in /var/www/grav/system/src/Grav/Common/Grav.php:143
#2 Grav\Common\Grav:Grav\Common{closure} in /var/www/grav/vendor/pimple/pimple/src/Pimple/Container.php:112
#1 Pimple\Container:offsetGet in /var/www/grav/system/src/Grav/Common/Grav.php:231
#0 Grav\Common\Grav:process in /var/www/grav/index.php:31

When I create a new page via the admin plugin.

Occurred with fresh clone of Grav on commit c4a51c2c9f9824a33e10957707c8e6eb0035f76f (current develop HEAD). Grav admin version v0.4.2 (commit c4a51c2c9f9824a33e10957707c8e6eb0035f76f) installed via gpm.

@rhukster
Copy link
Member

What display template/page name were you using when you tried this? Definitely is related to this commit, but if your on latest Grav and latest Admin plugin, it should work fine for you as it does for me.

@rhukster
Copy link
Member

Oh!, your running Grav from github, but admin from GPM. You need to update with admin from github also. There are changes that need to be synced between the two.

@mufac
Copy link
Contributor Author

mufac commented Aug 31, 2015

Ah my mistake. Sorry for the noise.

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

No branches or pull requests

2 participants