Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Redirect loop after upgrade from 3.6.2 to 3.6.6
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: Redirect loop after upgrade from 3.6.2 to 3.6.6

Redirect loop after upgrade from 3.6.2 to 3.6.6 14 years, 3 months ago #13532

Hello,

I have upgraded JoomSEF from 3.6.2 to first 3.6.6 and now 3.7.0.

Since the upgrade this 301 redirect gives me an error, saying that I have a redirect loop.

My 301 is defined like this:

Old url: my-orders/my_orders
New url: my-orders

It has worked fine until I upgraded.

What do I need to do to make this work again?

Or alternatively can I downgrade again easily?

This is unfortunately affecting my orders system, so it is a serious problem for me.

Thanks for your help. :-)

Cheers,

Anders
Last Edit: 14 years, 3 months ago by andersvinther.
The topic has been locked.

Re:Redirect loop after upgrade from 3.6.2 to 3.6.6 14 years, 3 months ago #13533

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

Go to Manage SEF URLs page in JoomSEF. Is there a SEF URL "my-orders/my_orders"? If it is, try manually changing it to "my-orders" only.

Best regards,
ARTIO Support Team
ARTIO Support Team
The topic has been locked.

Re:Redirect loop after upgrade from 3.6.2 to 3.6.6 14 years, 3 months ago #13538

Hi David,

Thanks for your reply...

No, I do not have any SEF urls with order at all...

I guess if that had been the case it would not have worked in 3.6.2 either?

My guess is something has changed between 3.6.2 and the later versions?

Cheers,

Anders
The topic has been locked.

Re:Redirect loop after upgrade from 3.6.2 to 3.6.6 14 years, 3 months ago #13549

Hi David,

I just want to explain how I can be certain that the problem is to do with the upgrade.

I was notified about the problem by a customer.

After some problem determination I thought it could be related to the JoomSEF upgrade.

My test server was still on 3.6.2, so I tested that it worked, then upgraded to 3.7.0 and the problem appeared.

So I am certain it is something related to the upgrade.

I have taken backups... but since I did the upgrade a couple of weeks ago lots of other things have changed on the site, which means it will be difficult to restore the backup, and redo everything else that has changed.

So therefore I'd appreciate instructions on how to downgrade to 3.6.2 if the problem cannot be solved.

Thanks for your help.

Cheers,

Anders
The topic has been locked.

Re:Redirect loop after upgrade from 3.6.2 to 3.6.6 14 years, 3 months ago #13570

  • dajo
  • OFFLINE
  • Posts: 5069
This has probably something to do with the new feature that redirects URLs in standard Joomla! SEF format to the JoomSEF URLs to prevent duplicates. Unfortunately, there is no option to disable this at the moment. We will add this option in next version.

You can disable this feature directly in the code following these steps:
1. Open the file /components/com_sef/joomsef.php
2. Around line 974 find this block of code:
if (count($_POST) == 0) {
// Non-SEF redirect
if ((strpos($jSef, 'index.php?') === false) && ($oldUrl != $jSef)) {
// Seems the URL is SEF, let's redirect
$f = $l = '';
if( !headers_sent($f, $l) ) {
$mainframe =& JFactory::getApplication();
$mainframe->redirect($jSef, '', 'message', true);
exit();
} else {
JoomSEF::_headers_sent_error($f, $l, __FILE__, __LINE__);
}
}
}

3. Either delete the block or just comment it out by adding /* and */ like this:
/*
if (count($_POST) == 0) {
// Non-SEF redirect
if ((strpos($jSef, 'index.php?') === false) && ($oldUrl != $jSef)) {
// Seems the URL is SEF, let's redirect
$f = $l = '';
if( !headers_sent($f, $l) ) {
$mainframe =& JFactory::getApplication();
$mainframe->redirect($jSef, '', 'message', true);
exit();
} else {
JoomSEF::_headers_sent_error($f, $l, __FILE__, __LINE__);
}
}
}
*/


That should disable this feature..
Or you can wait until we release the new version, but that will probably take some time, since the last one was released few days ago..
Or I can instruct you on how to downgrade JoomSEF, but since that must also be done manually, maybe the code modification is better option..
I can also do the modification for you, if you can send me the FTP access information to Tato emailová adresa je chráněna před spamboty, abyste ji viděli, povolte JavaScript

Best regards,
ARTIO Support Team
ARTIO Support Team
The topic has been locked.

Re:Redirect loop after upgrade from 3.6.2 to 3.6.6 14 years, 3 months ago #13572

Hi David,

That did seem to solve the problem.

I am not sure I understand why redirection from standard Joomla SEF to JoomSEF would cause this problem, but I don't think I need to understand it either...

Thanks for your quick help.

Anders
The topic has been locked.
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný