SimplyBP Posted June 26, 2009 Posted June 26, 2009 Hey Guys, Im relatively new to this OS Commerce scene. However, my partner and I decided to make up a website. Ive managed to install a template. However to my ignorance and stupidity I some how have managed to muck up the conditions page - here http://www.simplybritishproducts.com/conditions.php What the hell have I done wrong? Secondly , I tried to install http://addons.oscommerce.com/info/5750 this and I have managed to muck that up aswell. hense ---http://www.simplybritishproducts.com/create_account.php I Do apologise guys. I have searched and searched however no-one it seems is having the exact problem that im having ( possibly not as dumb as me ) I really do appretiate it and i hope in someway i can return the favour. Regards Andrew
Guest Posted June 26, 2009 Posted June 26, 2009 Andrew, You will need to supply us the code if you would like us to help you correct the errors. Chris
SimplyBP Posted June 26, 2009 Author Posted June 26, 2009 hey here it is , I also dont know where i get the code for the second problem? <?php /* $Id: conditions.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS)); ?> <!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"> </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><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" 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> <tr> <td class="main"><?php echo TEXT_INFORMATION; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <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 align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </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'); ?>
germ Posted July 2, 2009 Posted July 2, 2009 You've copied the wrong file into the /includes/languages folder. When I try to access /includes/languages/english/conditions.php on your site I get this: Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /home/simplybr/public_html/includes/languages/english/conditions.php on line 13 Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /home/simplybr/public_html/includes/languages/english/conditions.php on line 13 Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/simplybr/public_html/includes/languages/english/conditions.php on line 13 The file in the languages folder should NOT reference application_top.php It should look something like this: <?php /* $Id: conditions.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Conditions of Use'); define('HEADING_TITLE', 'Conditions of Use'); define('TEXT_INFORMATION', 'Put here your Conditions of Use information.'); ?> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted November 2, 2009 Posted November 2, 2009 After I updated : •catalog/admin/includes/languages/english/products_attributes.php with the code. I get this error: Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/zonep2/public_html/boeja/admin/includes/functions/compatibility.php:18) in /home/zonep2/public_html/boeja/admin/includes/functions/compatibility.php on line 18 I do not see a "code" file I could have acidently uploaded. This is what I have in that folder: images modules administrators.php backup.php banner_manager.php banner_statistics.php cache.php categories.php configuration.php countries.php currencies.php customers.php define_language.php file_manager.php geo_zones.php index.php invoice.php languages.php login.php mail.php manufacturers.php modules.php newsletters.php orders.php orders_status.php packingslip.php products_attributes.php products_expected.php reviews.php server_info.php setcom.php specials.php stats_customers.php stats_products_purchased.php stats_products_viewed.php tax_classes.php tax_rates.php whos_online.php zones.php
Recommended Posts
Archived
This topic is now archived and is closed to further replies.