Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP - error message


always_confused

Recommended Posts

Posted

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.

Posted

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 >

Posted

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>

Posted

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 >

Posted

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 >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...