Hi, I'm found the follow error:

If logging is enable on "logging search" at /admin/config/search/pages

we get PHP Fatal error: Call to a member function notice() on null in .../modules/search404/src/Controller/Search404Controller.php on line 69

is this line: $this->logger->notice('Searched %type for %keys.', array('%keys' => $keys, '%type' => $entity->label()));

if I disable the "logging search" at /admin/config/search/pages, Search 404 work fine.

Comments

vimokkhadipa created an issue. See original summary.

anish.a’s picture

Assigned: Unassigned » anish.a
vimokkhadipa’s picture

Hi,
I replace the line for this:

$this->getLogger()->notice('Searched %type for %keys.', array('%keys' => $keys, '%type' => $entity->label()));

logger by getLogger()
and work fine.

anish.a’s picture

The logger interface is not implemented properly. Have to add a service definition.

fathimathsajila’s picture

Existing code is working fine.

mslabba_zyxware’s picture

Assigned: anish.a » Unassigned
Status: Active » Closed (cannot reproduce)

Closing ticket, since couldn't reproduce the issue.