Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Cannot redeclare preorder()


SpaParts

Recommended Posts

Posted

My site is producing the following error: :'(

 

Fatal error: Cannot redeclare preorder() (previously declared in /var/www/vhosts/mydomain.com/httpdocs/shop/templates/SPAPARTS-3/mainpage_modules/main_categories.php:55) in /var/www/vhosts/mydomain.com/httpdocs/shop/templates/SPAPARTS-3/mainpage_modules/main_categories.php on line 92

 

 

Line 54-57 within main_categories.ph

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

 

 

Line 84-92 within main_categories.php

// Traverse category tree
   if (is_array($foo)) {
     foreach ($foo as $key => $value) {
       if ($foo[$key]['parent'] == $cid) {
         preorder($key, $level+1, $foo, ($level != 0 ? $cpath . $cid . '_' : ''));
       }
     }
   }
 }

Posted

$40 Bucks for a solution!

 

(We're pressed for time on this issue)

 

If anybody can help me troubleshoot and fix this, I will pay for it. The only condition is that it needs to be done via one of the following methods: 1.) The forum 2.) Webinar 3.)Remote PC. 4.) the phone - Or any combination. The idea is that I want to learn both how to troubleshoot and what happened. I could be an an easy fix.

 

Please PM me.

Thanks,

C.

Archived

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

×
×
  • Create New...