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.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Reports section


Reply

7 Posts   2926 Views

Avatar
dio5

1 June 2008 at 10:35pm Community Member, 501 Posts

Before adding this to the tickets on open.silverstripe.com I was wondering what the reports section in the cms (stable 2.2.2) is supposed to do and if I am the only one where it doesn't work and gives me a fatal error

"Fatal error: Class 'Report_StatsReport' not found in blablabla\cms\code\ReportAdmin.php on line 70"

Avatar
Fuzz10

10 June 2008 at 10:44pm Community Member, 787 Posts

broken for me as well....

Avatar
mbellino

14 June 2008 at 2:21am (Last edited: 14 June 2008 2:26am), Community Member, 32 Posts

same here..

the class "Report_StatsReport" is commented out in the file
../ecommerce/code/reports/Report.php

remove the comment and it works

cheerio

mario

Avatar
Sean

15 July 2008 at 6:25pm (Last edited: 21 July 2008 8:31pm), Forum Moderator, 921 Posts

This was caused by ManifestBuilder trying to get classes, even if they're commented out. It was fixed in a later version of sapphire:

http://open.silverstripe.com/changeset/52327

It's also been removed in ecommerce trunk, so it shouldnt be a problem for future releases!

Cheers,
Sean

Avatar
inlive

21 October 2008 at 5:26am Community Member, 5 Posts

Hello,

I cnt find the way to fix it.

cms/code/ReportAdmin.php on line 70
at what line can i change and in what file?
----------------------------
- Line 70 Reportadmin -       

if($report != 'Report') $processedReports[] = new $report();?
----------------------------

- Line 70 Report.php -

   $sort = array("Order.ID"=>"DESC"),

-----------------------------

who can help?

see original files attached.

Thanx!

Avatar
inlive

22 October 2008 at 7:48pm Community Member, 5 Posts

HELP WANTED!!

I STILL GET AN ERROR!

Avatar
runnerman

7 November 2008 at 5:04am (Last edited: 7 November 2008 5:12am), Community Member, 24 Posts

Are you using the stable version (0.5.2) or a trunk version of the module?

The reports section of the trunk version doesn't work, I read it's being redesigned for the next stable release (0.6). I believe the fix mentioned above is only for the stable version, which is why the line numbers mentioned in the fix don't match with what you're looking at.