• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

ismemberof error

Mythotical

Well-known member
#1
I am attempting to display specific information through template hooks, I had this working prior to 1.1.3 but now it errors out.

Template Errors: myproducts_info

  1. Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in /home/mythotic/public_html/library/XenForo/Template/Helper/Core.php, line 1153
  2. Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in /home/mythotic/public_html/library/XenForo/Template/Helper/Core.php on line 1161 and defined in /home/mythotic/public_html/library/XenForo/Model/User.php, line 1384
  3. Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in /home/mythotic/public_html/library/XenForo/Template/Helper/Core.php, line 1153
  4. Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in /home/mythotic/public_html/library/XenForo/Template/Helper/Core.php on line 1161 and defined in /home/mythotic/public_html/library/XenForo/Model/User.php, line 1384
  5. Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in /home/mythotic/public_html/library/XenForo/Template/Helper/Core.php, line 1153
  6. Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in /home/mythotic/public_html/library/XenForo/Template/Helper/Core.php on line 1161 and defined in /home/mythotic/public_html/library/XenForo/Model/User.php, line 1384
  7. Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in /home/mythotic/public_html/library/XenForo/Template/Helper/Core.php, line 1153
  8. Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in /home/mythotic/public_html/library/XenForo/Template/Helper/Core.php on line 1161 and defined in /home/mythotic/public_html/library/XenForo/Model/User.php, line 1384
  9. Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in /home/mythotic/public_html/library/XenForo/Template/Helper/Core.php, line 1153
  10. Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in /home/mythotic/public_html/library/XenForo/Template/Helper/Core.php on line 1161 and defined in /home/mythotic/public_html/library/XenForo/Model/User.php, line 1384
  11. Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in /home/mythotic/public_html/library/XenForo/Template/Helper/Core.php, line 1153
  12. Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in /home/mythotic/public_html/library/XenForo/Template/Helper/Core.php on line 1161 and defined in /home/mythotic/public_html/library/XenForo/Model/User.php, line 1384
This is my template:
HTML:
<dl class="pairsInline">
<dt>Products:</dt>
<dd>
<xen:if is="{xen:helper ismemberof, $user, 8}">
MyShop, 
</xen:if>

<xen:if is="{xen:helper ismemberof, $user, '9'}">
MyReviews, 
</xen:if>

<xen:if is="{xen:helper ismemberof, $user, '11'}">
MyClassifieds, 
</xen:if>

<xen:if is="{xen:helper ismemberof, $user, '13'}">
MyListing, 
</xen:if>

<xen:if is="{xen:helper ismemberof, $user, '17'}">
MyPoints, 
</xen:if>

<xen:if is="{xen:helper ismemberof, $user, '18'}">
MyGallery (Alpha), 
</xen:if>
MyPortal, 
MyNewsletter</dd>
</dl>
<dl class="pairsInline">
<dt>Forum Expert in:</dt>
<dd><xen:if is="{xen:helper ismemberid, $user, 1}">
MyShop
</xen:if>
<xen:if is="{xen:helper ismemberid, $user, 2}">
MyPoints, MyGallery
</xen:if>
</dd>
</dl>
 

Mythotical

Well-known member
#4
Ok I moved it directly into the template of message_user_info instead of doing a template hook and it worked, why won't it work using a template hook and including my own custom template?