Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error on Catagories


Guest

Recommended Posts

Posted

I am trying to change the title for catagories to an image. I followed the quick change listted in the directions and it worked for search and the cart, but not for categories. I them proceeded to follow the more difficult long instructions listed on page 38. Everything seemed to go okay, but I am now receiving and error refering me to catalog/includes/classes/boxes.php on line 142. Prior to making these changes I had already installed the Basic Design Pak 2.5. Can someone please help me, I am not sure where to start with this error. I followed the directions to the letter, but something isn't matching up. Thanks.

Posted

Post the entire contents of the file /catalog/includes/classes/boxes.php, and maybe the entire error message you are receiving.

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

In this code:

 

class infoBoxHeadingCategories extends tableBox { function
infoBoxHeadingCategories($contents, $left_corner = true, $right_corner = true,
$right_arrow = false) { $this->table_cellpadding = '0'; if ($left_corner == false) {
$left_corner = tep_image(DIR_WS_IMAGES . ''); } else { $left_corner =
tep_draw_separator(''); } $info_box_contents = array(); $info_box_contents[] =
array(array('params' => 'height="64" class="infoBoxHeadingCategories"', 'text' =>
$left_corner), array('params' => 'width="100%" height="64"
class="infoBoxHeadingCategories"', 'text' => $contents[0]['text']), array('params' =>
'height="64" class="infoBoxHeadingCategories" nowrap', 'text' => $right_corner)); $this-
>tableBox($info_box_contents, true, false); } }

Change this part:

 

'height="64" class="infoBoxHeadingCategories" nowrap', 'text' => $right_corner)); $this-
>tableBox($info_box_contents, true, false); } }

To:

 

'height="64" class="infoBoxHeadingCategories" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true, false);
} }

This probably happened because you have "Wordwrap" ON in whatever text editor you used to alter the file.

 

To avoid this in the future turn "Wordwrap" OFF in your editor.

;)

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
In this code:

 

class infoBoxHeadingCategories extends tableBox { function
infoBoxHeadingCategories($contents, $left_corner = true, $right_corner = true,
$right_arrow = false) { $this->table_cellpadding = '0'; if ($left_corner == false) {
$left_corner = tep_image(DIR_WS_IMAGES . ''); } else { $left_corner =
tep_draw_separator(''); } $info_box_contents = array(); $info_box_contents[] =
array(array('params' => 'height="64" class="infoBoxHeadingCategories"', 'text' =>
$left_corner), array('params' => 'width="100%" height="64"
class="infoBoxHeadingCategories"', 'text' => $contents[0]['text']), array('params' =>
'height="64" class="infoBoxHeadingCategories" nowrap', 'text' => $right_corner)); $this-
>tableBox($info_box_contents, true, false); } }

Change this part:

 

'height="64" class="infoBoxHeadingCategories" nowrap', 'text' => $right_corner)); $this-
>tableBox($info_box_contents, true, false); } }

To:

 

'height="64" class="infoBoxHeadingCategories" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true, false);
} }

This probably happened because you have "Wordwrap" ON in whatever text editor you used to alter the file.

 

To avoid this in the future turn "Wordwrap" OFF in your editor.

;)

 

Thank You So Much! Site is showing again!

Posted

Thanks for the help, but a new problem with this code has emerged. I don't have an error code, but the image I am trying to set is not showing up. I have double checked the location and spelling and cannot seem to find the problem. The following code is what I have in my stylesheet.css:

 

TD.infoBoxHeadingCategories {

background: #ffffff;

background-image: url('images/category.gif');

background-repeat: no-repeat }}

 

Thanks in advance for the help.

Posted

Well, Tiff, the last line there has a problem:

 

background-repeat: no-repeat }}

It probably should be:

 

background-repeat: no-repeat;}

If that doesn't fix it, if you PM me (or post) your site URL I'm fairly certain I can find out what the "major malfunction" is.

;)

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...