Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

RocketTheme

Fix for "invalid token error" with JomSocial & Affinity from RocketTheme
Written by   
Monday, 02 August 2010 17:59

RocketTheme template Affinity + JomSocial : invalid token error

If you are using RocketTheme Affinity template and Azrul Jomsocial 1.8, sometimes you get Invalid Token error due to some template overrides.

If you get invalid token error when you try to create a new album, discussion, bulletin, or album then here's an easy fix for you. You have to edit a few lines of code in the Affinity template. Specifically in the "html" directory.

To fix the invalid token error:

1. Open {YOUR_WWW_ROOT}/templates/rt_affinity_j15/html/com_community/groups.adddiscussion.php

2. Find this line:

3. Insert the following line after it:


The line of code to ad directly above or before the closing form tag () is; So just to be clear you can replaced the closing form tag should be the second to last line of code in each file with the following; Replace it with,

 

4. It should look like the following line of code:



5. You will need to do the same with the "add album" and the news template overrides. Insert that line anywhere between the form tags and it will work!

6. You'll need to do the same in pretty much all overriden forms such as the following;

PATH=yourdomain/templates/rt_affinity_j15/html/com_community
groups.invitefriends.php
groups.addnews.php
groups.adddiscussion.php
Photos.newalbum.php

Adding the line of code fixes many issues, depending on which file you add it to.

 


Taxonomy by Zaragoza Online