• Resolved sirschuyler

    (@sirschuyler)


    Getting PHP notices for what looks to be new reports feature on admin dashboard and admin Give > Reports which may be due to no/zero donations? …or leftover data from removing donations?

    Admin Dashboard PHP Notices:
    Notice: Undefined offset: 0 in …/wp-content/plugins/give/src/Views/Admin/DashboardWidgets/Reports.php on line 98

    Notice: Trying to get property of non-object in …/wp-content/plugins/give/src/Views/Admin/DashboardWidgets/Reports.php on line 98

    Admin Give > Reports PHP Notices:
    Notice: Undefined offset: 0 in …/wp-content/plugins/give/src/Views/Admin/Pages/Reports.php on line 117

    Notice: Trying to get property of non-object in …/wp-content/plugins/give/src/Views/Admin/Pages/Reports.php on line 117

    Or is something else causing this? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rick Alday

    (@mrdaro)

    Hi @sirschuyler

    Happy to help here. I can replicate this only on a clean install that has no donations yet. Is this your case?
    I’ve looped in our development team on this issue as well.

    Thread Starter sirschuyler

    (@sirschuyler)

    Hey @mrdaro

    In my case, it’s not a fresh install. I had deleted test donors and donations via Give > Tools > Data > “Delete Test Donors and Donations.”

    In any case, it should probably handle any scenario where no donations are present.

    Also, be aware that the new reports timeframe “All Time” filter also falters if no donations present — appears to set start date to that of first donation.

    Thanks for the prompt reply and looking into it further.

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Thanks for this report. We created an issue here if you’d like to follow along.

    https://wordpress.org/support/topic/new-reports-php-notice-when-no-donations/

    I’m going to close this ticket, but it will be actually closed when we release version 2.6.1. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘New Reports – PHP Notice when no donations’ is closed to new replies.