Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Getting Fatal Error need help..cant create accounts


Guest

Recommended Posts

Posted

"Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/content/t/i/n/tinygiants/html/includes/header.php:136) in /home/content/t/i/n/tinygiants/html/includes/boxes/categories.php on line 59"

 

This is line 50-70.. text in red is the line mentioned

$categories_string .= ' (' . $products_in_category . ')';

}

}

 

$categories_string .= '<br>';

 

if ($tree[$counter]['next_id'] != false) {

tep_show_category($tree[$counter]['next_id']);

}

}

?>

<!-- categories //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);

 

new infoBoxHeading($info_box_contents, true, false);

 

$categories_string = '';

 

 

here is the line from the header lines 120-145 line mentioned in error in red

<td width=444><a href=<?=tep_href_link('products_new.php')?>><img src=images/m10.jpg width=203 height=147 border=0><img src=images/m09.jpg width=241 height=147 border=0></a></td></tr>

<tr><td colspan=3 height=1></td></tr>

<tr><td colspan=3 height=4 bgcolor=#E6E6E6 width=674></td></tr>

<tr><td colspan=3 height=6></td></tr>

</table>

<table cellspacing=0 cellpadding=0>

<tr><td width=229 valign=top>

<table cellspacing=0 cellpadding=0>

<tr><td background=images/m19.gif width=229 height=36 class=bc>         <b>Browse by Categories:</b></td></tr>

<tr><td class=bg>

<table cellspacing=0 cellpadding=0 width=195 align=center>

<tr><td height=17></td></tr>

 

<? // ---- CATEGORIES

function tep_show_category($counter) {

global $tree, $categories_string, $cPath_array;

 

if(!$tree[$counter]['level']){

$categories_string .= $categories_string ? '<tr><td colspan=2><img src=images/m21.gif width=195 height=1><br><br class=px3></td></tr>' : '';

 

$categories_string .= '<tr><td width=39 align=center><img src=images/m06.gif width=10 height=10></td><td width=156><a class=ml href=';

 

if ($tree[$counter]['parent'] == 0) {

$cPath_new = 'cPath=' . $counter;

 

 

This error happens on http://www.tinygiantclothing.com/create_account.php

 

thanks for any help.. right now no one can create an account and order anything because of this error

Posted

i just saved my current create_account.php and uploaded the original one that came with my template.. works fine now .. have no idea why it didnt work .. i dont think i changed it all all..

Archived

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

×
×
  • Create New...