Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
  1. #21
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: SSL problems

    Quote Originally Posted by Badvoc View Post
    I'm not sure what to do now....

    since I haven't put any stock or anything in yet perhaps the easiest route would be to delete and re-install Zen in https://secure.gothicmagic.co.uk

    but then I guess that would have to be my shop url which isn't very nice.

    But in short it looks like I cocked it up when I bought my SSL cert, it suggested secure in front of my url by default and I just went with it, live and learn I guess.s
    You can try it.
    My guess is that you'll have the same mess when you're done, and be no further ahead other than to be certain that your host's server setup is ... well ... bad.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #22
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: SSL problems

    If this was not one of the expensive ones, and I hope it was not...You can obtain another and possibly have it issued to the www. domain url also
    Zen-Venom Get Bitten

  3. #23
    Join Date
    Feb 2008
    Posts
    45
    Plugin Contributions
    0

    Default Re: SSL problems

    Doing this appears to have cured the problems:

    Comment out the original lines (use // in front of them) and add the following underneath:

    $request_type = (getenv('HTTP_X_FORWARDED_HOST') == 'secure.gothicmagic.co.uk') ? 'SSL' : 'NONSSL';

    The files and lines are:

    admin\includes\init_includes\init_file_db_names.php Line 20
    includes\init_includes\init_file_db_names.php Line 18
    includes\modules\payment\paypal\ipn_application_top.php Line 46

    I think that's them all. Basically we need to set the variable $request_type to either SSL or NOSSL appropriately.
    it appears to be working now, can anyone see any problems with having done the above? A guy on www.dropshipforum.co.uk told me to try it but says he's only learning about Zen but thought it should work.

  4. #24
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: SSL problems

    Does it work also if you change that line to this instead:
    [FONT="Courier New"]$request_type = ((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == '1') || (isset($_SERVER['HTTP_X_FORWARDED_BY']) && strstr(strtoupper($_SERVER['HTTP_X_FORWARDED_BY']),'SSL')) || (isset($_SERVER['HTTP_X_FORWARDED_HOST']) && (strstr(strtoupper($_SERVER['HTTP_X_FORWARDED_HOST']),'SSL') || strstr(strtoupper($_SERVER['HTTP_X_FORWARDED_HOST']),str_replace('https://', '', HTTPS_SERVER))) ) || || (isset($_SERVER['SCRIPT_URI']) && strtolower(substr($_SERVER['SCRIPT_URI'], 0, 6)) == 'https:') || (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ) ) ? 'SSL' : 'NONSSL';[/FONT]
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #25
    Join Date
    Feb 2008
    Posts
    45
    Plugin Contributions
    0

    Default Re: SSL problems

    lol it appears to be working fine, I'm not changing anything now that it's working

  6. #26
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Site won't switch into SSL mode - using servage.net hosting

    I was hoping that if what I posted will work in your case that it may work for others as well, and therefore could be included in the next version of Zen Cart.

    But thanks anyway.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #27
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Site won't switch into SSL mode - using servage.net hosting

    Quote Originally Posted by DrByte View Post
    I was hoping that if what I posted will work in your case that it may work for others as well, and therefore could be included in the next version of Zen Cart.

    But thanks anyway.
    DrByte, the code you posted has some error in it, should be:

    $request_type = ((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ||
    (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == '1') ||
    (isset($_SERVER['HTTP_X_FORWARDED_BY']) && strstr(strtoupper($_SERVER['HTTP_X_FORWARDED_BY']),'SSL')) ||
    (isset($_SERVER['HTTP_X_FORWARDED_HOST']) && (strstr(strtoupper($_SERVER['HTTP_X_FORWARDED_HOST']),'SSL') ||
    strstr(strtoupper($_SERVER['HTTP_X_FORWARDED_HOST']),str_replace('https://', '', HTTPS_SERVER))) ) ||
    (isset($_SERVER['SCRIPT_URI']) && strtolower(substr($_SERVER['SCRIPT_URI'], 0, 6)) == 'https:') ||
    (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ) ) ? 'SSL' : 'NONSSL';

    And I can confirm it doesnt solve the problem in my customer case.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. v150 Broken Lock in IE - problems when hosting with servage.net
    By IDW in forum General Questions
    Replies: 20
    Last Post: 5 Mar 2012, 02:19 AM
  2. authorize.net test mode failure (GoDaddy hosting problem)
    By webmiss in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 30 Jun 2011, 02:50 PM
  3. Servage SSL Site Seal - Warning
    By Justrimless in forum General Questions
    Replies: 2
    Last Post: 1 Oct 2008, 10:28 AM
  4. Anybody use servage.net for hosting
    By IDW in forum General Questions
    Replies: 1
    Last Post: 23 Dec 2006, 05:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg