EE 6.2.4
Not sure when this became an issue, this is a site that has been running for years and has had many updates. When I go to Channels in the CP and select a channel name, some will result in this error, and some will load the channel settings correctly. Any ideas? Thanks!
Error Caught
Call to a member function getMemberName() on null
ee/ExpressionEngine/Controller/Channels/Channels.php:816
Stack Trace: Please include when reporting this error
#0 ee/ExpressionEngine/Controller/Channels/Channels.php(266): ExpressionEngine\Controller\Channels\Channels->renderSettingsTab()
#1 ee/ExpressionEngine/Controller/Channels/Channels.php(169): ExpressionEngine\Controller\Channels\Channels->form()
#2 [internal function]: ExpressionEngine\Controller\Channels\Channels->edit()
#3 ee/ExpressionEngine/Core/Core.php(257): call_user_func_array()
#4 ee/ExpressionEngine/Core/Core.php(113): ExpressionEngine\Core\Core->runController()
#5 ee/ExpressionEngine/Boot/boot.php(161): ExpressionEngine\Core\Core->run()
#6 public/admin.php(153): require_once('...')
#6 public/admin.php(153): require_once('...')
I would start by disabling extensions (https://docs.expressionengine.com/latest/control-panel/utilities.html#manage-add-on-extensions ) then enabling one by one until you replicate the problem. That’s typically the culprit.
This was caused because a member was set as the default author of a channel, then that member was deleted. Updating the default author in the database with an active member’s ID resolved this issue.
I’ve opened up an issue in Github for the team to look at a way to solve this. https://github.com/ExpressionEngine/ExpressionEngine/issues/1867
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.