Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please Help! Parse Error


Empire12

Recommended Posts

Please help, I am using an ebook from oscbooks to help me get my website up and have recieved the following error message.

 

Parse error: parse error, unexpected '>' in /home/content/g/r/a/grantchula/html/catalog/includes/classes/boxes.php on line 207

 

 

class SideinfoBoxHeading extends tableBox {

function SideinfoBoxHeading($contents, $left_corner = true,

$right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

$left_corner = tep_image(DIR_WS_IMAGES .

'infobox/corner_left.gif');

if ($right_arrow == true) {

$right_arrow = '<a class="infoboxheadinglink" href="' .

$right_arrow . '">' . $contents[0]['text'] . ' »</a>';

} else {

$right_arrow = $contents[0]['text'];

}

$right_corner = tep_image(DIR_WS_IMAGES .

'infobox/corner_right.gif');

$info_box_contents = array();

$info_box_contents[] = array('params' => 'width="100%"

class="SideinfoBoxHeading"',

'text' => $right_arrow);

$this->tableBox($info_box_contents, true);

}

}

 

class SideinfoBox extends tableBox {

function SideinfoBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this-

>SideinfoBoxContents($contents));

$this->table_cellpadding = '0';

$this->table_parameters = 'class="SideinfoBox"';

$this->tableBox($info_box_contents, true);

}

function SideinfoBoxContents($contents) {

$this->table_cellpadding = '0';

$this->table_parameters = 'class="SideinfoBoxContents"';

$info_box_contents = array();

$info_box_contents[] = array(array('text' =>

tep_draw_separator('pixel_trans.gif', '100%', '1')));

for ($i=0, $n=sizeof($contents); $i<$n; $i++) {

$info_box_contents[] = array(array('align' =>

(isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),

'form' => (isset($contents[$i]['form']) ?

$contents[$i]['form'] : ''),

'params' => 'class="boxText"',

'text' => (isset($contents[$i]['text']) ?

$contents[$i]['text'] : '')));

}

$info_box_contents[] = array(array('text' =>

tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

?>

Link to comment
Share on other sites

Not sure which line 207 is...

:huh:

 

My guess is to change this code:

 

$info_box_contents[] = array('text' => $this-
>SideinfoBoxContents($contents));

To this:

 

$info_box_contents[] = array('text' => $this->SideinfoBoxContents($contents));

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 >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...