♥valerif Posted October 24, 2010 Posted October 24, 2010 I installed the CCGV newst version (5.21) All is working just fine, can redeem, can add, buy and pay BUT When someone want to send the gift (gv_send.php) and click the Send Gift Voucher link in the basket I get this message: Error! Unable to determine the page link! i wonder if any one could suggest what could be wrong. thanks valeri
♥valerif Posted November 13, 2010 Author Posted November 13, 2010 I installed the CCGV newst version (5.21) All is working just fine, can redeem, can add, buy and pay BUT When someone want to send the gift (gv_send.php) and click the Send Gift Voucher link in the basket I get this message: Error! Unable to determine the page link! i wonder if any one could suggest what could be wrong. thanks valeri any one?
FIMBLE Posted November 13, 2010 Posted November 13, 2010 this would normally mean the make up of the link is incorrect, examine the page tep_href_link(blah blah to make sure they are correct Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
♥valerif Posted November 17, 2010 Author Posted November 17, 2010 this would normally mean the make up of the link is incorrect, examine the page tep_href_link(blah blah to make sure they are correct Nic hi nik, thanks for your kind replay will you be able to point me in direction on how to examin the tep_href_link thanks
FIMBLE Posted November 17, 2010 Posted November 17, 2010 Hi No worries, can you post the file that you get this error on please? The one with the "Send gift voucher" link in it, Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
♥valerif Posted November 17, 2010 Author Posted November 17, 2010 Hi No worries, can you post the file that you get this error on please? The one with the "Send gift voucher" link in it, Nic this is the HTML version: <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="LTR" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Send Gift Certificate - Canvas Art from Printingcanvas</title> <meta name="description" content="Send Gift Certificate."> <meta name="keywords" content="send,gift,certificate"> <link rel="canonical" href="http://printingcanvas.co.uk/gv_send.php"> <base href="https://printingcanvas.co.uk/"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <div id="header"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><a href="http://printingcanvas.co.uk/index.php"><img'>http://printingcanvas.co.uk/index.php"><img src="images/store_logo.png" border="0" alt="PrintingCanvas" title="PrintingCanvas"></a></td> <td align="right" width="30%" valign="bottom" class="headerNavigation_menu"><a href="https://printingcanvas.co.uk/logoff.php" class="headerNavigation_menu">Log Off</a> | <a href="https://printingcanvas.co.uk/account.php" class="headerNavigation_menu">My Account</a> <table border="0"> <tbody> <tr> <td class="headerNavigation" align="right" valign="bottom">Products:</td> <td class="headerNavigation" align="right" valign="bottom">0 /</td> <td class="headerNavigation" align="right" valign="bottom">Total:</td> <td class="headerNavigation" align="right" valign="bottom">£0.00</td> <td rowspan="3" align="right" valign="top"><a href="http://printingcanvas.co.uk/shopping_cart.php"><img src="images/carrito.gif" border="0" alt="Shopping Cart" title="Shopping Cart"></a></td> </tr> </tbody> </table> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="headerInformation_menu"> <td align="left" width="76%" valign="middle" class="headerInformation_menu"> <a href="http://printingcanvas.co.uk/index.php" class="headerInformation_menu">Home</a> | <a href="http://printingcanvas.co.uk/about.php" class="headerInformation_menu">About Us</a> | <a href="http://printingcanvas.co.uk/faq.php" class="headerInformation_menu">Faq</a> | <a href="http://printingcanvas.co.uk/sizes_prices.php" class="headerInformation_menu">Sizes/Prices</a> | <a href="http://printingcanvas.co.uk/testimonials.php" class="headerInformation_menu">Testimonials</a> | <a href="http://printingcanvas.co.uk/contact_us.php" class="headerInformation_menu">Contact Us</a> </td> <td align="right" valign="top" width="12%"><!-- search //--> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> <tr> <td align="center" class="boxText"><form name="quick_find" action="http://printingcanvas.co.uk/advanced_search_result.php" method="get"> <td><input type="image" src="includes/languages/english/images/buttons/button_quick_find.gif" border="0" alt="Quick Find" title=" Quick Find "></td><td><input type="text" name="keywords" value="search keywords" maxlength="30" style="width: 100%"></td></form></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> </table> </td> </tr> </table> <!-- search_eof //--></td> <td align="right" valign="top" width="12%" ><!-- currencies //--> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> <tr> <td align="center" class="boxText"><form name="currencies" action="https://printingcanvas.co.uk/gv_send.php" method="get"><select name="currency" onChange="this.form.submit();" style="width: 100%"><option value="USD">US Dollar</option><option value="EUR">Euro</option><option value="GBP" SELECTED>GB Pound</option></select></form></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> </table> </td> </tr> </table> <!-- currencies_eof //--> </td> </tr> </table> </div><div id="content"><!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="200" valign="top"><table border="0" width="200" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <!-- all_categories //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Categories</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14" 1></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> <tr> <td align="left" class="boxText"><a href="http://printingcanvas.co.uk/your-print-on-canvas-c-21.html" class="menucateg"><img src="images/pointer_blue.gif" border="0" alt=""> Your Print on Canvas<br></a> <a href="http://printingcanvas.co.uk/urban-canvas-art-c-1.html" class="menucateg"><img src="images/pointer_blue.gif" border="0" alt=""> Urban Canvas Art<br></a> <a href="http://printingcanvas.co.uk/cityscapes-c-2.html" class="menucateg"><img src="images/pointer_blue.gif" border="0" alt=""> Cityscapes<br></a> <a href="http://printingcanvas.co.uk/cityscapes-hong-kong-c-2_31.html" class="menucateg"> - Hong Kong<br></a> <a href="http://printingcanvas.co.uk/cityscapes-new-york-c-2_28.html" class="menucateg"> - New York<br></a> <a href="http://printingcanvas.co.uk/cityscapes-tokyo-c-2_32.html" class="menucateg"> - Tokyo<br></a> <a href="http://printingcanvas.co.uk/cityscapes-london-c-2_53.html" class="menucateg"> - London<br></a> <a href="http://printingcanvas.co.uk/lanscapes-c-23.html" class="menucateg"><img src="images/pointer_blue.gif" border="0" alt=""> Lanscapes<br></a> <a href="http://printingcanvas.co.uk/digital-photo-frames-c-3.html" class="menucateg"><img src="images/pointer_blue.gif" border="0" alt=""> Digital Photo Frames<br></a> <a href="http://printingcanvas.co.uk/nature-c-25.html" class="menucateg"><img src="images/pointer_blue.gif" border="0" alt=""> Nature<br></a> <a href="http://printingcanvas.co.uk/floral-c-27.html" class="menucateg"><img src="images/pointer_blue.gif" border="0" alt=""> Floral<br></a> <a href="http://printingcanvas.co.uk/abstract-c-26.html" class="menucateg"><img src="images/pointer_blue.gif" border="0" alt=""> Abstract<br></a> <a href="http://printingcanvas.co.uk/abstract-abstract-shapes-c-26_29.html" class="menucateg"> - Abstract Shapes<br></a> <a href="http://printingcanvas.co.uk/abstract-dotted-art-pop-art-c-26_30.html" class="menucateg"> - Dotted Art / Pop Art<br></a> <a href="http://printingcanvas.co.uk/abstract-urban-abstract-c-26_52.html" class="menucateg"> - Urban Abstract<br></a> <a href="http://printingcanvas.co.uk/sky-c-22.html" class="menucateg"><img src="images/pointer_blue.gif" border="0" alt=""> Sky<br></a> <a href="http://printingcanvas.co.uk/gift-vouchers-c-33.html" class="menucateg"><img src="images/pointer_blue.gif" border="0" alt=""> Gift Vouchers<br></a> </td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- all_categories_eof //--><!-- offer_box //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading1"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading1">Digital Photo Frame Gift!</td> <td height="14" class="infoBoxHeading1" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14" 1></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> <tr> <td class="boxText">Order canvas art worth <b>£150.00</b> and we will send to you this <b>FREE</b> 7" Digital Photo Frame <br><br><b><a href="http://printingcanvas.co.uk/7inch-digital-photo-frame-p-78.html">Click Here</a></b> </td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> </table> </td> </tr> </table> </td></tr> <!-- offer_box_eof //--><!-- test_patch //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading1"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading1">Free Test Patch!</td> <td height="14" class="infoBoxHeading1" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14" 1></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> <tr> <td class="boxText">If you like an image but not sure about the colour match to your environment, canvas material used or the general finish quality, you are welcome to order a <b>FREE </b>test patch print of the image<br><br><b><a href="http://printingcanvas.co.uk/free-test-patch-p-149.html">Click Here</a></b> </td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> </table> </td> </tr> </table> </td></tr> <!-- test_box_eof //--><!-- canvas_art //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">More About Canvas Art!</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14" 1></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> <tr> <td class="boxText">"I think that canvas is an excellent material to print original works on. We are greatfull to development of these technologies which have made our forum possible. <br><br> Luckily, we are living in time when artists have a range of methods to produce and display their works inedependently, giving art fans unique opporunities to enjoy them..." <br><b>valerif</b></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> </table> </td> </tr> </table> </td></tr> <!-- canvas_art_box_eof //--><!-- paypal_accepted_box //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">PayPal Accepted</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14" 1></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> <tr> <td class="boxText"><center><img src="images/paypal_verified.gif" border="0"></br><img src="images/paypal_accepted.gif" border="0"></center></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td> </tr> </table> </td> </tr> </table> </td></tr> <!-- paypal_accepted_box_eof //--><!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading">Send Gift Certificate</td> <td align="right"><img src="oscthumb.php?src=/images/table_background_specials.gif&w=1&h=1&f=gif&bg=FFFFFF&q=95&hash=dd6b92f6a81a73d14b5cd0c6a8475f84" border="0" alt="Send Gift Certificate" title="Send Gift Certificate"></td> </tr> </table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10" 1></td> </tr> <tr> <td class="main"><br>Please enter below the details of the Gift Certificate you wish to send. For more information, please see our <a href="http://printingcanvas.co.uk/gv_faq.php">Gift Voucher FAQ.</a><br></td> </tr> <tr> <td><form action="http://printingcanvas.co.uk/gv_send.php?action=send" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main">Recipients Name:<br><input type="text" name="to_name"></td> </tr> <tr> <td class="main">Recipients E-Mail Address:<br><input type="text" name="email"></td> </tr> <tr> <td class="main">Amount of Gift Certificate:<br><input type="" name="amount"></td> </tr> <tr> <td class="main">Message to Recipients:<br><textarea name="message" wrap="soft" cols="50" rows="15"></textarea></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"></td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br> and this is the gv_send.php: <?php /* $Id: gv_send.php,v 1.1.2.3 2003/05/12 22:57:20 wilt Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 - 2003 osCommerce Gift Voucher System v1.0 Copyright © 2001, 2002 Ian C Wilson http://www.phesis.org Released under the GNU General Public License */ require('includes/application_top.php'); require('includes/classes/http_client.php'); // 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(FILENAME_LOGIN, '', 'SSL')); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_GV_SEND); if (($HTTP_POST_VARS['back_x']) || ($HTTP_POST_VARS['back_y'])) { $HTTP_GET_VARS['action'] = ''; } if ($HTTP_GET_VARS['action'] == 'send') { $error = false; if (!tep_validate_email(trim($HTTP_POST_VARS['email']))) { $error = true; $error_email = ERROR_ENTRY_EMAIL_ADDRESS_CHECK; } $gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'"); $gv_result = tep_db_fetch_array($gv_query); $customer_amount = $gv_result['amount']; $gv_amount = trim($HTTP_POST_VARS['amount']); if (ereg('[^0-9/.]', $gv_amount)) { $error = true; $error_amount = ERROR_ENTRY_AMOUNT_CHECK; } if ($gv_amount>$customer_amount || $gv_amount == 0) { $error = true; $error_amount = ERROR_ENTRY_AMOUNT_CHECK; } } if ($HTTP_GET_VARS['action'] == 'process') { $id1 = create_coupon_code($mail['customers_email_address']); $gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id='".$customer_id."'"); $gv_result=tep_db_fetch_array($gv_query); $new_amount=$gv_result['amount']-$HTTP_POST_VARS['amount']; if ($new_amount<0) { $error= true; $error_amount = ERROR_ENTRY_AMOUNT_CHECK; $HTTP_GET_VARS['action'] = 'send'; } else { $gv_query=tep_db_query("update " . TABLE_COUPON_GV_CUSTOMER . " set amount = '" . $new_amount . "' where customer_id = '" . $customer_id . "'"); $gv_query=tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'"); $gv_customer=tep_db_fetch_array($gv_query); $gv_query=tep_db_query("insert into " . TABLE_COUPONS . " (coupon_type, coupon_code, date_created, coupon_amount) values ('G', '" . $id1 . "', NOW(), '" . $HTTP_POST_VARS['amount'] . "')"); $insert_id = tep_db_insert_id(); $gv_query=tep_db_query("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, sent_lastname, emailed_to, date_sent) values ('" . $insert_id . "' ,'" . $customer_id . "', '" . addslashes($gv_customer['customers_firstname']) . "', '" . addslashes($gv_customer['customers_lastname']) . "', '" . $HTTP_POST_VARS['email'] . "', now())"); $gv_query=tep_db_query("select coupon_id from " . TABLE_COUPONS . " where coupon_code = '" . $id1 . "'"); $gv_new_coupon=tep_db_fetch_array($gv_query); $gv_query=tep_db_query("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, sent_lastname, emailed_to, date_sent) values ('" . $gv_new_coupon['coupon_id'] . "' ,'" . $customer_id. "', '" . addslashes($gv_customer['customers_firstname']) . "', '" . addslashes($gv_customer['customers_lastname']) . "', '" . $HTTP_POST_VARS['email'] . "', now())"); $gv_email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . sprintf(EMAIL_GV_TEXT_HEADER, $currencies->format($HTTP_POST_VARS['amount'])) . "\n" . EMAIL_SEPARATOR . "\n" . sprintf(EMAIL_GV_FROM, stripslashes($HTTP_POST_VARS['send_name'])) . "\n"; if (isset($HTTP_POST_VARS['message'])) { $gv_email .= EMAIL_GV_MESSAGE . "\n"; if (isset($HTTP_POST_VARS['to_name'])) { $gv_email .= sprintf(EMAIL_GV_SEND_TO, stripslashes($HTTP_POST_VARS['to_name'])) . "\n\n"; } $gv_email .= stripslashes($HTTP_POST_VARS['message']) . "\n\n"; } $gv_email .= sprintf(EMAIL_GV_REDEEM, $id1) . "\n\n"; $gv_email .= EMAIL_GV_LINK . ' ' . "<a HREF='" . // ################# Added CGV tep_href_link(FILENAME_GV_REDEEM, 'gv_no=' . $id1,'NONSSL',false) . "'>" . tep_href_link(FILENAME_GV_REDEEM, 'gv_no=' . $id1,'NONSSL',false) . "</a>\n" ; // ################# End Added CGV $gv_email .= "\n\n"; $gv_email .= EMAIL_GV_FIXED_FOOTER . "\n\n"; $gv_email .= EMAIL_GV_SHOP_FOOTER . "\n\n";; $gv_email_subject = sprintf(EMAIL_GV_TEXT_SUBJECT, stripslashes($HTTP_POST_VARS['send_name'])); tep_mail('', $HTTP_POST_VARS['email'], $gv_email_subject, nl2br($gv_email), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ''); } } $breadcrumb->add(NAVBAR_TITLE); ?> <!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; ?>"> <?php include_once DIR_WS_MODULES . 'kiss_meta_tags/kiss_meta_tags.php'; ?> <base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTPS_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </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 //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($HTTP_GET_VARS['action'] == 'process') { ?> <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?><br><br><?php echo 'gv '.$id1; ?></td> </tr> <tr> <td align="right"><br><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td> </tr> <?php } if ($HTTP_GET_VARS['action'] == 'send' && !$error) { // validate entries $gv_amount = (double) $gv_amount; $gv_query = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'"); $gv_result = tep_db_fetch_array($gv_query); $send_name = $gv_result['customers_firstname'] . ' ' . $gv_result['customers_lastname']; ?> <tr> <td><form action="<?php echo tep_href_link(FILENAME_GV_SEND, 'action=process', 'NONSSL'); ?>" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo sprintf(MAIN_MESSAGE, $currencies->format($HTTP_POST_VARS['amount']), stripslashes($HTTP_POST_VARS['to_name']), $HTTP_POST_VARS['email'], stripslashes($HTTP_POST_VARS['to_name']), $currencies->format($HTTP_POST_VARS['amount']), $send_name); ?></td> </tr> <?php if ($HTTP_POST_VARS['message']) { ?> <tr> <td class="main"><?php echo sprintf(PERSONAL_MESSAGE, $gv_result['customers_firstname']); ?></td> </tr> <tr> <td class="main"><?php echo stripslashes($HTTP_POST_VARS['message']); ?></td> </tr> <?php } echo tep_draw_hidden_field('send_name', $send_name) . tep_draw_hidden_field('to_name', stripslashes($HTTP_POST_VARS['to_name'])) . tep_draw_hidden_field('email', $HTTP_POST_VARS['email']) . tep_draw_hidden_field('amount', $gv_amount) . tep_draw_hidden_field('message', stripslashes($HTTP_POST_VARS['message'])); ?> <tr> <td class="main"><?php echo tep_image_submit('button_back.gif', IMAGE_BUTTON_BACK, 'name=back') . '</a>'; ?></td> <td align="right"><br><?php echo tep_image_submit('button_send.gif', IMAGE_BUTTON_CONTINUE); ?></td> </tr> </table></form></td> </tr> <?php } elseif ($HTTP_GET_VARS['action']=='' || $error) { ?> <tr> <td class="main"><?php echo HEADING_TEXT; ?></td> </tr> <tr> <td><form action="<?php echo tep_href_link(FILENAME_GV_SEND, 'action=send', 'NONSSL'); ?>" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo ENTRY_NAME; ?><br><?php echo tep_draw_input_field('to_name', stripslashes($HTTP_POST_VARS['to_name']));?></td> </tr> <tr> <td class="main"><?php echo ENTRY_EMAIL; ?><br><?php echo tep_draw_input_field('email', $HTTP_POST_VARS['email']); if ($error) echo $error_email; ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_AMOUNT; ?><br><?php echo tep_draw_input_field('amount', $HTTP_POST_VARS['amount'], '', '', false); if ($error) echo $error_amount; ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_MESSAGE; ?><br><?php echo tep_draw_textarea_field('message', 'soft', 50, 15, stripslashes($HTTP_POST_VARS['message'])); ?></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <?php $back = sizeof($navigation->path)-2; ?> <td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td> <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> </tr> </table></form></td> </tr> <?php } ?> </table></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> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> ============== thanks
♥FWR Media Posted November 17, 2010 Posted November 17, 2010 [-- Removed as the first file was just a source code dump --] To the problem. tep_href_link() expects the first parameter to be a filename .. if it is null you get the error you are experiencing. Looking at the gv_send code there are only 2 instances that may cause your issue .. namely .. tep_href_link(FILENAME_GV_REDEEM tep_href_link(FILENAME_GV_SEND If any of those constants are not defined then tep_href_link will take them as a null value ( there will also be an E_NOTICE error but you no doubt have errors off - install KissER ). In the instructions for the contribution one of the stages should have been to add the filename defines to includes/filenames.php, perhaps you missed this out? Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
♥valerif Posted November 18, 2010 Author Posted November 18, 2010 [-- Removed as the first file was just a source code dump --] To the problem. tep_href_link() expects the first parameter to be a filename .. if it is null you get the error you are experiencing. Looking at the gv_send code there are only 2 instances that may cause your issue .. namely .. tep_href_link(FILENAME_GV_REDEEM tep_href_link(FILENAME_GV_SEND If any of those constants are not defined then tep_href_link will take them as a null value ( there will also be an E_NOTICE error but you no doubt have errors off - install KissER ). In the instructions for the contribution one of the stages should have been to add the filename defines to includes/filenames.php, perhaps you missed this out? Thanks for taking your time to help me out. I installed KissER. When testing the gv_send.php received a long list of errors. See report bellow: FWR MEDIAKissER Error Handling: E_NOTICE Error Count: 127 Error: Constant OPTIONS_TYPE_PROGRESS already defined File: includes/application_top.php Line: 105 Error: Constant OPTIONS_TYPE_FILEPREFIX already defined File: includes/application_top.php Line: 105 Error: Constant OPTIONS_TYPE_PURGETIME already defined File: includes/application_top.php Line: 105 Error: Constant UPL_DIR already defined File: includes/application_top.php Line: 105 Error: Constant TMP_DIR already defined File: includes/application_top.php Line: 105 Error: Constant OPTIONS_TYPE_IMAGEDIR already defined File: includes/application_top.php Line: 105 Error: Constant OPTIONS_TYPE_IMAGEPREFIX already defined File: includes/application_top.php Line: 105 Error: Constant OPTIONS_TYPE_IMAGENAME already defined File: includes/application_top.php Line: 105 Error: Constant OPTIONS_TYPE_IMAGELANG already defined File: includes/application_top.php Line: 105 Error: Constant OSCTHUMB_USEZC already defined File: includes/application_top.php Line: 105 Error: Constant OSCTHUMB_ADDITIONAL already defined File: includes/application_top.php Line: 105 Error: Constant BOX_HEADER_PAYPAL_ACCEPTED already defined File: includes/languages/english.php Line: 375 Error: Undefined variable: config_values File: includes/classes/oscthumb.php Line: 26 Error: Constant FILENAME_GV_REDEEM already defined File: includes/add_ccgvdc_application_top.php Line: 3 Error: Constant FILENAME_GV_SEND already defined File: includes/add_ccgvdc_application_top.php Line: 5 Error: Undefined index: back_x File: gv_send.php Line: 29 Error: Undefined index: back_y File: gv_send.php Line: 29 Error: Undefined index: action File: gv_send.php Line: 32 Error: Undefined index: action File: gv_send.php Line: 51 Error: Undefined variable: products File: includes/boxes/image_in_cart.php Line: 7 Error: Undefined variable: products File: includes/boxes/image_in_cart.php Line: 31 Error: Undefined index: cPath File: includes/boxes/all_categories.php Line: 342 Error: Undefined variable: cid File: includes/boxes/all_categories.php Line: 343 Error: Undefined variable: in_path File: includes/boxes/all_categories.php Line: 280 Error: Undefined variable: in_path File: includes/boxes/all_categories.php Line: 283 Error: Undefined variable: stoplevel File: includes/boxes/all_categories.php Line: 283 Error: Undefined variable: stoplevel File: includes/boxes/all_categories.php Line: 286 Error: Undefined index: cPath File: includes/boxes/all_categories.php Line: 59 Error: Undefined variable: content File: includes/boxes/offer.php Line: 17 Error: Undefined variable: content1 File: includes/boxes/test_patch.php Line: 17 Error: Undefined variable: content2 File: includes/boxes/canvas_art.php Line: 18 Error: Undefined variable: text_watermark File: includes/classes/oscthumb.php Line: 230 Error: Undefined variable: image_watermark File: includes/classes/oscthumb.php Line: 235 Error: Undefined variable: bevel File: includes/classes/oscthumb.php Line: 238 Error: Undefined variable: frame File: includes/classes/oscthumb.php Line: 241 Error: Undefined variable: params File: includes/classes/oscthumb.php Line: 248 Error: Undefined index: action File: gv_send.php Line: 131 Error: Undefined index: action File: gv_send.php Line: 141 Error: Undefined index: action File: gv_send.php Line: 174 Error: Undefined index: to_name File: gv_send.php Line: 182 Error: Undefined index: email File: gv_send.php Line: 185 Error: Undefined variable: error File: gv_send.php Line: 185 Error: Undefined index: amount File: gv_send.php Line: 188 Error: Undefined variable: error File: gv_send.php Line: 188 Error: Undefined index: message File: gv_send.php Line: 191 Error: Undefined offset: -2 File: gv_send.php Line: 199 E_STRICT Error Count: 1 Error: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead File: includes/languages/english.php Line: 338
♥FWR Media Posted November 18, 2010 Posted November 18, 2010 Scarey isn't it :) My latest client had 1800 errors on the homepage alone. ( worst culprits STS and header tags seo ) Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
♥valerif Posted November 18, 2010 Author Posted November 18, 2010 Scarey isn't it :) My latest client had 1800 errors on the homepage alone. ( worst culprits STS and header tags seo ) yes crasy stuff
♥valerif Posted November 24, 2010 Author Posted November 24, 2010 yes crasy stuff the problem i have is that i can not understand what couses the Unable to determine the page link! error would you have any more suggestion on this issue? thanks
♥valerif Posted December 13, 2010 Author Posted December 13, 2010 hello all i wonder if some one could help with this problem thanks
♥FWR Media Posted December 13, 2010 Posted December 13, 2010 hello all i wonder if some one could help with this problem thanks Hard to answer this. Take the tep_href_link function .. tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) In your case $page is being passed through as empty/null this is being caused by a particular line/lines in your code so others can't possibly debug it. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
♥valerif Posted December 27, 2010 Author Posted December 27, 2010 Hard to answer this. Take the tep_href_link function .. tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) In your case $page is being passed through as empty/null this is being caused by a particular line/lines in your code so others can't possibly debug it. thanks for the tip, i wonder if you could give me a suggestion which files should i go through looking for the error?
birdrockdesigns Posted April 19, 2011 Posted April 19, 2011 I've encountered the same issue only today. The PHP version on the server has not changed, and I've looked at several threads with "Unable to determine the page link!" and tried the various solutions. Search Engine friendly urls are NOT on. I tried changing HTTP_SERVER_VARS to $SERVER, etc. I am running PHP version 4.4.7 and OSC 2.2 I have various contribs installed, but like I said, I only encountered this issue today. Here is the url Could it be SEO URLs? And if so, why just today, as we never had this issue before, customers cannot check out now.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.