D-Mack Media Forums

Full Version: Error when send recomendation like anonymous
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When i try to send recomendation like anonymous i recive the following mensage:

Invalid Token

this is a new instalation of joomla (1.5.4.) and i think that i have the configuration ok.

The only alteracion that i have done is to translate the language file to portuguese (pt-pt).

When i login and try to send the mensage every thing is alright.

Note: sorry for my bad english
Hi JoaoMedeiros,

Welcome to the Forums!

I have one question that may be quite helpful...

Can you send, and receive, an email using the standard Joomla! Contact Us form?

Reason why I ask is that my component uses the same 'token' script as the standard Joomla! Contact Us form does (it's a security measure). Sooooo, if it works for the contact us form, it "should" work for the recommendfriends component.

Please let us know...

Thanks!

D-Mack
hi,

yes it´s true the contact form doesn´t work.

I read the following threats:

http://forum.joomla.org/viewtopic.php?f=428&t=307160
http://forum.joomla.org/viewtopic.php?f=199&t=266581

and done what they sugest but the problem presist. do you have an Idea how to solv this?

Thanks in advance
Hi again JoaoMedeiros,

Not a good sign that your standard Contact Form doesn't work - makes me think it's not the RecommendFriends component, but rather a server/site issue.

One thing that might help would be a link to your site ( I could check the source code where the component, or contact us form, is located and see if the Token code is getting generated properly).

I looked at the threads you included - most of the problems definitely seem to be related to the site template. I have a few more questions for you:

Do you have the 'Legacy' plugin enabled? If so, what happens if you disable it and then try sending an email in the standard Joomla! Contact Us form?

In the site template you are using - see if there is a subdirectory called 'html' and look for a 'mod_login' folder. If it's there, chances are that that's the culprit. The file would be located in something like:

YourSiteTemplateName/html/mod_login/default.php

You may have done this already, but if it's there, open it in a text editor and look for the code:

Code:
<input type="hidden" name="<?php echo JUtility::getToken(); ?>" value="1" />

and replace it with:

Code:
<?php echo JHTML::_( 'form.token' ); ?>


I read on another thread on the Joomla! Forums that you could try to "Turn off the Joomla! SEO/SEF" (and any other SEO component/module/plugin you may have enabled) it was the only thing that worked for one user.

And another user stated: "... when I turned standard Joomla! cache off the problem "Invalid Token" went away with it..." You could try that and see if it does anything.

One final thing - are you using Internet Explorer? If so, would it be possible to test to see if you get the error in a FireFox Browser?

Hopefully we can get this resolved for you! Keep us posted on how you make out!!

D-Mack

P.S. Have you tried a different site template? Just to see if that works...

Reference URL's