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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Fatal error: Class 'Report_StatsReport' not found


Go to End


1850 Views

Avatar
Corrie Sloot

Community Member, 2 Posts

20 January 2009 at 4:47am

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;
        }
}
*/