always_confused Posted March 19, 2008 Posted March 19, 2008 I was trying to get rid of the image on my specials page but stuffed something up and got this error: Parse error: syntax error, unexpected '<' in ... specials.php on line 30 So I opened the shipping php. copied the line I had deleted in specials.php and pasted it back in. So now my specials.php looks like all my other files except for specifics for each page. But I still get the same error message. I am assuming line 30 falls in here somewhere, as that is all I fiddled with: <!-- 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> So my question is, what should like 30 read? Hope someone can help. Thanks.
germ Posted March 19, 2008 Posted March 19, 2008 Post the code from the beginning of the file down to what you already posted. 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 >
always_confused Posted March 20, 2008 Author Posted March 20, 2008 yes that would be helpful, meant to do that before, obviously wasn't paying attention. <?php /* $Id: specials.php 1739 2007-12-20 00:52:16Z hpdl $ 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(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SPECIALS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SPECIALS)); ?> <!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>
germ Posted March 20, 2008 Posted March 20, 2008 This line: <?php require(DIR_WS_INCLUDES . 'header.php'); Should be: <?php require(DIR_WS_INCLUDES . 'header.php'); ?> 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 >
always_confused Posted March 20, 2008 Author Posted March 20, 2008 thanks for that, not sure how that happened when I did not edit there. Oh well. I dont understand how that is line 30 either, but again oh well. Thanks again.
always_confused Posted March 20, 2008 Author Posted March 20, 2008 while I have got your attention, how do I get rid of the images? maybe what I did was wrong or maybe it wasn't never mind worked it out :rolleyes:
germ Posted March 20, 2008 Posted March 20, 2008 Actually, the line you fixed is 29. line 01:<?php line 02:/* line 03: $Id: specials.php 1739 2007-12-20 00:52:16Z hpdl $ line 04: line 05: osCommerce, Open Source E-Commerce Solutions line 06: http://www.oscommerce.com line 07: line 08: Copyright (c) 2003 osCommerce line 09: line 10: Released under the GNU General Public License line 11:*/ line 12: line 13: require('includes/application_top.php'); line 14: line 15: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SPECIALS); line 16: line 17: $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SPECIALS)); line 18:?> line 19:<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> line 20:<html <?php echo HTML_PARAMS; ?>> line 21:<head> line 22:<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> line 23:<title><?php echo TITLE; ?></title> line 24:<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> line 25:<link rel="stylesheet" type="text/css" href="stylesheet.css"> line 26:</head> line 27:<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> line 28:<!-- header //--> line 29:<?php require(DIR_WS_INCLUDES . 'header.php'); line 30:<!-- header_eof //--> Sometimes the error isn't where it says it is... :blush: 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 >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.