*Bug Fix 406 Error with Offline Payment

  • zoomlanski
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
15 years 1 month ago #6115 by zoomlanski
*Bug Fix 406 Error with Offline Payment was created by zoomlanski
I had the same error as this with offline event registration:

joomdonation.com/index.php?option=com_ku...iew&catid=10&id=5250


I added the false to the end of the line to solve


$url = JRoute::_('index.php?option=com_eventbooking&view=complete&id='.$row->id.'&Itemid='.$Itemid, false);

Tim

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
15 years 1 month ago #6116 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: *Bug Fix 406 Error with Offline Payment
Hi Tim

Infact, this is not a bug. The purpose of the second parameter of the function is set to true or false (true by default) .

1. If set to True, Joomla will replace & character in the url to &amp to make the url XHTML compatible .

2. If set to false, Joomla will keep the original url .

On some special server (like yours), the server doesn't like the XHTML variable, and causes the error (please note that the function is used widely in Joomla core code) .

I had two or three clients got the problem like this before, It works fine for the rest clients .

Thaks,

Tuan

Please Log in or Create an account to join the conversation.

  • zoomlanski
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
15 years 1 month ago #6117 by zoomlanski
Replied by zoomlanski on topic Re: 406 Error with Offline Payment
Interesting. This is the first time I've come across something like this.

Am I ok to use the fix that I did?

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
15 years 1 month ago #6118 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: 406 Error with Offline Payment
Yes, certainly !

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc