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

Patch: Fixes 2 minor Reports errors

Go to End

3 Posts   5345 Views


Google Summer of Code Hacker, 222 Posts

17 May 2007 at 9:43am

When running the "Pages edited in the last 2 weeks" report, I get the following errors:

Notice: Trying to get property of non-object in /var/www/silverstripe/sapphire/core/model/SiteTree.php on line 189

Notice: Trying to get property of non-object in /var/www/silverstripe/sapphire/core/model/SiteTree.php on line 190

When running the "Empty pages" report (with no empty pages) I get the following error:

Notice: Undefined variable: result in /var/www/silverstripe/cms/code/SideReport.php on line 31

This patch fixes both of those errors:

Let me know if you'd prefer that I combine undefined variable patches and only submit 1 per day. I don't want to create a lot of extra work for you. ;)

- Elijah


Community Member, 201 Posts

17 May 2007 at 10:04am

Keep the patches rolling! Great work :-)


Administrator, 690 Posts

17 May 2007 at 10:24am

Combined patches would be good - particularly if you're solving a lot of instances of the same kind of problem.