-
Notifications
You must be signed in to change notification settings - Fork 69
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
Call to function isAdmin() on null in .../cms/config/functions.php on line 410 #179
Comments
$option = Router::getRequest() && Router::getRequest()->isAdmin() ? 'back_theme' : 'front_theme'; |
"name": "cakephp/cakephp", I tried that and was then erroring about theme being "" |
Your CakePHP version seems to be wrong, it should be something "3.3.x". "cakephp/cakephp": "3.3.11" |
Yeah I'm just looking into why it's on 3.4 Clearing cache and snapshot has helped sorry should have tried that earlier. I've added the check for Request which I had tried earlier but was showing other errors but it's now not erroring on CMS code. let me try forcing it to 3.3 |
Fixed here: quickapps/website@264d08d |
Running on Docker on PHP7
After composer update the entire CMS is broken due to the following:
functions.php:410:
$option = Router::getRequest()->isAdmin() ? 'back_theme' : 'front_theme';
Router::getRequest is returning null.
debugging Cake/Router shows
static::$_requests
as an empty array.Composer file:
The text was updated successfully, but these errors were encountered: