Closed paulrwest closed 6 years ago
CakePHP version? (see composer.lock)
Does it fails when trying to access both front & backend ?
Did you tried removing the file TMP/snapshot.php
?
As provisional fix you can alter the line 410:
$option = Router::getRequest() && Router::getRequest()->isAdmin() ? 'back_theme' : 'front_theme';
"name": "cakephp/cakephp", "version": "3.4.12",
I tried that and was then erroring about theme being ""
Your CakePHP version seems to be wrong, it should be something "3.3.x".
Try forcing it to 3.3.11
"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: