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;