when creating a new page following error appears: Call to a member function routable() on a non-object
Any ideas?
Thanks
Mark
when creating a new page following error appears: Call to a member function routable() on a non-object
Any ideas?
Thanks
Mark
Can you step me through the exact steps and options you choose?
Thanks rhukster,
Clean install, installed plugins manually (unzipped plugins, renamed and copied in user-folder).
Admin works.
Navigate to “pages”
“Add page”
Fill in title - leave other fields default.
Folder name : "default"
Parent page: "Root"
Page File: "Default"
Visible: “Auto”
message:
Whoops \ Exception \ ErrorException (E_ERROR)
HELP
Call to a member function routable() on a non-object
Open: /Users/mymac/Websites/grav01-loc/system/src/Grav/Common/Page/Collectio n.php
*/
public function routable()
{
$routable = [];
foreach ($this->items as $path => $slug) {
$page = $this->pages->get($path);
if ($page->routable()) {
$routable[$path] = $slug;
}
Error data:
GET Data empty
POST Data empty
Files empty
Cookies
grav-site-ae9d31c 78d9cf5a61c94d4a798175d7c7b71e75
grav-site-ae9d31c-admin 0520e5c0785e5db05cc4b058061adf56
Session
user Grav\Common\User\User Object ( [gettersVariable:protected] => items [items:protected] => Array ( [email] => youremail@mail.com [fullname] => Johnny Appleseed [title] => Site Administrator [access] => Array ( [admin] => Array ( [login] => 1 [super] => 1 ) ) [language] => en [authenticated] => 1 [hashed_password] => $2y$10$8OMY828Zx6j6hT9QP8s90u9shOdXAqcb8NEjV059MSIzUxv8F2lcC [username] => beheerder ) [blueprints:protected] => Grav\Common\Data\Blueprint Object ( [name] => user/account [initialized] => [items:protected] => Array ( [title] => Site [form] => Array ( [validation] => loose [fields] => Array ( [content] => Array ( [type] => section [title] => PLUGIN_ADMIN.ACCOUNT [fields] => Array ( [username] => Array ( [type] => text [size] => large [label] => PLUGIN_ADMIN.USERNAME [disabled] => 1 [readonly] => 1 ) [email] => Array ( [type] => email [size] => large [label] => PLUGIN_ADMIN.EMAIL [validate] => Array ( [type] => email [message] => PLUGIN_ADMIN.EMAIL_VALIDATION_MESSAGE [required] => 1 ) ) [password] => Array ( [type] => password [size] => large [label] => PLUGIN_ADMIN.PASSWORD [validate] => Array ( [required] => 1 [message] => PLUGIN_ADMIN.PASSWORD_VALIDATION_MESSAGE [pattern] => (?=.\d)(?=.[a-z])(?=.[A-Z]).{8,} ) ) [fullname] => Array ( [type] => text [size] => large [label] => PLUGIN_ADMIN.FULL_NAME [validate] => Array ( [required] => 1 ) ) [title] => Array ( [type] => text [size] => large [label] => PLUGIN_ADMIN.TITLE ) [language] => Array ( [type] => select [label] => PLUGIN_ADMIN.LANGUAGE [size] => medium [classes] => fancy [@data-options] => \Grav\Plugin\admin::adminLanguages [default] => en [help] => PLUGIN_ADMIN.LANGUAGE_HELP ) ) ) ) ) ) [context:protected] => Grav\Common\Data\Blueprints Object ( [search:protected] => blueprints:// [types:protected] => [instances:protected] => Array ( [user/account] => Grav\Common\Data\Blueprint Object RECURSION ) ) [fields:protected] => [rules:protected] => Array ( ) [nested:protected] => Array ( ) [filter:protected] => Array ( [validation] => 1 ) ) [storage:protected] => Grav\Common\File\CompiledYamlFile Object ( [filename:protected] => /Users/mymac/Websites/grav01-loc/user/accounts/beheerder.yaml [handle:protected] => [locked:protected] => [extension:protected] => .yaml [raw:protected] => email: youremail@mail.com fullname: ‘Johnny Appleseed’ title: ‘Site Administrator’ access: admin: login: true super: true language: en authenticated: true hashed_password: $2y$10$8OMY828Zx6j6hT9QP8s90u9shOdXAqcb8NEjV059MSIzUxv8F2lcC [content:protected] => Array ( [email] => youremail@mail.com [fullname] => Johnny Appleseed [title] => Site Administrator [access] => Array ( [admin] => Array ( [login] => 1 [super] => 1 ) ) [language] => en [authenticated] => 1 [hashed_password] => $2y$10$8OMY828Zx6j6hT9QP8s90u9shOdXAqcb8NEjV059MSIzUxv8F2lcC ) [settings:protected] => Array ( ) ) )
expert
/over-ons Array ( [title] => Over ons [folder] => over-ons [visible] => [blueprint] => pages/new [name] => default [route] => / )
lastPageName default
lastPageRoute /
messages RocketTheme\Toolbox\Session\Message Object ( [messages:protected] => Array ( ) )
/over Array ( [title] => Over [folder] => over [visible] => [blueprint] => pages/new [name] => default [route] => / )
Server/Request Data
REDIRECT_STATUS 200
HTTP_HOST grav01-loc:8888
HTTP_ORIGIN http://grav01-loc:8888
HTTP_COOKIE grav-site-ae9d31c=78d9cf5a61c94d4a798175d7c7b71e75; grav-site-ae9d31c-admin=0520e5c0785e5db05cc4b058061adf56
HTTP_CONNECTION keep-alive
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,/*;q=0.8
HTTP_USER_AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9
HTTP_ACCEPT_LANGUAGE en-us
HTTP_REFERER http://grav01-loc:8888/admin/pages
HTTP_ACCEPT_ENCODING gzip, deflate
PATH /usr/bin:/bin:/usr/sbin:/sbin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME grav01-loc
SERVER_ADDR 127.0.0.1
SERVER_PORT 8888
REMOTE_ADDR 127.0.0.1
DOCUMENT_ROOT /Users/mymac/Websites/grav01-loc
SERVER_ADMIN you@example.com
SCRIPT_FILENAME /Users/mymac/Websites/grav01-loc/index.php
REMOTE_PORT 50978
REDIRECT_URL /admin/pages/over
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /admin/pages/over
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1444286905.54
REQUEST_TIME 1444286905
argv Array ( )
argc 0
Environment Variables
SHELL /bin/bash
TMPDIR /var/folders/13/3_std4095j5bh34ylht9x0vr0000gn/T/
Apple_PubSub_Socket_Render /private/tmp/com.apple.launchd.VndOjC2teC/Render
USER mymac
SSH_AUTH_SOCK /private/tmp/com.apple.launchd.2D8XNRk71J/Listeners
__CF_USER_TEXT_ENCODING 0x1F5:0x0:0x0
PATH /usr/bin:/bin:/usr/sbin:/sbin
PWD /
XPC_FLAGS 0x0
XPC_SERVICE_NAME 0
SHLVL 1
HOME /Users/mymac
LOGNAME mymac
SECURITYSESSIONID 186a5
_ /Applications/MAMP/Library/bin/httpd
Registered Handlers
pretty. Whoops\Handler\PrettyPageHandler
text. Whoops\Handler\PlainTextHandler
json. Whoops\Handler\JsonResponseHandler
log. Whoops\Handler\CallbackHandler
Well I definitely can’t replicate this. So it seems to be something on your end.
What version of Grav are you running?
Are all your plugins up to date?
Just run bin/gpm selfupgrade -f
then bin/gpm update -f
Well Rhukster, that did the trick!
Thanks a lot for helping me out, sorry for the inconvenience.
Mark