“Invalid Token“ on front when i save an article

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
Orbiplanax
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jun 05, 2007 2:45 pm

“Invalid Token“ on front when i save an article

Post by Orbiplanax » Thu Mar 06, 2008 4:04 pm

yop,

i have problem with the edition of article on front

no problem on the login, next i click on the edit icon. i have my editor.
But when i save the modifications i have a blank page whith “Invalid Token “

Someone have an idea?

i dont have the problème on the back

thanks

Orbiplanax
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jun 05, 2007 2:45 pm

Re: “Invalid Token“ on front when i save an article

Post by Orbiplanax » Mon Mar 17, 2008 10:34 am

Up...

i have make the update 1.5.0 to 1.5.1
This not resolve the problème.

I try to replace the administrator folder on my site with the adminitrator folder of 1.5.1 but i have always the same error at the same place.

please

Frixus
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Mar 19, 2008 12:24 pm

Re: “Invalid Token“ on front when i save an article

Post by Frixus » Wed Mar 19, 2008 12:34 pm

Same here. There has to be some quick way to fix this... but where to look?

Frixus
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Mar 19, 2008 12:24 pm

Re: “Invalid Token“ on front when i save an article

Post by Frixus » Wed Mar 19, 2008 1:23 pm

I noticed that changing my site template solved the problem, so I investigated some more. Then I found that there was a line missing from the 'com_content/article/form.php' in my template near the end. The 'original' file, '/components/com_content/views/article/tmpl/form.php', contains the additional line:

Code: Select all

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

csgsw
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Mar 11, 2008 9:06 am

Re: “Invalid Token“ on front when i save an article

Post by csgsw » Fri Apr 04, 2008 8:07 am

I have this problem too.
I use Universatil Template and the error message "Invalid Token" is only from front-end when I try to save.
I have the line "<?php echo JHTML::_( 'form.token' ); ?>" in the com_content too.
Please help me.

myronlee
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Thu Sep 06, 2007 7:53 pm

Re: “Invalid Token“ on front when i save an article

Post by myronlee » Mon Apr 07, 2008 3:22 pm

I have this problem also, at any given time... but it doesn't happen when using FireFox browser.

mikef
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Apr 28, 2008 3:38 am

Re: “Invalid Token“ on front when i save an article

Post by mikef » Mon Apr 28, 2008 2:41 pm

I am having the same problem using the beez template (with my modifications). I get the error both under Joomla 1.5.1 and after upgrading to 1.5.3.

I do not get the error with other templates.

I tried adding <?php echo JHTML::_( 'form.token' ); ?> at various locations in form.php under beez but to no avail.

Exactly where was it added to get things working again?

Any other ideas would be appreciated.

LJM
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Apr 30, 2008 9:42 am

Re: “Invalid Token“ on front when i save an article

Post by LJM » Wed Apr 30, 2008 9:54 am

Frixus,
I did as you said and it worked: I did in the code in the template root.
Thank you

ticonzero
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Mon Mar 09, 2009 11:28 am

Re: “Invalid Token“ on front when i save an article

Post by ticonzero » Mon Mar 09, 2009 12:34 pm

Hello,
I'm new in here; I have the same problem and I tried as you did but no results. I tried to set a different template and It worked.

The point is I need to use the template that cause me that error.
How to fix it please?

ticonzero. :pop

ticonzero
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Mon Mar 09, 2009 11:28 am

Re: “Invalid Token“ on front when i save an article

Post by ticonzero » Mon Mar 09, 2009 12:38 pm

Frixus wrote:I noticed that changing my site template solved the problem, so I investigated some more. Then I found that there was a line missing from the 'com_content/article/form.php' in my template near the end. The 'original' file, '/components/com_content/views/article/tmpl/form.php', contains the additional line:

Code: Select all

<?php echo JHTML::_( 'form.token' ); ?>
Hello,
I'm new in here; I have the same problem and I tried as you did but no results. I tried to set a different template and It worked.

The point is I need to use the template that cause me that error.
How to fix it please?

ticonzero. :pop

User avatar
loonietunez
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Mar 17, 2009 5:50 pm

Re: “Invalid Token“ on front when i save an article

Post by loonietunez » Thu Mar 19, 2009 8:51 am

I've been having the same fault from the front end edit.i just renamed the beez/html/com_content/article/form.php file to forms.php1 so it wasn't used and it fixed my problem.

hope it helps someone!

ticonzero
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Mon Mar 09, 2009 11:28 am

