Call to a member function make() on null after the update
Permalink
I've updated from 5.7 to 8.4.3. The dashboard pages are all working fine. However, on the front end pages I'm getting an unexpected error "Call to a member function make() on null". The pages that has this error message do not have any edit buttons on the edit bar. The edit bar appears but only has the C5 logo in it. Not sure what exactly is causing this.
As a fist step, in the dashboard disable all caches and clear the cache, then put doctrine into development mode (search on 'entities).
I did all that but still not working. After putting doctrine into development mode, I also refreshed entities but still no luck. Any other suggestions?
It turned out to be an issue with how I had the "BasicThumbnailer" class initialised.
I changed this to:
This seemed to have resolved the issue.
$th = new BasicThumbnailer();
I changed this to:
$app = \Concrete\Core\Support\Facade\Application::getFacadeApplication(); $th = $app->make('helper/image');
This seemed to have resolved the issue.