Jump to content

julianpuje

Members
  • Content count

    875
  • Joined

  • Last visited

Posts posted by julianpuje


  1. Hi all

     

    I'm still getting the error i posted on here on the 4th Oct and 19th Oct last year. I still cannot get to the bottom of why this is happening.

    I have two sites with exactly the same sitemaps contribution running. Both were running fine then one got errors. I reinstalled it as i could not find the problem.

    I get an error on line 1 of all three files when I call them in the address bar . If i go into (ftp) the xml files themselves they are written/updated and look correct and the cron job says all files created successfully.

     

    The error for all three files here is:

     

    Parse error: parse error, unexpected T_STRING in /home/julianp/public_html/sitemapindex.xml on line 1

    when line 1 is:

    <?xml version="1.0" encoding="UTF-8"?>

     

    But the same contribution on my other site works fine here

     

    Any help on this greatly appreciated as i have had this problem for over 4 months now :( .

     

    Thanks

     

    J


  2. julianpuje although i saw the problem on your site but it seems that i can not reproduce this in the demo site and the payment module seems to work as the only available one.i have left the demo site with one payment option so you can test

    i also noticed another thing the mouseover on the payment module does not work

    i would suggest you use a diff program and tke a look at the checkout_shipping.php that i posted before and what you are using and try to find the diffrence in the files.

    also the problem might be in the payment module if you have changed that.

    post both files if you can not find the diffrence.

    i hope you had commented your changes this way it would be easier to find

     

    Thanks again nana for taking a look.

    As far as i'm aware everything is back to how it was when you posted the checkout_shipping.php for me to try. The only difference being that i've uncommented the credit bit and tweaked the layout to suit the site. I've posted my Checckout_shipping.php below and my SECPay module.

    Cheers

    Julian

     

    <?php
    /*
    $Id: checkout_shipping.php,v 1.16 2003/06/09 23:03:53 hpdl Exp $
    
    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com
    
    Copyright (c) 2003 osCommerce
    
    Released under the GNU General Public License
    
    */
    require('includes/application_top.php');
    require('includes/classes/http_client.php');
    
    require(DIR_WS_CLASSES . 'order.php');
    $order = new order;
    require(DIR_WS_CLASSES . 'payment.php');
    $payment_modules = new payment;
    
    
    $total_weight = $cart->show_weight();
    $total_count = $cart->count_contents();
    
    
    require(DIR_WS_CLASSES . 'shipping.php');
    $shipping_modules = new shipping;
    
    //the next 4 lines are for ccgv
    require(DIR_WS_CLASSES . 'order_total.php');
    
    $order_total_modules = new order_total;
    $order_total_modules->collect_posts();
    $order_total_modules->pre_confirmation_check(); 
    // if the customer is not logged on, redirect them to the login page
    if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot();
    // tep_redirect(tep_href_link('create_account3.php', '', 'SSL'));
    tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
    }
    
    // if there is nothing in the customers cart, redirect them to the shopping cart page
    if ($cart->count_contents() < 1) {
    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
    }
    // if no shipping destination address was selected, use the customers own address as default
    if (!tep_session_is_registered('sendto')) {
    tep_session_register('sendto');
    $sendto = $customer_default_address_id;
    } else {
    // verify the selected shipping address
    $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$sendto . "'");
    $check_address = tep_db_fetch_array($check_address_query);
    
    if ($check_address['total'] != '1') {
    $sendto = $customer_default_address_id;
    if (tep_session_is_registered('shipping')) tep_session_unregister('shipping');
    }
    }
    // if no billing destination address was selected, use the customers own address as default
    if (!tep_session_is_registered('billto')) {
    tep_session_register('billto');
    $billto = $customer_default_address_id;
    } else {
    // verify the selected billing address
    $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$billto . "'");
    $check_address = tep_db_fetch_array($check_address_query);
    
    if ($check_address['total'] != '1') {
    $billto = $customer_default_address_id;
    if (tep_session_is_registered('payment')) tep_session_unregister('payment');
    }
    }
    
    
    // register a random ID in the session to check throughout the checkout procedure
    // against alterations in the shopping cart contents
    if (!tep_session_is_registered('cartID')) tep_session_register('cartID');
    $cartID = $cart->cartID;
    
    // if the order contains only virtual products, forward the customer to the billing page as
    // a shipping address is not needed
    if ($order->content_type == 'virtual') 
    {
    if (!tep_session_is_registered('shipping')) tep_session_register('shipping');
    $shipping = false;
    $sendto = false;
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }
    tep_session_unregister('billing');
    tep_session_unregister('payment');
    if (isset($HTTP_POST_VARS['payment'])) $payment = $HTTP_POST_VARS['payment'];
    if (!tep_session_is_registered('payment')) tep_session_register('payment');
    
    
    
    
    if($n==1){
    if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL'));
    
    tep_session_unregister('payment');
    $payment_modules->update_status();
    }
    if (is_array($payment_modules->modules)) {
    $payment_modules->pre_confirmation_check();
    }
    }
    while (list($key, $value) = each($_POST))
    {
    tep_session_register($key);
    }
    if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) {
    $pass = false;
    
    switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {
    case 'national':
    if ($order->delivery['country_id'] == STORE_COUNTRY) {
    $pass = true;
    }
    break;
    case 'international':
    if ($order->delivery['country_id'] != STORE_COUNTRY) {
    $pass = true;
    }
    break;
    case 'both':
    $pass = true;
    break;
    }
    
    $free_shipping = false;
    if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
    $free_shipping = true;
    
    include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php');
    }
    } else {
    $free_shipping = false;
    }
    
    // process the selected shipping method
    if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') ) {
    if (!tep_session_is_registered('comments')) tep_session_register('comments');
    if (tep_not_null($HTTP_POST_VARS['comments'])) {
    $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
    }
    
    if (!tep_session_is_registered('shipping')) tep_session_register('shipping');
    
    if ( (tep_count_shipping_modules() > 0) || ($free_shipping == true) ) {
    if ( (isset($HTTP_POST_VARS['shipping'])) && (strpos($HTTP_POST_VARS['shipping'], '_')) ) {
    $shipping = $HTTP_POST_VARS['shipping'];
    
    list($module, $method) = explode('_', $shipping);
    if ( is_object($$module) || ($shipping == 'free_free') ) {
    if ($shipping == 'free_free') {
    $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
    $quote[0]['methods'][0]['cost'] = '0';
    } else {
    $quote = $shipping_modules->quote($method, $module);
    }
    if (isset($quote['error'])) {
    tep_session_unregister('shipping');
    } else {
    if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {
    $shipping = array('id' => $shipping,
    'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
    'cost' => $quote[0]['methods'][0]['cost']);
    
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION,'', 'SSL'));
    }
    }
    } else {
    tep_session_unregister('shipping');
    }
    }
    } else {
    $shipping = false;
    
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'));
    }
    }
    
    // get all available shipping quotes
    $quotes = $shipping_modules->quote();
    
    // if no shipping method has been selected, automatically select the cheapest method.
    // if the modules status was changed when none were available, to save on implementing
    // a javascript force-selection method, also automatically select the cheapest shipping
    // method if more than one module is now enabled
    if ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest();
    
    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT);
    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SHIPPING);
    
    $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    
    ?>
    
    <!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>
    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
    
    <?php echo $payment_modules->javascript_validation(); ?>
    <script language="javascript"><!--
    var selected;
    
    function selectRowEffect2(object, buttonSelect) {
    if (!selected) {
    if (document.getElementById) {
    selected = document.getElementById('defaultSelected');
    } else {
    selected = document.all['defaultSelected'];
    }
    }
    
    if (selected) selected.className = 'moduleRow';
    object.className = 'moduleRowSelected2';
    selected = object;
    
    // one button is not an array
    if (document.checkout_payment.shipping[0]) {
    document.checkout_payment.shipping[buttonSelect].checked=true;
    } else {
    document.checkout_payment.shipping.checked=true;
    }
    }
    
    function rowOverEffect(object) {
    if (object.className == 'moduleRow') object.className = 'moduleRowOver';
    }
    
    function rowOutEffect(object) {
    if (object.className == 'moduleRowOver') object.className = 'moduleRow';
    }
    //--></script>
    <script language="javascript"><!--
    var selected;
    <?php//rmh M-S_ccgv begin ?>
    var submitter = null;
    function submitFunction() {
    submitter = 1;
    }
    <?php//rmh M-S_ccgv end ?>
    function selectRowEffect(object, buttonSelect) {
    if (!selected) {
    if (document.getElementById) {
    selected = document.getElementById('defaultSelected');
    } else {
    selected = document.all['defaultSelected'];
    }
    }
    
    if (selected) selected.className = 'moduleRow';
    object.className = 'moduleRowSelected';
    selected = object;
    
    // one button is not an array
    if (document.checkout_payment.payment[0]) {
    document.checkout_payment.payment[buttonSelect].checked=true;
    } else {
    document.checkout_payment.payment.checked=true;
    }
    }
    
    function rowOverEffect(object) {
    if (object.className == 'moduleRow') object.className = 'moduleRowOver';
    }
    
    function rowOutEffect(object) {
    if (object.className == 'moduleRowOver') object.className = 'moduleRow';
    }
    //--></script>
    <script language="JavaScript" src="https://secure.comodo.net/trustlogo/javascript/trustlogo.js" type="text/javascript">
    </script>
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
    <!-- header //-->
    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
    <!-- header_eof //-->
    
    <!-- body //-->
    <table border="0" width="100%" cellspacing="3" cellpadding="3">
    <tr>
    <td width="<?php// echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php// echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
    <!-- left_navigation //-->
    <?php //require(DIR_WS_INCLUDES . 'column_left.php'); ?>
    <!-- left_navigation_eof //-->
    </table></td>
    <!-- body_text //-->
    <!-- body_text //-->
    <td width="100%" valign="top"><?php echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_SHIPPING, 'n=1', 'SSL'), 'post', 'onsubmit="return check_form();"') . tep_draw_hidden_field('action', 'process'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td class="pageHeading" align="center"><?php echo HEADING_TITLE;
    //echo $ZETA; ?></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
    </tr>
    <?php
    if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {
    ?>
    <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
    <td class="main"><b><?php echo tep_output_string_protected($error['title']); ?></b></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td>
    <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice">
    <tr class="infoBoxNoticeContents">
    <td>
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main" width="100%" valign="top"><?php echo tep_output_string_protected($error['error']); ?></td>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    </table></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <?php
    }
    ?>
    </td>
    <td>
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
    </tr>
    </table></td>
    </tr>
    <?php
    
    if (!tep_session_is_registered('registered_now')) {
    
    ?>
    <tr>
    <td><table border="0" width="80%" align="center" cellspacing="1" cellpadding="2" class="infoBoxcontents">
    <tr class="infoBox2">
    <td>
    <table border="0" width="50%" cellspacing="0" cellpadding="2" align="center">
    <tr>
    
    <td align="left" valign="top">
    <table border="0" cellspacing="0" cellpadding="2">
    <tr>
    <td class="main" align=""><b><?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?></b></td>
    </tr>
    <tr>
    <td class="main" align="left"><?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?></td>
    </tr><tr>
    <td class="main" align="left"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td>
    </tr>
    </table>
    </td> </tr>
    </table>
    </td>
    <td>
    <table border="0" width="50%" cellspacing="0" cellpadding="2" align="center">
    <tr>
    <td align="left" valign="top">
    <table border="0" cellspacing="0" cellpadding="2">
    <tr>
    <td class="main"><b><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></b></td>
    </tr>
    <tr>
    <td class="main" align="left"><?php echo tep_address_label($customer_id, $billto, true, ' ', '<br>'); ?></td></tr>
    <tr>
    <td class="main" align="left"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td>
    </tr>
    
    </table></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <?php
    
    }
    
    ?>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="5">
    <tr>
    <td class="main" align="center"><br><b><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></b></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><table border="0" width="80%" align="center" cellspacing="1" cellpadding="2" class="infoBoxcontents">
    <tr class="infoBox2">
    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <?php
    $selection = $payment_modules->selection();
    
    if (sizeof($selection) > 1) {
    ?>
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main" width="50%" valign="top"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></td>
    <td class="main" width="50%" valign="top" align="right"><b><?php echo TITLE_PLEASE_SELECT; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    } else {
    ?>
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?></td>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    }
    
    $radio_buttons = 0;
    for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
    ?>
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <?php
    if ( ($selection[$i]['id'] == $payment) || ($n == 1) ) {
    echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
    } else {
    echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
    }
    ?>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main" colspan="3"><b><?php echo $selection[$i]['module']; ?></b></td>
    <td class="main" align="right">
    <?php
    if (sizeof($selection) > 1) {
    echo tep_draw_radio_field('payment', $selection[$i]['id']);
    } else {
    echo tep_draw_hidden_field('payment', $selection[$i]['id']);
    }
    ?>
    </td>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    if (isset($selection[$i]['error'])) {
    ?>
    <tr>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main" colspan="4"><?php echo $selection[$i]['error']; ?></td>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {
    ?>
    <tr>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td colspan="4"><table border="0" cellspacing="0" cellpadding="2">
    <?php
    for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
    ?>
    <tr>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main"><?php echo $selection[$i]['fields'][$j]['title']; ?></td>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main"><?php echo $selection[$i]['fields'][$j]['field']; ?></td>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    }
    ?>
    </table></td>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    }
    ?>
    </table></td>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    $radio_buttons++;
    }
    ?>
    </table></td>
    </tr>
    </table></td>
    </tr>
    
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
    </tr>
    <?php
    if (tep_count_shipping_modules() > 0) {
    ?>
    <tr>
    <td><table border="0" width="80%" align="center" cellspacing="5" cellpadding="2">
    <tr>
    <td class="main" align="center"><b><?php echo TABLE_HEADING_SHIPPING_METHOD; ?></b></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><table border="0" width="80%" align="center" cellspacing="1" cellpadding="2" class="infoBoxcontents">
    <tr class="infoBox2">
    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <?php
    if (sizeof($quotes) > 1 && sizeof($quotes[0]) > 1) {
    ?>
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main" width="50%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></td>
    <td class="main" width="50%" valign="top" align="right"><?php echo '<b>' . TITLE_PLEASE_SELECT . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    } elseif ($free_shipping == false) {
    ?>
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?></td>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    }
    
    if ($free_shipping == true) {
    ?>
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td colspan="2" width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main" colspan="3"><b><?php echo FREE_SHIPPING_TITLE; ?></b> <?php echo $quotes[$i]['icon']; ?></td>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 0)">
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main" width="100%"><?php echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . tep_draw_hidden_field('shipping', 'free_free'); ?></td>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    </table></td>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    } else {
    $radio_buttons = 0;
    for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
    ?>
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main" colspan="3"><b><?php echo $quotes[$i]['module']; ?></b> <?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></td>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    if (isset($quotes[$i]['error'])) {
    ?>
    <tr>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main" colspan="3"><?php echo $quotes[$i]['error']; ?></td>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    } else {
    for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
    // set the radio button to be checked if it is the method chosen
    $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false);
    
    if ( ($checked == true) || ($n == 1 && $n2 == 1) ) {
    echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect2(this, ' . $radio_buttons . ')">' . "\n";
    } else {
    echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect2(this, ' . $radio_buttons . ')">' . "\n";
    }
    ?>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main" width="75%"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td>
    <?php
    if ( ($n > 1) || ($n2 > 1) ) {
    ?>
    <td class="main"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td>
    <td class="main" align="right"><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked); ?></td>
    <?php
    } else {
    ?>
    <td class="main" align="right" colspan="2"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></td>
    <?php
    }
    ?>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    $radio_buttons++;
    }
    }
    ?>
    </table></td>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    <?php
    }
    }
    ?>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
    </tr>
    <?php
    }
    ?>
    <tr>
    <td><table border="0" width="80%" align="center" cellspacing="1" cellpadding="2" class="infoBoxcontents">
    <tr class="infoBox2">
    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
    <td><?php echo $order_total_modules->credit_selection();//rmh M-S_ccgv
    ?>
    </td></tr></table></table>
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
    </tr><tr>
    <td><table border="0" width="80%" align="center" cellspacing="0" cellpadding="2">
    <tr>
    <td class="main" align="center"><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><table border="0" width="80%" align="center" cellspacing="1" cellpadding="2" class="infoBoxcontents">
    <tr class="infoBox2">
    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
    <td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
    </tr>
    <tr>
    <td><table border="0" width="80%" align="center" cellspacing="1" cellpadding="2" class="infoBoxcontents">
    <tr class="infoBox2">
    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main"><b><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b>?' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
    <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
    </tr>
    <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
    <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
    </tr>
    </table></td>
    <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
    <td><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
    <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
    </tr>
    </table></td>
    <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
    <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
    <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td align="center" width="25%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
    <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
    <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
    <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
    </tr>
    </table></td>
    </tr>
    </table></form></td>
    <!-- body_text_eof //-->
    
    <td width="<?php// echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php //echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
    <!-- right_navigation //-->
    <?php// require(DIR_WS_INCLUDES . 'column_right.php'); ?>
    <!-- right_navigation_eof //-->
    </table></td>
    </tr>
    </table>
    <!-- body_eof //-->
    
    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
    <!-- footer_eof //-->
    <br><!--
    TrustLogo Html Builder Code:
    Shows the logo at URL http://www.jbleisure.co.uk/headers/cornertrust.gif
    Logo type is  ("SC")
    Floating on the Bottom Right
    //-->
    <script type="text/javascript">TrustLogo("http://www.jbleisure.co.uk/headers/cornertrust.gif", "SC", "bottomright");</script>
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

     

    <?php
    /*
     $Id: secpay.php,v 1.31 2003/01/29 19:57:15 hpdl Exp $
    
     osCommerce, Open Source E-Commerce Solutions
     http://www.oscommerce.com
    
     Copyright (c) 2003 osCommerce
    
     Released under the GNU General Public License
    */
    
     class secpay {
    var $code, $title, $description, $enabled;
    
    // class constructor
    function secpay() {
      global $order;
    
      $this->code = 'secpay';
      $this->title = MODULE_PAYMENT_SECPAY_TEXT_TITLE;
      $this->description = MODULE_PAYMENT_SECPAY_TEXT_DESCRIPTION;
      $this->sort_order = MODULE_PAYMENT_SECPAY_SORT_ORDER;
      $this->enabled = ((MODULE_PAYMENT_SECPAY_STATUS == 'True') ? true : false);
    
      if ((int)MODULE_PAYMENT_SECPAY_ORDER_STATUS_ID > 0) {
    	$this->order_status = MODULE_PAYMENT_SECPAY_ORDER_STATUS_ID;
      }
    
      if (is_object($order)) $this->update_status();
    
      $this->form_action_url = 'https://www.secpay.com/java-bin/ValCard';
    }
    
    // class methods
    function update_status() {
      global $order;
    
      if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_SECPAY_ZONE > 0) ) {
    	$check_flag = false;
    	$check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_SECPAY_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id");
    	while ($check = tep_db_fetch_array($check_query)) {
    	  if ($check['zone_id'] < 1) {
    		$check_flag = true;
    		break;
    	  } elseif ($check['zone_id'] == $order->billing['zone_id']) {
    		$check_flag = true;
    		break;
    	  }
    	}
    
    	if ($check_flag == false) {
    	  $this->enabled = false;
    	}
      }
    }
    
    function javascript_validation() {
      return false;
    }
    
    function selection() {
      return array('id' => $this->code,
    			   'module' => $this->title);
    }
    
    function pre_confirmation_check() {
      return false;
    }
    
    function confirmation() {
      return false;
    }
    
    function process_button() {
      global $order, $currencies, $currency;
    
      switch (MODULE_PAYMENT_SECPAY_CURRENCY) {
    	case 'Default Currency':
    	  $sec_currency = DEFAULT_CURRENCY;
    	  break;
    	case 'Any Currency':
    	default:
    	  $sec_currency = $currency;
    	  break;
      }
    
      switch (MODULE_PAYMENT_SECPAY_TEST_STATUS) {
    	case 'Always Fail':
    	  $test_status = 'false';
    	  break;
    	case 'Production':
    	  $test_status = 'live';
    	  break;
    	case 'Always Successful':
    	default:
    	  $test_status = 'true';
    	  break;
      }
    
      $process_button_string = tep_draw_hidden_field('merchant', MODULE_PAYMENT_SECPAY_MERCHANT_ID) .
    						   tep_draw_hidden_field('trans_id', STORE_NAME . date('Ymdhis')) .
    						   tep_draw_hidden_field('amount', number_format($order->info['total'] * $currencies->get_value($sec_currency), $currencies->currencies[$sec_currency]['decimal_places'], '.', '')) .
    						   tep_draw_hidden_field('bill_name', $order->billing['firstname'] . ' ' . $order->billing['lastname']) .
    						   tep_draw_hidden_field('bill_addr_1', $order->billing['street_address']) .
    						   tep_draw_hidden_field('bill_addr_2', $order->billing['suburb']) .
    						   tep_draw_hidden_field('bill_city', $order->billing['city']) .
    						   tep_draw_hidden_field('bill_state', $order->billing['state']) .
    						   tep_draw_hidden_field('bill_post_code', $order->billing['postcode']) .
    						   tep_draw_hidden_field('bill_country', $order->billing['country']['title']) .
    						   tep_draw_hidden_field('bill_tel', $order->customer['telephone']) .
    						   tep_draw_hidden_field('bill_email', $order->customer['email_address']) .
    						   tep_draw_hidden_field('ship_name', $order->delivery['firstname'] . ' ' . $order->delivery['lastname']) .
    						   tep_draw_hidden_field('ship_addr_1', $order->delivery['street_address']) .
    						   tep_draw_hidden_field('ship_addr_2', $order->delivery['suburb']) .
    						   tep_draw_hidden_field('ship_city', $order->delivery['city']) .
    						   tep_draw_hidden_field('ship_state', $order->delivery['state']) .
    						   tep_draw_hidden_field('ship_post_code', $order->delivery['postcode']) .
    						   tep_draw_hidden_field('ship_country', $order->delivery['country']['title']) .
    						   tep_draw_hidden_field('currency', $sec_currency) .
    						   tep_draw_hidden_field('callback', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false) . ';' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, 'payment_error=' . $this->code, 'SSL', false)) .
    						   tep_draw_hidden_field(tep_session_name(), tep_session_id()) .
    						   tep_draw_hidden_field('options', 'test_status=' . $test_status . ',dups=false,cb_post=true,cb_flds=' . tep_session_name());
    
      return $process_button_string;
    }
    
    function before_process() {
      global $HTTP_POST_VARS;
    
      if ($HTTP_POST_VARS['valid'] == 'true') {
    	if ($remote_host = getenv('REMOTE_HOST')) {
    	  if ($remote_host != 'secpay.com') {
    		$remote_host = gethostbyaddr($remote_host);
    	  }
    	  if ($remote_host != 'secpay.com') {
    		tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, tep_session_name() . '=' . $HTTP_POST_VARS[tep_session_name()] . '&payment_error=' . $this->code, 'SSL', false, false));
    	  }
    	} else {
    	  tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, tep_session_name() . '=' . $HTTP_POST_VARS[tep_session_name()] . '&payment_error=' . $this->code, 'SSL', false, false));
    	}
      }
    }
    
    function after_process() {
      return false;
    }
    
    function get_error() {
      global $HTTP_GET_VARS;
    
      if (isset($HTTP_GET_VARS['message']) && (strlen($HTTP_GET_VARS['message']) > 0)) {
    	$error = stripslashes(urldecode($HTTP_GET_VARS['message']));
      } else {
    	$error = MODULE_PAYMENT_SECPAY_TEXT_ERROR_MESSAGE;
      }
    
      return array('title' => MODULE_PAYMENT_SECPAY_TEXT_ERROR,
    			   'error' => $error);
    }
    
    function check() {
      if (!isset($this->_check)) {
    	$check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_SECPAY_STATUS'");
    	$this->_check = tep_db_num_rows($check_query);
      }
      return $this->_check;
    }
    
    function install() {
      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable SECpay Module', 'MODULE_PAYMENT_SECPAY_STATUS', 'True', 'Do you want to accept SECPay payments?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Merchant ID', 'MODULE_PAYMENT_SECPAY_MERCHANT_ID', 'secpay', 'Merchant ID to use for the SECPay service', '6', '2', now())");
      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Currency', 'MODULE_PAYMENT_SECPAY_CURRENCY', 'Any Currency', 'The currency to use for credit card transactions', '6', '3', 'tep_cfg_select_option(array(\'Any Currency\', \'Default Currency\'), ', now())");
      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Mode', 'MODULE_PAYMENT_SECPAY_TEST_STATUS', 'Always Successful', 'Transaction mode to use for the SECPay service', '6', '4', 'tep_cfg_select_option(array(\'Always Successful\', \'Always Fail\', \'Production\'), ', now())");
      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_SECPAY_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_SECPAY_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");
      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_SECPAY_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");
    }
    
    function remove() {
      tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
    }
    
    function keys() {
      return array('MODULE_PAYMENT_SECPAY_STATUS', 'MODULE_PAYMENT_SECPAY_MERCHANT_ID', 'MODULE_PAYMENT_SECPAY_CURRENCY', 'MODULE_PAYMENT_SECPAY_TEST_STATUS', 'MODULE_PAYMENT_SECPAY_ZONE', 'MODULE_PAYMENT_SECPAY_ORDER_STATUS_ID', 'MODULE_PAYMENT_SECPAY_SORT_ORDER');
    }
     }
    ?>


  3. i have not tested your site yet but this might have something to do with it

    both in your create_account.php and login.php somewhere after recreate session part add this code.

    i belive this would solve the problem.

    $sendto = $customer_default_address_id;
    $billto = $customer_default_address_id;
    tep_session_register('sendto');
    tep_session_register('billto');

    i had a few people have an issue with shipping modules similar to what you are experiencing with your payment module and this resolved

     

    Thanks for the prompt reply Frank, but i've only just come back on-line to see your reply and try it.

    Anyway, i've added the mods you've suggested and it's still the same, whether a new customer or a returning customer, you still have to refresh the page for the payment module to show?

     

    Julian


  4. Hi again

     

    It would appear i am still having a problem with the checkout_shipping.php. I only use the SECPay module as my payment method so there are no options there which is correct. However, as a new customer reaches checkout shipping the text in the payment box is there saying "SECpay is the only payment method to use on this order" but the module has not loaded. If you refresh the page the rest of the SECPay module appears and you can then checkout to SECPay after the checkout_confirmation.php?

    This is a live site and i really need this working ASAP, any ideas on why i have to refresh the page?

    You can check it out for yourself at www.jbleisure.co.uk using test@testsite.co.uk as the e:mail and testing as the password. Note that SECPay is in production mode so don't pay for anything.

     

    Thanks in advance. i hope you can help me out.

    Cheers

    Julian


  5. julianpuje

    please explain the situations when this is happening . i mean the steps that customer takes that causes this bug. i want to recreate it so i can find the reason i am going to try diffrent scenarios in the mean time.also if you have made other changes to your checkout_payment.php and checkout_shipping.php either before or after instaling my contribution.

    When you got to the payment page, the payment module text was there, saying this is the only payment method to use on this order, then nothing else. When you refreshed the page the text was still there and the SECPay module bit appeared.

    I have just managed to cure it by changing the way i add a low order fee. I was using a shipping module for this to add ?5.95 to orders under ?49.50. ie by postage and changed the text to low order fee only.

    I have also commented out the virtual products bit (whatever they are?) as i was being redirected to my payment page instead of the combined shipping page when orders were below the ?49.50. I have no idea why this was happening or why these changes have solved it.

    I am now using a low order fee module instead of the shipping charge.

    The only new problem the above appears to have created is that my referral discount (ccgv) is not being redeemed after entering the code. It goes through the motions then forwards me to the checkout confirmation but doesn't show anything related to the discount, ie no text no ?. So looking into this now to see if it is related to what i've done or if it's something with the CCGV set up in admin.

     

    Julian


  6. Hi Frank

     

    I thought everything was working fine after installing the checkout_shipping.php you posted for me to try, but i've discovered through more checking that my SECPay module keeps disappearing from the payment options. If i go to my admin and reinstall it, it shows again. Then when you go through checkout again it's gone and i have to reinstal it again.

    Any ideas on what the problem could be.

    Thanks

     

    Julian


  7. Hi all

     

    This contribution was working fine and the xml files were/are generated and fed to Google OK.

    Or so i thought. I have just set up a new site and thought i'd set up the sitemap for this, so i go to my google admin and see that the file for my older site is uploading with errors. On checking i get the same error when i call any of the xml files in my address bar. The files are actually generated (if you look in them (ftp)).; The error i get on all the files is:-

     

    LIne 1 on all the files is <?xml version="1.0" encoding="UTF-8"?>

    MY site is HERE

     

    I have no idea how long it has been like this as i get the cron e:mail saying all files generated and uploaded OK.

    Any help on this appreciated.

    TIA

     

    Julian

    Anybody got any ideas why this is happening? The error is when i call the siemaps to my site.

    I have reinstalled it on both sites, one works fine the other gives the above error.

    Thanks

    julian


  8. Hi all

     

    This contribution was working fine and the xml files were/are generated and fed to Google OK.

    Or so i thought. I have just set up a new site and thought i'd set up the sitemap for this, so i go to my google admin and see that the file for my older site is uploading with errors. On checking i get the same error when i call any of the xml files in my address bar. The files are actually generated (if you look in them (ftp)).; The error i get on all the files is:-

     

    LIne 1 on all the files is <?xml version="1.0" encoding="UTF-8"?>

    MY site is HERE

     

    I have no idea how long it has been like this as i get the cron e:mail saying all files generated and uploaded OK.

    Any help on this appreciated.

    TIA

     

    Julian

     

    I've reinstalled this on both my sites. The new sitemap loads and works fine on the new site, but still get the above errors on my old site. Really don't get it. Any ideas on why this would error on line 1??? with the same loaded on both sites. One works one doesn't???

     

    Cheers

     

    Julian


  9. julianpuje

    i just checked your site and had no problem i guess you fixed it

    i do not know how but i guess there has to be a way to just go to checkout_confirmation since there is nothing to do in checkout_shopping.i do not think it should be too hard

     

    The problem is still there, you probably didn't notice it. Right at the bottom left of the page when you click to continue to checkout_confirmation there is an error that flashes up. I can get it to stay by activating another payment module. If you can take another look for me please. Doing it this way, as soon as you select a payment method the error appears at the bottom left, if you click on that you'll see what the error is.

     

    Thanks for taking a look and hope you find time to look again.

     

    Thanks

     

    Julian

     

     

    My Webpage


  10. Great contrib :thumbsup:

    I am only using the combine checkout_payment and shipping bit and it works fine. The only problem i get is that at the bottom of the page i get a page error when i click continue to confirmation even though it all appears to work.

    I don't use a shipping module so it might be something to do with that. I also only have SECPay as a payment method. It could also be to do with this as i didn't understand what mods need doing to the checkout_confirmation.php if any to account for this. As it says in the instructions to modify it to suit!

    Can anyone help me out finding the problem?

    I have uploaded the new checkout shipping and modified the other two files as instructed, i have also tried uploading all the files from the contri as replacements and get the same error!

     

    The error is as follows:-

    Line: 119

    Char: 1

    Error: Object Expected

    Code: 0

    URL: https://www.jbleisure.co.uk/checkout_shipping.php?n=1

     

    Any help on this greatly appreciated as my site goes live tomorrow!!!!! well the adverts do anyway.

     

    TIA

     

    Julian


  11. Hi all

     

    This contribution was working fine and the xml files were/are generated and fed to Google OK.

    Or so i thought. I have just set up a new site and thought i'd set up the sitemap for this, so i go to my google admin and see that the file for my older site is uploading with errors. On checking i get the same error when i call any of the xml files in my address bar. The files are actually generated (if you look in them (ftp)).; The error i get on all the files is:-

    Parse error: parse error, unexpected T_STRING in /home/julianp/public_html/sitemapindex.xml on line 1

    LIne 1 on all the files is <?xml version="1.0" encoding="UTF-8"?>

    MY site is HERE

     

    I have no idea how long it has been like this as i get the cron e:mail saying all files generated and uploaded OK.

    Any help on this appreciated.

    TIA

     

    Julian


  12. Sorry, it doesn't matter. Finally found it!!! :blush: i was looking in my configure.php and not in the configure.php in the local folder! :blush:

    This applies to all the above posts with similar errors showing error email_invoice.php on line 30.

    Make sure you have the correct path to your files in your local folder.

     

    Great contri, thanks

     

    Julian


  13. Hi All

    This is an excellent contribution, i have been using it for a while now on my other site and all's OK.

    I now have a small problem. I have copied my site over to a new domain and configured everything to suit, but now get the following error at checkout_success. Does anybody know where this path is being called from as my configure.php is set up correctly for home/julianbc but the invoice path is looking for home/julianp???? which is my other site. I have virtually looked through every single file and cannot find this, so any help appreciated.

    TIA

    Julian

     

     

    Warning: main(): open_basedir restriction in effect. File(/home/julianp/public_html/admin/includes/languages/english/invoice.php) is not within the allowed path(s): (/home/julianbc:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/julianbc/public_html/includes/modules/email_invoice/email_invoice.php on line 30
    
    Warning: main(/home/julianp/public_html/admin/includes/languages/english/invoice.php): failed to open stream: Operation not permitted in /home/julianbc/public_html/includes/modules/email_invoice/email_invoice.php on line 30
    
    Warning: main(): open_basedir restriction in effect. File(/home/julianp/public_html/admin/includes/languages/english/invoice.php) is not within the allowed path(s): (/home/julianbc:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/julianbc/public_html/includes/modules/email_invoice/email_invoice.php on line 30
    
    Warning: main(/home/julianp/public_html/admin/includes/languages/english/invoice.php): failed to open stream: Operation not permitted in /home/julianbc/public_html/includes/modules/email_invoice/email_invoice.php on line 30
    
    Fatal error: main(): Failed opening required '/home/julianp/public_html/admin/includes/languages/english/invoice.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/julianbc/public_html/includes/modules/email_invoice/email_invoice.php on line 30


  14. Hi

     

    I've done the complete upload again and got a fresh binary GeoIP.dat file from the site. I ftp'd this folder in binary mode and still no luck. Exactly the same error.

    Any ideas, thanks.

     

    Julian

    Fatal error: error traversing database - perhaps it is corrupt? in /home/julianp/public_html/includes/geoip.inc on line 416

    Hi again

     

    Been through the install many times now with the same error. No idea why it isn't working, has anyone else?

     

    Cheers

    Julian


  15. Julian,

     

    this is a strange one then - I need to think some more about that one.... Actually, just a thought - if it's a binary file guess it should be uploaded in BINARY mode in your ftp client, and not ASCII mode. Might be worth checking your ftp client settings to see what mode it is using.

     

    Regards,

     

    Hi

     

    I've done the complete upload again and got a fresh binary GeoIP.dat file from the site. I ftp'd this folder in binary mode and still no luck. Exactly the same error.

    Any ideas, thanks.

     

    Julian

    Fatal error: error traversing database - perhaps it is corrupt? in /home/julianp/public_html/includes/geoip.inc on line 416


  16. Julian,

     

    That's right - in the newest version of Supertracker the IP to Country translation files have moved from the catalog side to the admin side, as explained in the readme.

     

    The error you are seeing happened to me the first time I tried to use the geoip functions during development. I suspect that you have downloaded the wrong type of GeoIP.dat file from Maxmind's site (there is more than one). Make sure that it is the binary file that you have got there  - it should be around 800kb, ish, the other versions are, I think, larger than this.

     

    Regards,

     

    Thanks for the quick reply Mark

    I think i have the right GeoIP.dat file. It is the binary version and about 800k?

    So not sure what to do next, any more advice?

    I'll take another look through the install and try a few different GeoIP.dat files if i can find another binary one.

    Thanks

    Julian


  17. Looks like this is going to do exactly what i need. I'm getting the following error though:-

    Fatal error: error traversing database - perhaps it is corrupt? in /home/julianp/public_html/includes/geoip.inc on line 416

    I had all sorts of errors at first and then put the GeoIP.dat file in my catalog/includes folder instead of Admin/includes?

    Any ideas on what could be wrong.

     

    Cheers

     

    Julian


  18. Hi all

     

    Just been through the threads for Chemo's ultimate SEO url's and can only find one reference to the Froogle feed that wasn't replied to.

    Has anyone managed to get the Froogle feed url's to be correct after installing the SEO contribution.

    My froogle feed is creating url' as follows:-

     

    http://www.leisurezone.co.uk/product_info.php?products_id=73

     

    But the actual url it should be is:-

     

    http://www.leisurezone.co.uk/tournament-22...ooker-p-73.html

     

    Has anybody done this or have any idea how i get the Froogle feed to create the correct url???

     

    Any help appreciated on merging these two great contributions.

     

    TIA

     

    Julian


  19. yes, I have got more 1 caterory, please see my website www.cybersystem.be

     

    Best regards,

    Basalt

    Hi again

     

    Looking at your site, i would install Chemo's Ultimate SEO URL's and try the Googlesitemaps again. You need to install a URL contribution anyway, so you may aswell use Chemo's as it is compatible with the google mod. This SEO URL's contri includes a mod to the HTML output which affects the link wrapper function.

    So it may be worth a try to see if it solves the problem.

     

    Julian


  20. Hello,

     

    Can you help me ?

     

    Warning: fopen(http://www.yourdomaine.com/catalog/sitemapproducts.xml): failed to open stream: HTTP wrapper does not support writeable connections. in /home/domaine/public_html/yourdomaine.com/catalog/googlesitemap/sitemap.class.php on line 287

    ERROR: Google Product Sitemap Generation FAILED!

    Warning: fopen(http://www.yourdomaine.com/catalog/sitemapcategories.xml): failed to open stream: HTTP wrapper does not support writeable connections. in /home/domaine/public_html/yourdomaine.com/catalog/googlesitemap/sitemap.class.php on line 287

    ERROR: Google Category Sitemap Generation FAILED!

    Warning: fopen(http://www.yourdomaine.com/catalog/sitemapindex.xml): failed to open stream: HTTP wrapper does not support writeable connections. in /home/domaine/public_html/yourdomaine.com/catalog/googlesitemap/sitemap.class.php on line 287

    ERROR: Google Sitemap Index Generation FAILED!

    Thanks you for your assistance,

    Basalt

    Are you using Chemo's SEO URL's ??

     

    /home/domaine/public_html/yourdomaine.com/catalog/googlesitemap/sitemap.class.php

    This line looks suspiciously wrong & long?

    Have you put the googlesitemaps folder in the same catalog folder as your xml files? and set the xml file permissions to 777 ?


  21. Try the cron as:

    php /home/full/path/to/googlesitemap/index.php

     

    you need the "php" at the start then a space followed by the path /............

     

    You can set your cron to run in 5 minutes time, if it looks like it's executed ok and the e:mail says successful, then change it to whatever time you want.

    Not sure if this is what you need.

     

    HTH

     

    Julian


  22. Hi willross,

     

    I was wondering about the login too. I just use the link that you put in.

     

    But, you also said no bells or email from Google. Is there a better way to submit it? I thought some people were getting emails from Google.

     

    Plus, I only submitted the sitemapindex.xml file too.

     

    The e:mails i think others are referring to are from their own site/server via the cron job to say it has generated the 3 .xml files.

     

    How it works: (please someone correct me if i'm wrong)

    The cron job kick starts the php file googlesitemaps/index.php to create the new 3.xml files, (on a daily basis if you kept the default setup). Thats why they need to be read/write so they can be rewritten whenever the cron kicks in.

    The sitemapindex.xml file should then be submitted to Googles sitemaps (only the first time), so it knows you have it. It will then use that to reach the product and category .xml files and update any links on Google that have changed. ie you've edited etc.

    As far as i am aware the priority and date parts of the sitemaps created indicates to the spider which products have changed & when.

    I think thats it anyway.

    I would not hold my breath for a confirmation e:mail from Google. Just keep an eye on your Google account as Will has said.

    Use the link to Google sitemaps i've posted above and see what you get.

     

    HTH

     

    Julian

×