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.
 
Yep, just spent a while tracking this down.

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


Changed to

Code:
<xen:if is="{$privacyPolicyUrl}"><li><a href="{$privacyPolicyUrl}">
 
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!)
 
We have a similar error:
Template Errors: PAGE_CONTAINER
  1. htmlspecialchars() expects parameter 1 to be string, array given in /home/uberpeop/public_html/internal_data/templates/S.1,L.1,PAGE_CONTAINER.php, line 2396
However when I search for the {$xenOptions.privacyPolicyUrl} in page_container, I don't find anything to replace.
 
Back
Top Bottom