GD Posted December 3, 2002 Share Posted December 3, 2002 Hi Everyone, Help, I have run into a problem... My Header menu is doubling all links for some reason. :shock: Does anyone know how to fix this :?: :?: :?: --------------------- Source code: <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <a href="http://www.mydomain.com" class="headerNavigation">Home</a> » <a href="http://www.mydomain.com/catalog/default.phphttp://www.mydomain.com/catalog/default.php" class="headerNavigation">Catalog</a></td> <td align="right" class="headerNavigation"><a href="https://www.mydomain.com/catalog/account.php?osCsid=session_numbershttps://www.mydomain.com/catalog/account.php?osCsid=session_numbers" class="headerNavigation">My Account</a> | <a href="http://www.mydomain.com/catalog/shopping_cart.phphttp://www.mydomain.com/catalog/shopping_cart.php" class="headerNavigation">Shopping Cart</a> | <a href="https://www.mydomain.com/catalog/checkout_payment.php?osCsid=session_numbershttps://www.mydomain.com/catalog/checkout_payment.php?osCsid=session_numbers" class="headerNavigation">Checkout</a> </td> </tr> </table> <!-- header_eof //--> ----------------------- oSC header.php code: <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> </tr> </table> Thanks in advance! Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet! Link to comment Share on other sites More sharing options...
Ajeh Posted December 3, 2002 Share Posted December 3, 2002 Have a URL that we can peek at on this? I sorta need to see things to fix things ... :D Link to comment Share on other sites More sharing options...
GD Posted December 3, 2002 Author Share Posted December 3, 2002 Hi Linda, I can not give out the domain for the store to the general public yet, and I do not really want to deal with spammers lurking in the oSC forums :evil:, but I will gladly e-mail you the link if you don't give it out or post it anywhere. Okay :?: Promise:?: Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet! Link to comment Share on other sites More sharing options...
Ajeh Posted December 3, 2002 Share Posted December 3, 2002 /me looks around for the nice shiney bullets to go with the nice shiney gun ... sure, sure ... I promise ... trust me ... 8) Link to comment Share on other sites More sharing options...
GD Posted December 3, 2002 Author Share Posted December 3, 2002 Nice ;) E-mail is on its way. Thanks :!: Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet! Link to comment Share on other sites More sharing options...
Bearman Posted December 3, 2002 Share Posted December 3, 2002 We've upgraded from 2.1 to 2.2 in the admin/configuration/MyStore options are duplicated.. how can I remove the duplcates... E-Mail Address myname@domain.com E-Mail From sales@domain.com> Store Owner Country United Kingdom Zone Zone Expected Sort Order desc Expected Sort Field date_expected Switch To Default Language Currency true Switch To Default Currency true Send Extra Order Emails To Send Extra Order E-Mails To Use Search-Engine Safe URLs (still in development) false Use Search-Engine Safe URLs false Display Cart After Adding Product true Display Cart After Adding Product true Allow Guest To Tell A Friend true Allow Guest To Tell A Friend false Default Search Operator and Default Search Operator and Store Address and Phone Store Address and Phone Store Name The name of my store Date Added: 11/27/2002 Last Modified: 11/27/2002 thanks B Link to comment Share on other sites More sharing options...
GD Posted December 5, 2002 Author Share Posted December 5, 2002 I think I found out what *I* did wrong... :oops: I changed line 69 in the catalog/includes/functions/html_output.php from: return $link; to: return htmlspecialchars($link) . $link; // Changed this to plug Cross Site Scripting hole It should have been: return htmlspecialchars($link); // Changed this to plug Cross Site Scripting hole I'm not 100% sure, but I think I'm heading in the right direction to fix the site doubling all the hyperlinks. :) I post the yes or no answer when I get my site back up. Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet! Link to comment Share on other sites More sharing options...
GD Posted December 5, 2002 Author Share Posted December 5, 2002 The answer to my own question was *yes*, the error was my own typo! :shock: Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet! Link to comment Share on other sites More sharing options...
Ajeh Posted December 5, 2002 Share Posted December 5, 2002 Don'tcha just hate when you are the victim of your own creations? :wink: Link to comment Share on other sites More sharing options...
GD Posted December 6, 2002 Author Share Posted December 6, 2002 Thanks for the input Linda, I know I should stop working on the code when I get tired, but something about breaking parts of the code down, helps me learn how to use it. :D I'd still be lost though, without people like you and everybody else in the osCommerce forums. Very helpful indeed! -------------------- Bearman, Sorry I don't have a "the" answer for your problem, but... If your still in the "development stage" on your site, I'd backup what I had, database; ect., then do a clean installation of 2.2, and then again if needed. And you should do a search for 2.1 to 2.2 conversions, you might find that someone already has the answer you need. Good luck! ------------------- I'm on to other problems to be solved. :wink: Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet! Link to comment Share on other sites More sharing options...
Bearman Posted December 6, 2002 Share Posted December 6, 2002 That's exactly what we did and all is well :) thanks Barry Link to comment Share on other sites More sharing options...
Christian Lescuyer Posted December 6, 2002 Share Posted December 6, 2002 We've upgraded from 2.1 to 2.2 in the admin/configuration/MyStore options are duplicated.. how can I remove the duplcates... It looks as if you have double entries in the configuration table. I don't really understand how this could happen, though. Can you mail me a database dump (or provide a phpMyAdmin access?) Christian Christian Lescuyer Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.