Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

4.3.1 Redirection Loop Rate Topic   - - - - -

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12156 posts

Posted 21 May 2015 - 07:15 PM #1

Helpdesk has been no help whatsoever. Cs-cart did the upgrade from V4.2 to V4.3 for this client.

I have an addon that I believe is immune to all published addon changes for V4.3.1.

Admin appears to work properly.
However, going to customer's home page ends up in redirect loop of 301 redirect on /index.php.

67.168.X.Y - - [20/May/2015:19:13:08 -0600] "GET /index.php HTTP/1.1" 301 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0"
67.168.X.Y - - [20/May/2015:19:13:08 -0600] "GET /index.php HTTP/1.1" 301 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0"[/font][/indent]

and repeats


Customer site forces https (but not sure whether this is done in cs-cart or above the .htaccess level).

The odd thing is that this addon has no customer components. No controllers/frontend (other than an addon specific one that displays the version), no theme templates, nothing. It uses two hooks (change_order_status and update_profile), neither of which would be touched on just accessing the home page.

If I disable the addon, the redirection problem goes away.

I've looked at the logs and see the 301 redirects (above). But I have no way of knowing what page is doing the redirection and/or where it might be coming from.

Anyone have any insight on how to diagnose this issue on this customer's production site? They have several other addons from several other developers installed. And there are other "admin only" addons from me that are NOT generating this issue.

I'm perplexed on how to proceed and would appreciate any insights you might have.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22892 posts

Posted 22 May 2015 - 09:05 AM #2

If you provide us with the temporary FTP access, our specialists can check the issue.

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • imac
  • CEO
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2077 posts

Posted 22 May 2015 - 03:34 PM #3

Tony, looks llike we found the problem. But could not say for sure its source.
At the moment as temporary solution you can define constant
define('DISABLE_HOOK_CACHE', 1);
in config and this will solve the problem.

I will post the "good fix" as soon as we find the source of the problem.
Ilya Makarov,
CS-Cart Architect Team
Suggest and vote for new features | Report a bug

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12156 posts

Posted 22 May 2015 - 06:07 PM #4

Awesome. Added the define to local_conf.php (conditionally) and the client side now seems to work.
Thanks for the quick response.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • imac
  • CEO
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2077 posts

Posted 22 May 2015 - 10:18 PM #5

Tony, here is the right fix: https://gist.github....a08c094610f6e91
So you can remove the constant DISABLE_HOOK_CACHE, because it can affect the performance.
Ilya Makarov,
CS-Cart Architect Team
Suggest and vote for new features | Report a bug

 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 4006 posts

Posted 22 May 2015 - 10:26 PM #6

Damn Tony! You must be special to get that kind of service?

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12156 posts

Posted 22 May 2015 - 10:30 PM #7

Must be my lucky day. Thanks Imac for the great service. I was really at a loss as to how to proceed.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.