Re: “Invalid Token“ on front when i save an article

Post by ticonzero » Thu Mar 19, 2009 9:33 am

loonietunez wrote:I've been having the same fault from the front end edit.i just renamed the beez/html/com_content/article/form.php file to forms.php1 so it wasn't used and it fixed my problem.

hope it helps someone!
Thank you, I have fixed now. May I ask you how you have found the fix please?

:)

User avatar
loonietunez
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Mar 17, 2009 5:50 pm

Re: “Invalid Token“ on front when i save an article

Post by loonietunez » Thu Mar 19, 2009 11:07 am

Of course! I would like to say based on my infinite wisdom! But alas it was after hours of desperation at trying everything else and pulling my hair out, that i renamed the file. Pure luck really.

ticonzero
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Mon Mar 09, 2009 11:28 am

Re: “Invalid Token“ on front when i save an article

Post by ticonzero » Thu Mar 19, 2009 11:16 am

loonietunez wrote:Of course! I would like to say based on my infinite wisdom! But alas it was after hours of desperation at trying everything else and pulling my hair out, that i renamed the file. Pure luck really.

Eh! Eh! I seem in some way there is an invisible link besides us ... it is only a personal perception of course; I would like to know if it is true.

Anyway thank you.

User avatar
loonietunez
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Mar 17, 2009 5:50 pm

Re: “Invalid Token“ on front when i save an article

Post by loonietunez » Thu Mar 19, 2009 11:27 am

You are welcome!

ticonzero
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Mon Mar 09, 2009 11:28 am

Re: “Invalid Token“ on front when i save an article

Post by ticonzero » Thu Mar 19, 2009 11:33 am

loonietunez wrote:You are welcome!

Ah ok. Live is beatiful. ;)

User avatar
C10ne
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Wed Sep 10, 2008 3:46 pm
Contact:

Re: “Invalid Token“ on front when i save an article

Post by C10ne » Thu Apr 09, 2009 3:58 pm

Hi, we started having the same problem after doing some minor redesign changes, nothing about the forms on templates has been changed. I've noticed that token is different every time i refresh the article editing page, and i was wondering if this is normal behavior (since token is the hash of user id and session id)?
Destruction is the mother of creativity

xjareth
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun May 17, 2009 5:39 pm

Re: “Invalid Token“ on front when i save an article

Post by xjareth » Sun May 17, 2009 5:43 pm

<input type="hidden" name="referer" value="<?php echo @$_SERVER['HTTP_REFERER']; ?>" />
<?php echo JHTML::_( 'form.token' ); ?> *******HERE***********
<input type="hidden" name="task" value="" />
</form>
<?php echo JHTML::_('behavior.keepalive'); ?>

Greetings from Colombia

eddiewfs
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Sep 13, 2009 11:47 pm

Re: “Invalid Token“ on front when i save an article

Post by eddiewfs » Sun Sep 13, 2009 11:52 pm

loonietunez wrote:I've been having the same fault from the front end edit.i just renamed the beez/html/com_content/article/form.php file to forms.php1 so it wasn't used and it fixed my problem.

hope it helps someone!
Thanx loonietunez, my prob. fixed now. i'm really worried because previously everything is ok when i present the joomla to my client.

Playmoon
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Aug 28, 2008 8:29 am

Re: “Invalid Token“ on front when i save an article

Post by Playmoon » Mon Mar 15, 2010 9:52 pm

... what can I say; this saved me a lot of time..!

User avatar
chuckles87
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Sun Feb 27, 2011 6:58 am

Re: “Invalid Token“ on front when i save an article

Post by chuckles87 » Mon Feb 28, 2011 7:43 am

i googled for
JHTML::_( 'form.token' )
and it was the very first result...

while this thread was the 3rd one down...

come one now... -_-

Google-Fu

_D
Have you had your daily dose of Google-Fu today?

“I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant.”

miamiman
Joomla! Intern
Joomla! Intern
Posts: 65
Joined: Thu Jun 28, 2007 1:01 am

Re: “Invalid Token“ on front when i save an article

Post by miamiman » Tue Aug 16, 2011 1:54 am

While late, I just wanted to say thanks to the solution provide!

Changing the name of the file to form.php was indeed the solution.

/public_html/templates/beez/html/com_content/article/form.php1

Thanks again.
ConsorcioTec™
Miami, USA
https://www.consorciotec.com


Locked

Return to “Administration 1.5”