Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    Default SSL install gives a weird page for login and checkout

    Hi,

    I have a shared ssl and I have recently set the https in the admin/includes/congif.php and the includes/config.php

    All the url are coming okay (which seems to b the major problem in other threads). But my issue is whenever I set the catlog to a secure webserver to true I get this page when I click on checkout or login:

    <!-- function update_zone(theForm) { // if there is no zone_id field to update, or if it is hidden from display, then exit performing no updates if (!theForm || !theForm.elements["zone_id"]) return; if (theForm.zone_id.type == "hidden") return; // set initial values var SelectedCountry = theForm.zone_country_id.options[theForm.zone_country_id.selectedIndex].value; var SelectedZone = theForm.elements["zone_id"].value; // reset the array of pulldown options so it can be repopulated var NumState = theForm.zone_id.options.length; while(NumState > 0) { NumState = NumState - 1; theForm.zone_id.options[NumState] = null; } // build dynamic list of countries/zones for pulldown if (SelectedCountry == "1") { theForm.zone_id.options[0] = new Option("Please select ...", ""); theForm.zone_id.options[1] = new Option("Badakhshan", "1"); theForm.zone_id.options[2] = new Option("Badghis", "2"); theForm.zone_id.options[3] = new Option("Baghlan", "3"); theForm.zone_id.options[4] = new Option("Balkh", "4"); theForm.zone_id.options[5] = new Option("Bamian", "5"); theForm.zone_id.options[6] = new Option("Farah", "6"); theForm.zone_id.options[7] = new Option("Faryab", "7"); theForm.zone_id.options[8] = new Option("Ghazni", "8"); theForm.zone_id.options[9] = new Option("Ghowr", "9"); theForm.zone_id.options[10] = new Option("Helmand", "10"); theForm.zone_id.options[11] = new Option("Herat", "11"); theForm.zone_id.options[12] = new Option("Jowzjan", "12"); theForm.zone_id.options[13] = new Option("Kabol", "13"); theForm.zone_id.options[14] = new Option("Kandahar", "14"); theForm.zone_id.options[15] = new Option("Kapisa", "15"); theForm.zone_id.options[16] = new Option("Konar", "16"); theForm.zone_id.options[17] = new Option("Kondoz", "17"); theForm.zone_id.options[18] = new Option("Laghman", "18"); theForm.zone_id.options[19] = new Option("Lowgar", "19"); theForm.zone_id.options[20] = new Option("Nangarhar", "20"); theForm.zone_id.options[21] = new Option("Nimruz", "21"); theForm.zone_id.options[22] = new Option("Oruzgan", "22"); theForm.zone_id.options[23] = new Option("Paktia", "23"); theForm.zone_id.options[24] = new Option("Paktika", "24"); theForm.zone_id.options[25] = new Option("Parvan", "25"); theForm.zone_id.options[26] = new Option("Samangan", "26"); theForm.zone_id.options[27] = new Option("Sar-e Pol", "27"); theForm.zone_id.options[28] = new Option("Takhar", "28"); theForm.zone_id.options[29] = new Option("Vardak", "29"); theForm.zone_id.options[30] = new Option("Zabol", "30"); hideStateField(theForm); } else if (SelectedCountry == "2") { theForm.zone_id.options[0] = new Option("Please select ...", ""); theForm.zone_id.options[1] = new Option("Berat", "31"); theForm.zone_id.options[2] = new Option("Bulqize", "32"); theForm.zone_id.options[3] = new Option("Delvine", "33"); theForm.zone_id.options[4] = new Option("Devoll (Bilisht)", "34"); theForm.zone_id.options[5] = new Option("Diber (Peshkopi)", "35"); theForm.zone_id.options[6] = new Option("Durres", "36"); theForm.zone_id.options[7] = new Option("Elbasan", "37"); theForm.zone_id.options[8] = new Option("Fier", "38"); theForm.zone_id.options[9] = new Option("Gjirokaster", "39"); theForm.zone_id.options[10] = new Option("Gramsh", "40"); theForm.zone_id.options[11] = new Option("Has (Krume)", "41"); theForm.zone_id.options[12] = new Option("Kavaje", "42"); theForm.zone_id.options[13] = new Option("Kolonje (Erseke)", "43"); theForm.zone_id.options[14] = new Option("Korce", "44"); theForm.zone_id.options[15] = new Option("Kruje", "45"); theForm.zone_id.options[16] = new Option("Kucove", "46"); theForm.zone_id.options[17] = new Option("Kukes", "47"); theForm.zone_id.options[18] = new Option("Lac", "48"); theForm.zone_id.options[19] = new Option("Lezhe", "49"); theForm.zone_id.options[20] = new Option("Librazhd", "50"); theForm.zone_id.options[21] = new Option("Lushnje", "51"); theForm.zone_id.options[22] = new Option("Malesi e Madhe (Koplik)", "52"); theForm.zone_id.options[23] = new Option("Mallakaster (Ballsh)", "53"); theForm.zone_id.options[24] = new Option("Mat (Burrel)", "54"); theForm.zone_id.options[25] = new Option("Mirdite (Rreshen)", "55"); theForm.zone_id.options[26] = new Option("Peqin", "56"); theForm.zone_id.options[27] = new Option("Permet", "57"); theForm.zone_id.options[28] = new Option("Pogradec", "58"); theForm.zone_id.options[29] = new Option("Puke", "59"); theForm.zone_id.options[30] = new Option("Sarande", "60"); theForm.zone_id.options[31] = new Option("Shkoder", "61"); theForm.zone_id.options[32] = new Option("Skrapar (Corovode)", "62"); theForm.zone_id.options[33] = new Option("Tepelene", "63"); theForm.zone_id.options[34] = new Option("Tirane (Tirana)", "64"); theForm.zone_id.options[35] = new Option("Tropoje (Bajram Curri)", "65"); theForm.zone_id.options[36] = new Option("Vlore", "66"); hideStateField(theForm); } else if (SelectedCountry == "3") { theForm.zone_id.options[0] = new Option("Please select ...", ""); theForm.zone_id.options[1] = new Option("Adrar", "67"); theForm.zone_id.options[2] = new Option("Ain Defla", "68"); theForm.zone_id.options[3] = new Option("Ain Temouchent", "69"); theForm.zone_id.options[4] = new Option("Alger", "70"); theForm.zone_id.options[5] = new Option("Annaba", "71"); theForm.zone_id.options[6] = new Option("Batna", "72"); theForm.zone_id.options[7] = new Option("Bechar", "73"); theForm.zone_id.options[8] = new Option("Bejaia", "74"); theForm.zone_id.options[9] = new Option("Biskra", "75"); theForm.zone_id.options[10] = new Option("Blida", "76"); theForm.zone_id.options[11] = new Option("Bordj Bou Arreridj", "77"); theForm.zone_id.options[12] = new Option("Bouira", "78"); theForm.zone_id.options[13] = new Option("Boumerdes", "79"); theForm.zone_id.options[14] = new Option("Chlef", "80"); theForm.zone_id.options[15] = new Option("Constantine", "81"); theForm.zone_id.options[16] = new Option("Djelfa", "82"); theForm.zone_id.options[17] = n



    This is only a portion of it - it just keeps going through every country. When I have the secure weberver set to false everything works fine - great! But I want to protect my customers information.

    I have checked that the url for the secure webserver is correct as I use an image for paypal and it works fine.

    my cofig file is such:

    Code:
    // Define the webserver and path parameters
      // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
      // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
      define('HTTP_SERVER', 'http://www.kravshop.co.uk');
      define('HTTPS_SERVER', 'https://secure.hostmonster.com/~aspireho/kravshop');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', 'true');
    
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
    
      define('DIR_WS_PHPBB', 'forum/');
    
    // * DIR_FS_* = Filesystem directories (local/physical)
      //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
      define('DIR_FS_CATALOG', '/home/aspireho/public_html/kravshop/');
    
      define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
      define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
      define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
      define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    
    // define our database connection
      define('DB_TYPE', 'mysql');
      define('DB_PREFIX', 'zen_');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'xxxxx');
      define('DB_SERVER_PASSWORD', 'xxxxx');
      define('DB_DATABASE', 'xxxxx');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage
    
      // The next 2 "defines" are for SQL cache support.
      // For SQL_CACHE_METHOD, you can select from:  none, database, or file
      // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
      // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
      // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash
      define('SQL_CACHE_METHOD', 'database');
      define('DIR_FS_SQL_CACHE', '/home/aspireho/public_html/kravshop/cache');
    
    ?>
    Please help as I don't know what to do!!

  2. #2
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    Default Re: SSl install gives a weird page for login and checkout

    Can someone help

    - I have worked out that the screen that is displayed when I go to a secure page (login) is in fact the actual javascript code for the contry and state selection. I don't know why it is being displayed as raw code on the screen instead of the actual page so I really need some help here - anyone??


    Again this only happens when I enable secure webserver for checkout in the config files.

  3. #3
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    red flag Re: SSl install gives a weird page for login and checkout

    Well it has been a while and still no help with this issue! This was my first time using this forum to actually post a question. I wish I had some help - oh well. Obvisously no one is willing.

  4. #4
    Join Date
    Jun 2006
    Location
    Koh Samui
    Posts
    122
    Plugin Contributions
    0

    Default Re: SSl install gives a weird page for login and checkout

    Hi,

    Did you change both the admin/includes/configure.php and /includes/configure.php?

    Ronald.
    [FONT="Verdana"]http://www.xlventures.eu[/FONT]

  5. #5
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    Default Re: SSl install gives a weird page for login and checkout

    Quote Originally Posted by azrahn View Post
    Hi,

    Did you change both the admin/includes/configure.php and /includes/configure.php?

    Ronald.
    Yes I did - I actually mentioned that in my original post, because I know from other forum topics that this can be the number one cause. But I have checked everything over three and four time in both configs.

    I just wish I knew how to stop it! I wish I knew why it was showing the javascript for the country and state selector as raw code on the screen.

  6. #6
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: SSl install gives a weird page for login and checkout

    the problem is that the right person hasnt seen your post,
    it sometimes takes time,
    try adding more details to the post,
    Zen cart PCI compliant Hosting

  7. #7
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    Default Re: SSl install gives a weird page for login and checkout

    Quote Originally Posted by Merlinpa1969 View Post
    the problem is that the right person hasnt seen your post,
    it sometimes takes time,
    try adding more details to the post,
    What details do you need?

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: SSl install gives a weird page for login and checkout

    You appear to have a bad upload of files or have typos on the files ...

    Have you tried to reload your files?

    Most likely the files are bad in:
    /includes/modules/pages/login/*.*
    /includes/modules/pages/create_account/*.*
    /includes/modules/pages/address_book_process/*.*
    /includes/modules/pages/checkout_payment_address/*.*
    /includes/modules/pages/checkout_shipping_address/*.*
    /includes/modules/pages/popup_shipping_estimator/*.*

    /includes/languages/english/login.php
    /includes/languages/english/create_account.php
    etc. etc.
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    Default Re: SSl install gives a weird page for login and checkout

    Quote Originally Posted by Ajeh View Post
    You appear to have a bad upload of files or have typos on the files ...

    Have you tried to reload your files?

    Most likely the files are bad in:
    /includes/modules/pages/login/*.*
    /includes/modules/pages/create_account/*.*
    /includes/modules/pages/address_book_process/*.*
    /includes/modules/pages/checkout_payment_address/*.*
    /includes/modules/pages/checkout_shipping_address/*.*
    /includes/modules/pages/popup_shipping_estimator/*.*

    /includes/languages/english/login.php
    /includes/languages/english/create_account.php
    etc. etc.
    I have not touched these files these files were installed by fantastico installer on my hosting cpanel.

    But why would everything work fine then ONLY when I change to secure webserver for checkout/login does it not work?

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: SSl install gives a weird page for login and checkout

    It sounds like the files have been corrupted ...

    Do you have one or two directories to manage your secure and non-secure files?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v151 login get error blank page after install fast and easy checkout
    By louisapple in forum General Questions
    Replies: 17
    Last Post: 19 Jun 2015, 02:25 AM
  2. New install, login gives a 404 error.
    By hawks67 in forum General Questions
    Replies: 3
    Last Post: 10 Nov 2010, 02:31 AM
  3. Replies: 5
    Last Post: 23 Jun 2010, 12:39 AM
  4. Replies: 1
    Last Post: 30 Oct 2008, 10:13 AM
  5. Disabling SSL login for admin post-install?
    By schwimwastaken in forum General Questions
    Replies: 2
    Last Post: 22 Dec 2007, 05:56 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