Thread: SSL issues

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jun 2007
    Posts
    12
    Plugin Contributions
    0

    Default SSL issues

    i have purchased and installed a SSL. Now none of the pages will open without https:// ... How do i fix this issue? i think the https:// only needs to be put on the checkout and login pages ... this is the first time i have tried to do this so please be gentle with me and explain things in idot speak

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

    Default Re: SSL issues

    in your configure.php files you will see where to define the http and the https

    make sure that they are defined correctly,

    if you need help paste the top 20 or so lines of your config file here
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Jun 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: SSL issues

    am really strugling with this one ... is it admin/congiguration.php... have copied all of that below
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers |
    // | |
    // | http://www.zen-cart.com/index.php |
    // | |
    // | Portions Copyright (c) 2003 osCommerce |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license, |
    // | that is bundled with this package in the file LICENSE, and is |
    // | available through the world-wide-web at the following url: |
    // | http://www.zen-cart.com/license/2_0.txt. |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to |
    // | license AT zen-cart DOT com so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+
    // $Id: configuration.php 3993 2006-07-20 21:46:55Z drbyte $
    //

    require('includes/application_top.php');
    $action = (isset($_GET['action']) ? $_GET['action'] : '');
    if (zen_not_null($action)) {
    switch ($action) {
    case 'save':
    // demo active test
    if (zen_admin_demo()) {
    $_GET['action']= '';
    $messageStack->add_session(ERROR_ADMIN_DEMO, 'caution');
    zen_redirect(zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cID));
    }
    $configuration_value = zen_db_prepare_input($_POST['configuration_value']);
    $cID = zen_db_prepare_input($_GET['cID']);
    $db->Execute("update " . TABLE_CONFIGURATION . "
    set configuration_value = '" . zen_db_input($configuration_value) . "',
    last_modified = now() where configuration_id = '" . (int)$cID . "'");
    $configuration_query = 'select configuration_key as cfgkey, configuration_value as cfgvalue
    from ' . TABLE_CONFIGURATION;
    $configuration = $db->Execute($configuration_query);
    // set the WARN_BEFORE_DOWN_FOR_MAINTENANCE to false if DOWN_FOR_MAINTENANCE = true
    if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'true') ) {
    $db->Execute("update " . TABLE_CONFIGURATION . "
    set configuration_value = 'false', last_modified = '" . NOW . "'
    where configuration_key = 'WARN_BEFORE_DOWN_FOR_MAINTENANCE'"); }
    $configuration_query = 'select configuration_key as cfgkey, configuration_value as cfgvalue
    from ' . TABLE_CONFIGURATION;
    $configuration = $db->Execute($configuration_query);
    zen_redirect(zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cID));
    break;
    }
    }
    $gID = (isset($_GET['gID'])) ? $_GET['gID'] : 1;
    $_GET['gID'] = $gID;
    $cfg_group = $db->Execute("select configuration_group_title
    from " . TABLE_CONFIGURATION_GROUP . "
    where configuration_group_id = '" . (int)$gID . "'");
    if ($gID == 7) {
    $shipping_errors = '';
    if (zen_get_configuration_key_value('SHIPPING_ORIGIN_ZIP') == 'NONE' or zen_get_configuration_key_value('SHIPPING_ORIGIN_ZIP') == '') {
    $shipping_errors .= '<br />' . ERROR_SHIPPING_ORIGIN_ZIP;
    }
    if (zen_get_configuration_key_value('ORDER_WEIGHT_ZERO_STATUS') == '1' and !defined('MODULE_SHIPPING_FREESHIPPER_STATUS')) {
    $shipping_errors .= '<br />' . ERROR_ORDER_WEIGHT_ZERO_STATUS;
    }
    if (defined('MODULE_SHIPPING_USPS_STATUS') and (MODULE_SHIPPING_USPS_USERID=='NONE' or MODULE_SHIPPING_USPS_SERVER == 'test')) {
    $shipping_errors .= '<br />' . ERROR_USPS_STATUS;
    }
    if ($shipping_errors != '') {
    $messageStack->add(ERROR_SHIPPING_CONFIGURATION . $shipping_errors, 'caution');
    }
    }
    ?>
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS; ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
    <title><?php echo TITLE; ?></title>
    <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
    <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
    <script language="javascript" src="includes/menu.js"></script>
    <script language="javascript" src="includes/general.js"></script>
    <script type="text/javascript">
    <!--
    function init()
    {
    cssjsmenu('navbar');
    if (document.getElementById)
    {
    var kill = document.getElementById('hoverJS');
    kill.disabled = true;
    }
    }
    // -->
    </script>
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onLoad="init()">
    <!-- header //-->
    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
    <!-- header_eof //-->
    <!-- body //-->
    <table border="0" width="100%" cellspacing="2" cellpadding="2">
    <tr>
    <!-- body_text //-->
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td class="pageHeading"><?php echo $cfg_group->fields['configuration_group_title']; ?></td>
    <td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr class="dataTableHeadingRow">
    <td class="dataTableHeadingContent" width="55%"><?php echo TABLE_HEADING_CONFIGURATION_TITLE; ?></td>
    <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CONFIGURATION_VALUE; ?></td>
    <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?>&nbsp;</td>
    </tr>
    <?php
    $configuration = $db->Execute("select configuration_id, configuration_title, configuration_value, configuration_key,
    use_function from " . TABLE_CONFIGURATION . "
    where configuration_group_id = '" . (int)$gID . "'
    order by sort_order");
    while (!$configuration->EOF) {
    if (zen_not_null($configuration->fields['use_function'])) {
    $use_function = $configuration->fields['use_function'];
    if (ereg('->', $use_function)) {
    $class_method = explode('->', $use_function);
    if (!is_object(${$class_method[0]})) {
    include(DIR_WS_CLASSES . $class_method[0] . '.php');
    ${$class_method[0]} = new $class_method[0]();
    }
    $cfgValue = zen_call_function($class_method[1], $configuration->fields['configuration_value'], ${$class_method[0]});
    } else {
    $cfgValue = zen_call_function($use_function, $configuration->fields['configuration_value']);
    }
    } else {
    $cfgValue = $configuration->fields['configuration_value'];
    }
    if ((!isset($_GET['cID']) || (isset($_GET['cID']) && ($_GET['cID'] == $configuration->fields['configuration_id']))) && !isset($cInfo) && (substr($action, 0, 3) != 'new')) {
    $cfg_extra = $db->Execute("select configuration_key, configuration_description, date_added,
    last_modified, use_function, set_function
    from " . TABLE_CONFIGURATION . "
    where configuration_id = '" . (int)$configuration->fields['configuration_id'] . "'");
    $cInfo_array = array_merge($configuration->fields, $cfg_extra->fields);
    $cInfo = new objectInfo($cInfo_array);
    }
    if ( (isset($cInfo) && is_object($cInfo)) && ($configuration->fields['configuration_id'] == $cInfo->configuration_id) ) {
    echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '\'">' . "\n";
    } else {
    echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $configuration->fields['configuration_id'] . '&action=edit') . '\'">' . "\n";
    }
    ?>
    <td class="dataTableContent"><?php echo $configuration->fields['configuration_title']; ?></td>
    <td class="dataTableContent"><?php echo htmlspecialchars($cfgValue); ?></td>
    <td class="dataTableContent" align="right"><?php if ( (isset($cInfo) && is_object($cInfo)) && ($configuration->fields['configuration_id'] == $cInfo->configuration_id) ) { echo zen_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $configuration->fields['configuration_id']) . '">' . zen_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>&nbsp;</td>
    </tr>
    <?php
    $configuration->MoveNext();
    }
    ?>
    </table></td>
    <?php
    $heading = array();
    $contents = array();
    switch ($action) {
    case 'edit':
    $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>');
    if ($cInfo->set_function) {
    eval('$value_field = ' . $cInfo->set_function . '"' . htmlspecialchars($cInfo->configuration_value) . '");');
    } else {
    $value_field = zen_draw_input_field('configuration_value', $cInfo->configuration_value, 'size="60"');
    }
    $contents = array('form' => zen_draw_form('configuration', FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=save'));
    if (ADMIN_CONFIGURATION_KEY_ON == 1) {
    $contents[] = array('text' => '<strong>Key: ' . $cInfo->configuration_key . '</strong><br />');
    }
    $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
    $contents[] = array('text' => '<br><b>' . $cInfo->configuration_title . '</b><br>' . $cInfo->configuration_description . '<br>' . $value_field);
    $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
    break;
    default:
    if (isset($cInfo) && is_object($cInfo)) {
    $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>');
    if (ADMIN_CONFIGURATION_KEY_ON == 1) {
    $contents[] = array('text' => '<strong>Key: ' . $cInfo->configuration_key . '</strong><br />');
    }
    $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
    $contents[] = array('text' => '<br>' . $cInfo->configuration_description);
    $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($cInfo->date_added));
    if (zen_not_null($cInfo->last_modified)) $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . zen_date_short($cInfo->last_modified));
    }
    break;
    }
    if ( (zen_not_null($heading)) && (zen_not_null($contents)) ) {
    echo ' <td width="25%" valign="top">' . "\n";
    $box = new box;
    echo $box->infoBox($heading, $contents);
    echo ' </td>' . "\n";
    }
    ?>
    </tr>
    </table></td>
    </tr>
    </table></td>
    <!-- body_text_eof //-->
    </tr>
    </table>
    <!-- body_eof //-->
    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
    <!-- footer_eof //-->
    <br>
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>


    many thanks for your time and help offered

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

    Default Re: SSL issues

    Merlin meant the files:
    /includes/configure.php
    /admin/includes/configure.php
    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!

  5. #5
    Join Date
    Jun 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: SSL issues

    we used to have an advert on tv in the Uk that was for garden paint ... the strap line was ... 'do exactly as it says on the tin!'

    now i see what you mean ... is following these correct?


    // Define the webserver and path parameters
    // Main webserver: eg, http://localhost - should not be empty for productive servers
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    // HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    /*
    * URLs for your site will be built via:
    * HTTP_SERVER plus DIR_WS_ADMIN or
    * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
    * HTTP_SERVER plus DIR_WS_CATALOG or
    * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    * ...depending on your system configuration settings
    */
    define('HTTP_SERVER', 'http://www.whiterosecomputers.com');
    define('HTTPS_SERVER', 'https://www.whiterosecomputers.com');
    define('HTTP_CATALOG_SERVER', 'http://www.whiterosecomputers.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.whiterosecomputers.com');

  6. #6
    Join Date
    Jun 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: SSL issues

    i download the lines of code with ftp into dreamweaver ... that is how they are now .... i dont know what to do with them

    which lines do i have to define ... consider i have my stupid hat on to day!

  7. #7
    Join Date
    Jun 2007
    Posts
    12
    Plugin Contributions
    0

    Default ssl http & https

    pulling my hair out with this one guys!!!!!!

    have installed an ssl and now the site won't open ... i realise i have to define in the file below


    // Define the webserver and path parameters
    // Main webserver: eg, http://localhost - should not be empty for productive servers
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    // HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    /*
    * URLs for your site will be built via:
    * HTTP_SERVER plus DIR_WS_ADMIN or
    * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
    * HTTP_SERVER plus DIR_WS_CATALOG or
    * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    * ...depending on your system configuration settings
    */
    define('HTTP_SERVER', 'http://www.whiterosecomputers.com');
    define('HTTPS_SERVER', 'https://www.whiterosecomputers.com');
    define('HTTP_CATALOG_SERVER', 'http://www.whiterosecomputers.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.whiterosecomputers.com');

    but i can't see what i have to do ... somebody out there please .... help

  8. #8
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    Default Re: ssl http & https

    Hi, first I'd like to tell you that shouldn't create 2 or 3 different threads discussing the same issue, this is usually frowned upon, you should stick to just one.

    Anyway, you need to edit admin/includes/configure.php
    where it says
    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', 'false');

    Change to false to true.

    And in includes/configure.php where it says:
    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

  9. #9
    Join Date
    Jun 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: ssl http & https

    sorry about multiple threads ... am a bit new to forums .... have clent on my back as this is my first attempt with zencart

    thank you for you help and time .... apolgies to all ... no offence intended

  10. #10
    Join Date
    Jun 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: ssl http & https

    the lines define('HTTP_SERVER', 'http://www.whiterosecomputers.com');
    define('HTTPS_SERVER', 'https://www.whiterosecomputers.com');
    define('HTTP_CATALOG_SERVER', 'http://www.whiterosecomputers.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.whiterosecomputers.com');
    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'true');

    are already set to 'true'

    and i can't find the line

    define('ENABLE_SSL"), 'false');

    sorry to bug you ... and help willingly accepted

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. SSL Issues
    By KeystoneAirsoft in forum General Questions
    Replies: 4
    Last Post: 14 Nov 2011, 02:44 AM
  2. SSL Issues
    By z06man in forum General Questions
    Replies: 7
    Last Post: 16 Oct 2010, 09:09 PM
  3. SSL Issues
    By alphatrion in forum General Questions
    Replies: 6
    Last Post: 12 Sep 2007, 02:28 PM

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