Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Fatal error: Class 'Report_StatsReport' not found


Reply

1096 Views

Avatar
Corrie Sloot

20 January 2009 at 4:47am Community Member, 2 Posts

I received the following error while trying to access Reports in Silverstripe 2.2.2:

Fatal error: Class 'Report_StatsReport' not found ...

This error is referenced [url=http://silverstripe.org/archive/show/118216?showPost=133216]here[/url] and [url=http://open.silverstripe.com/ticket/3242]here[/url], but the details were lacking.

To fix the problem remove the following comment from /ecommerce/code/reports/Report.php

/*class Report_StatsReport extends Report {

static $title = "Website statistics";
static $description = "View statistics of this website";

static $awstatsURL;
static function set_awstatsURL($pass) {
self::$awstatsURL = $pass;
}

function getReportField() {

$awstatsURL = self::$awstatsURL;

return new LiteralField( 'AWStats', "<iframe name=\"reportframe\" class=\"AWStatsReport\" src=\"$awstatsURL\"></iframe>" );
}

function getOwnerID() {
return $this->class;
}
}
*/