Zen Cart Logo
Forums / General Questions / Class 'breadcrumb' not found in...

Class 'breadcrumb' not found in...

Locked

Views: 2,284

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
6 Jun 2007, 1:54 PM
#1
capslock118 avatar

capslock118

New Zenner

Join Date:
Jun 2007
Posts:
17
Plugin Contributions:
0

Class 'breadcrumb' not found in...

This is in my error.log

PHP Fatal error: Class 'breadcrumb' not found in .../includes/autoload_func.php on line 80 
PHP Fatal error: Class 'breadcrumb' not found in .../includes/autoload_func.php on line 80 
PHP Fatal error: Class 'breadcrumb' not found in .../includes/autoload_func.php on line 80 
PHP Fatal error: Class 'breadcrumb' not found in .../includes/autoload_func.php on line 80

could anyone enlighten me as to what this means? the line of code it is reffering to is this

$$objectName = new $className();

and that is taken from the larger bit of code in the file

      case 'classInstantiate':
      $objectName = $entry['objectName'];
      $className = $entry['className'];
      if (isset($entry['classSession']) && $entry['classSession'] === true) {
        if (isset($entry['checkInstantiated']) && $entry['checkInstantiated'] === true) {
          if (!isset($_SESSION[$objectName])) {
            $_SESSION[$objectName] = new $className();
            $debugOutput .= 'if (!$_SESSION[' . $objectName . ']) { ';
            $debugOutput .= '$_SESSION[' . $objectName . '] = new ' . $className . '();';
            $debugOutput .= ' }<br />';
          }
        } else {
          $_SESSION[$objectName] = new $className();
          $debugOutput .= '  $_SESSION[' . $objectName . '] = new ' . $className . '();<br />';
        }
      } else {
                ***********THIS NEXT LINE OF CODE IS THE PROBLEM***********
        $$objectName = new $className();
        $debugOutput .= '$' . $objectName . ' = new ' . $className . '();<br />';
      }
      break;

This is for a client of mine,
Thanks for any help

6 Jun 2007, 6:15 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Class 'breadcrumb' not found in...

That would happen if the breadcrumb.php class file didn't get loaded. Check to be sure the file is present and complete. Perhaps it failed to upload properly?

/includes/classes/breadcrumb.php

7 Jun 2007, 12:56 PM
#3
capslock118 avatar

capslock118

New Zenner

Join Date:
Jun 2007
Posts:
17
Plugin Contributions:
0

Re: Class 'breadcrumb' not found in...

Dr. Byte,
Thank you for that information. It turns out that I was missing my breadcrumbs.php...odd, so I put a fresh one in from the zipped download from the zen cart source forge site. The site is version 1.3..6 so that is the version i used to replace the missing breadcrumb.php

As it turned out I ended up having a few missing files...weird but I wouldnt know why since I was not the one handling this project when everything went hay wire.

Anyways, Thank you for your help and I will reply to this thread again if i have any issues