Not a bug Template public: alert_profile_post_fn_post is unknown

Affected version


Well-known member
Logs >

Server error logs

ErrorException: Template error: Template public:alert_profile_post_fn_post is unknown src/XF/Template/Templater.php:564
Stack Trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Template public...', '/home/dom...', 564, Array)
#1 src/XF/Template/Templater.php(564): trigger_error('Template public...', 512)
#2 src/XF/Template/Templater.php(519): XF\Template\Templater->getTemplateData('public', 'alert_profile_p...')
#3 src/XF/Template/Templater.php(1229): XF\Template\Templater->getTemplateCode('public', 'alert_profile_p...')
#4 src/XF/Alert/AbstractHandler.php(67): XF\Template\Templater->renderTemplate('alert_profile_p...', Array)
#5 src/XF/Entity/UserAlert.php(67): XF\Alert\AbstractHandler->render(Object(XF\Entity\UserAlert))
#6 [internal function]: XF\Entity\UserAlert->render()
#7 src/XF/Template/Templater.php(920): call_user_func_array(Array, Array)
#8 internal_data/code_cache/templates/l3/s1/public/alert_macros.php(18): XF\Template\Templater->method(Object(XF\Entity\UserAlert), 'render', Array)
#9 src/XF/Template/Templater.php(643): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#10 internal_data/code_cache/templates/l3/s1/public/account_alerts.php(28): XF\Template\Templater->callMacro('alert_macros', 'row', Array, Array)
#11 src/XF/Template/Templater.php(1230): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#12 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_alerts', Array)
#13 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#14 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Account\\Aler...', 'public:account_...', Array)
#15 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#17 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#18 src/XF.php(328): XF\App->run()
#19 index.php(13): XF::runApp('XF\\Pub\\App')
#20 {main}
Request State
array(4) {
  ["url"] => string(15) "/account/alerts"
  ["referrer"] => string(54) ""
  ["_GET"] => array(0) {
  ["_POST"] => array(0) {


XenForo developer
Staff member
This would likely be from data inserted by an add-on, probably in XF1. The template name is built based on the specific alert data to be shown. If you have an XF2 version of that add-on, you should contact the author. Otherwise, this error should be disregarded. (It will stop once the old alerts have been purged.)

Chris D

XenForo developer
Staff member
Was that the table you cleared? Or a different one?

You probably shouldn’t have cleared that one. That’s the table where a user’s alert opt outs are stored.

So say a user opted out of receiving like alerts, they’ll start receiving those alerts now.


Well-known member
@Chris D please believe me the old add-ons huge a problem after upgrade.

1- Drop old add-ons row-column from database:

ALTER TABLE xf_user DROP COLUMN old_addon_row;
ALTER TABLE xf_thread DROP COLUMN old_addon_row;
ALTER TABLE xf_post DROP COLUMN old_addon_row;
Yes all add-ons removed before upgrade but there are still some rows from old add-ons data.

2- Clear user alert table from database:

TRUNCATE TABLE xf_user_alert_optout;
DELETE FROM `xf_user_alert` WHERE `action` = 'fn_post'
If there's unknown value in row like this...

DELETE FROM `xf_user_alert` WHERE `action` = 'insert_dp'
DELETE FROM `xf_user_alert` WHERE `action` = 'post_dp'
DELETE FROM `xf_user_alert` WHERE `action` = 'ETC_dp'
I think that "fn", "dp_" was an add-on.

Anyway, run these queries and problem will solved.

So don't forget to make backups before run these commands!

That’s the table where a user’s alert opt outs are stored.

So say a user opted out of receiving like alerts, they’ll start receiving those alerts now.
Yes, I will do.