Bug #23719 Bug Fixed

References to removed template in exp_templates.no_auth_bounce not cleared when removing a template

Version: 4.3.4 Reporter: Low

To reproduce:

  • Create a template (A)
  • Create another template (B) and set template A as the “No access redirect” template in the Access settings
  • Remove template A
  • Try and edit template B; this error message appears:
Fatal error:
Uncaught Error: Call to a member function getId() on null in /path/to/system/ee/EllisLab/ExpressionEngine/Controller/Design/Template.php:1126

Stack trace:
#0 /path/to/system/ee/EllisLab/ExpressionEngine/Controller/Design/Template.php(973): EllisLab\ExpressionEngine\Controller\Design\Template->getExistingTemplates('1776')
#1 /path/to/system/ee/EllisLab/ExpressionEngine/Controller/Design/Template.php(281): EllisLab\ExpressionEngine\Controller\Design\Template->renderAccessPartial(Object(EllisLab\ExpressionEngine\Model\Template\Template), NULL)
#2 [internal function]: EllisLab\ExpressionEngine\Controller\Design\Template->edit('1777')
#3 /path/to/system/ee/EllisLab/ExpressionEngine/Core/Core.php(240): call_user_func_array(Array, Array)
#4 /path/to/system/ee/EllisLab/ExpressionEngine/Core/Core.php(109): EllisLab\ExpressionEngine\Core\Core->runController(Array)
#5 /path/to/system/ee/EllisLab/ExpressionEn in /path/to/system/ee/EllisLab/ExpressionEngine/Controller/Design/Template.php on line 1126

…which is caused by the template ID of the removed template A is still present in the no_auth_bounce value of template B.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases