Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error - Call to undefined method breadcrumb


bksbeat

Recommended Posts

I just installed an add-on called Site Map MS2-2.2

It is a pretty simple install and i installed a Site Map box on my footer and then got this error when I tried to open the page I get this error:.

 

<b>Fatal error</b>: Call to undefined method breadcrumb::title() in <b>/home/content/f/l/y/flytyers/html/sitemap.php</b> on line <b>23</b><br />

 

 

The code appearing in sitemap.php as per the above is as follows:

 

[/size][/font][/color]
[color=#000000][font=monospace][size=1]!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title> <?php $title_bar = $breadcrumb->title(0);
if($title_bar != '') echo STORE_NAME . ' - ' . $title_bar;
 else
 echo TITLE;?>
</title>

 

I could not find a support forum for this contribution and doing a search on google it seems that quite a few other folks have got this exact same error but could find any solution.

 

Any ideas will be much appreciated,

Gary

Link to comment
Share on other sites

Hi Gary, so this looks like a 2.2 addon, and the most recent version of osc is 2.3.x.

 

From my experience with the error the call (Call to undefined method) referrs to a problem with php class definations.

 

Can you confirm what version of Osc you're running?

If you're running version 2.3.x you can see the version by going to admin->tools->version checker.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...