Error 403 - Request Forbidden

Phoca Guestbook - creating guestbooks in Joomla! CMS
csilla
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 22 Oct 2008, 17:16

Error 403 - Request Forbidden

Post by csilla »

Hi,

I'm using Phoca Guestbook 1.3.0 on Joomla 1.5.7 and I've met the following issue: when I try to submit a guestbook entry after not doing anything on the page for a while, I get a 403 error with the message 'Request Forbidden'. Apparently it is caused by an expired session/token, I even found the code raising the error in the file ...\components\com_phocaguestbook\controllers\phocaguestbook.php round line 39:

Code: Select all

		//check the token before we do anything else
		$token	= JUtility::getToken();
		if (!JRequest::getInt( $token, 0, 'post' ))
		{
			JError::raiseError(403, 'Request Forbidden');
		}
I guess this is how it's meant to be, still I was wondering if it's really necessary or maybe there is a better way to handle the issue, since I find quite inappropriate such a severe error for a simple session timeout. Any help/advice would be welcome.

Regards,
Csilla
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error 403 - Request Forbidden

Post by Jan »

Hi, this is a standard jommla error warning, but yes, I can change it in next version (e.g. to redirect into main site with some error message in the system message area)

Jan
If you find Phoca extensions useful, please support the project
csilla
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 22 Oct 2008, 17:16

Re: Error 403 - Request Forbidden

Post by csilla »

That would be nice. Thanks for your answer and for this fine component, keep up the good work. :|

Regards,
Csilla
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error 403 - Request Forbidden

Post by Jan »

:wink:
If you find Phoca extensions useful, please support the project
Post Reply