Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSC Affiliate Redeclare orderIf you look here, wh


fut

Recommended Posts

If you look here, where you click on any of the links i get this error:

 

Fatal error: Cannot redeclare preorder() (previously declared in /home/crazyj61/public_html/includes/boxes/categories.php:17) in /home/crazyj61/public_html/includes/boxes/categories.php on line 17

 

 

This is the code of for line 17 and the ones around

// Preorder tree traversal
function preorder($cid, $level, $foo, $cpath)
{
  global $categories_string, $HTTP_GET_VARS;

 

Anyone know what the problem might be and how to fix it?

 

Thank you.

Link to comment
Share on other sites

If you look here, where you click on any of the links i get this error:

 

Fatal error: Cannot redeclare preorder() (previously declared in /home/crazyj61/public_html/includes/boxes/categories.php:17) in /home/crazyj61/public_html/includes/boxes/categories.php on line 17

This is the code of for line 17 and the ones around

// Preorder tree traversal
function preorder($cid, $level, $foo, $cpath)
{
  global $categories_string, $HTTP_GET_VARS;

 

Anyone know what the problem might be and how to fix it?

 

Thank you.

 

Somewhere you will be using include('categories.php') or require('categories.php') twice.

 

If you try to include the same file twice you get errors such as this, it's not that predorder() is declared twice in categories.php but the fact you are trying to include it twice.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...