<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with themes]]></title><description><![CDATA[A list of topics that have been tagged with themes]]></description><link>https://fusionauth.io/community/forum/tags/themes</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 23:48:58 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/tags/themes.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[FreeMarker error: postMethod variable null in registration verify template]]></title><description><![CDATA[<p dir="auto">The postMethod variable can be null or missing in certain scenarios (such as when a verification link is clicked multiple times), causing the FreeMarker template to fail.</p>
<p dir="auto">To fix this, you need to provide a safe fallback for the postMethod variable. Update line 16 in your registration/verify.ftl template from:</p>
[#if verificationId?? &amp;&amp; postMethod]

<p dir="auto">To:</p>
[#if verificationId?? &amp;&amp; (postMethod!false)]

<p dir="auto">The !false syntax provides a default value of false when postMethod is null or missing, preventing the FreeMarker exception.</p>
<p dir="auto"><strong>Steps to apply the fix:</strong></p>

Navigate to <strong>Customizations → Themes</strong> in the FusionAuth admin UI
Edit your theme
Locate the registration/verify.ftl template
Update the conditional check as shown above
Save the theme

<p dir="auto">This pattern can be applied to other templates where variables might be null or missing in certain execution paths.</p>
<p dir="auto"><strong>Why this happens:</strong></p>
<p dir="auto">According to the FusionAuth documentation, the postMethod variable is <strong>not</strong> a standard template-specific variable for the /registration/verify template. It is typically available on other verification templates like /email/verify (where it defaults to true). The registration verify template is rendered when a user clicks the URL from the verification email and the verificationId has expired or is invalid. In these scenarios, postMethod may not be set in the template context, which causes the FreeMarker error when attempting to evaluate it as a boolean.</p>
Related Documentation

<a href="https://fusionauth.io/docs/customize/look-and-feel/advanced-themes/template-variables#verify-registration" rel="nofollow ugc">Theme Template Variables - Verify Registration</a> - Documents the variables available in the registration verify template
<a href="https://fusionauth.io/docs/customize/look-and-feel/advanced-themes/template-variables#email-verification" rel="nofollow ugc">Theme Template Variables - Email Verification</a> - Shows that postMethod is documented for email verification but not registration verification
<a href="https://fusionauth.io/docs/customize/look-and-feel/advanced-themes/template-variables" rel="nofollow ugc">Theme Template Variables</a> - Complete reference for all template variables across different templates

]]></description><link>https://fusionauth.io/community/forum/topic/3258/freemarker-error-postmethod-variable-null-in-registration-verify-template</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/3258/freemarker-error-postmethod-variable-null-in-registration-verify-template</guid><dc:creator><![CDATA[FASupportBot]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>