XF 1.5 Template error after upgrading to 1.5.20

Stuart Wright

Well-known member
Upgraded our sandbox. Get this error at the top of all pages:

Template Errors: PAGE_CONTAINER
  1. htmlspecialchars() expects parameter 1 to be string, array given in /home/sites/sandbox/public_html/internal_data/templates/S.2,L.1,PAGE_CONTAINER.php, line 3115

Any help appreciated.


Well-known member
I believe it’s due to the line where they changed the privacy policy and contact us link (page_container).

Joe Link

Well-known member
Yep, just spent a while tracking this down.

<xen:if is="{$xenOptions.privacyPolicyUrl}"><li><a href="{$xenOptions.privacyPolicyUrl}">

Changed to

<xen:if is="{$privacyPolicyUrl}"><li><a href="{$privacyPolicyUrl}">


Well-known member
The new link to our Privacy Policy (after upgrading) was just pointing to our homepage.

This fix worked perfectly, fixed my problem (thanks @Russ for pointing it out!)