Jump to:

2088 Posts in 1008 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Fatal error: Class 'Report_StatsReport' not found

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

Page: 1
Go to End
Author Topic: 1087 Views
  • Corrie Sloot
    Community Member
    2 Posts

    Fatal error: Class 'Report_StatsReport' not found Link to this post

    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 here and here, 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;

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.