Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(donation-history): fix PHP notices accessing donation history via email in PHP version 7.2 #3565

raftaar1191 opened this issue Aug 3, 2018 · 0 comments


None yet
2 participants
Copy link

commented Aug 3, 2018

User Story

As a Donor I do not want to see any PHP notices when accessing the donation history via email in PHP version 7.2

Current Behavior

I currently getting PHP notices

Expected Behavior

I expect no PHP noitces

Steps to Reproduce

Check the Video


Video Link:


Debug Log

[03-Aug-2018 06:10:37 UTC] PHP Warning:  An unexpected error occurred. Something may be wrong with or this server&#8217;s configuration. If you continue to have problems, please try the <a href="">support forums</a>. (WordPress could not establish a secure connection to Please contact your server administrator.) in /app/public/wp-includes/update.php on line 156
[03-Aug-2018 06:14:15 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /app/public/wp-content/plugins/Give/includes/class-give-email-access.php on line 165
[03-Aug-2018 06:14:15 UTC] PHP Stack trace:
[03-Aug-2018 06:14:15 UTC] PHP   1. {main}() /app/public/index.php:0
[03-Aug-2018 06:14:15 UTC] PHP   2. require() /app/public/index.php:17
[03-Aug-2018 06:14:15 UTC] PHP   3. require_once() /app/public/wp-blog-header.php:13
[03-Aug-2018 06:14:15 UTC] PHP   4. require_once() /app/public/wp-load.php:37
[03-Aug-2018 06:14:15 UTC] PHP   5. require_once() /app/public/wp-config.php:92
[03-Aug-2018 06:14:15 UTC] PHP   6. do_action() /app/public/wp-settings.php:450
[03-Aug-2018 06:14:15 UTC] PHP   7. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
[03-Aug-2018 06:14:15 UTC] PHP   8. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:310
[03-Aug-2018 06:14:15 UTC] PHP   9. give_post_actions() /app/public/wp-includes/class-wp-hook.php:286
[03-Aug-2018 06:14:15 UTC] PHP  10. do_action() /app/public/wp-content/plugins/Give/includes/actions.php:80
[03-Aug-2018 06:14:15 UTC] PHP  11. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
[03-Aug-2018 06:14:15 UTC] PHP  12. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:310
[03-Aug-2018 06:14:15 UTC] PHP  13. give_email_access_login() /app/public/wp-includes/class-wp-hook.php:286
[03-Aug-2018 06:14:15 UTC] PHP  14. Give_Email_Access->can_send_email() /app/public/wp-content/plugins/Give/includes/login-register.php:377



WordPress System Info ### WordPress Environment ###

Home URL: http://givewp.local
Site URL: http://givewp.local
WP Version: 4.9.8
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: ✔
WP Cron: ✔
Language: en_US
Permalink Structure: /%year%/%monthnum%/%day%/%postname%/
Show on Front: posts
Table Prefix Length: wp_
Table Prefix Length: 3
Table Prefix Status: Acceptable
Admin AJAX: Accessible
Registered Post Statuses: publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, refunded, failed, revoked, cancelled, abandoned, processing, preapproval

Server Environment

Hosting Provider: DBH: localhost, SRV: givewp.local
TLS Connection: Connection uses TLS 1.2
TLS Connection: Probably Okay
Server Info: nginx/1.10.1
PHP Version: 7.2.0
PHP Post Max Size: 1,000 MB
PHP Time Limit: 900
PHP Max Input Vars: 3000
PHP Max Upload Size: 1,000 MB
cURL Version: 7.38.0, OpenSSL/1.0.1t - We recommend a minimum cURL version of 7.40.
SUHOSIN Installed: –
MySQL Version: 5.5.55 - We recommend a minimum MySQL version of 5.6. See: WordPress Requirements
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
gzip: ✔
GD Graphics Library: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

Give Configuration

Give Version: 2.2.1
Give Cache: Enabled
Database Updates: All DB Updates Completed.
Give Cache: Enabled
Give Cache: ✔New Donation✔Donation Receipt✔New Offline Donation✔Offline Donation Instructions✔New User Registration✔User Registration Information✔Email access
Upgraded From: 2.2.1
Test Mode: Enabled
Currency Code: USD
Currency Position: Before
Decimal Separator: .
Thousands Separator: ,
Success Page: http://givewp.local/donation-confirmation/
Failure Page: http://givewp.local/donation-failed/
Donation History Page: http://givewp.local/donation-history/
Give Forms Slug: /donations/
Enabled Payment Gateways: Test Donation, Offline Donation
Default Payment Gateway: Test Donation
PayPal IPN Verification: Enabled
PayPal IPN Notifications: N/A
Donor Email Access: Enabled

Active Give Add-ons

Other Active Plugins

Inactive Plugins

ARMember Lite: by Repute InfoSystems – 1.3
BuddyPress: by The BuddyPress Community – 3.0.0
Caldera Custom Fields: by Caldera Labs – 2.2.1
Caldera Forms: by Caldera Labs –
CCAvenue Payment Gateway for WooCommerce: by Nilesh Chourasia – 2.3
Charitable: by WP Charitable – 1.6.1
Debug Bar: by wordpressdotorg – 0.9
Debug Bar Console: by koopersmith – 0.3
Debug Bar Cron: by Zack Tollman, Helen Hou-Sandi – 0.1.2
Debug Bar Extender: by Thorsten Ott, Automattic – 0.5
Developer: by Automattic – 1.2.6
Duplicate Post: by Enrico Battocchi – 3.2.2
Email Cop: by Ashfame – 0.1.1
Give - 2Checkout Gateway: by WordImpress – 1.1.1
Give - Gateway: by WordImpress – 1.4.2
Give - AWeber: by WordImpress – 1.0.3
Give - Braintree Gateway: by WordImpress – 1.2.2
Give - CCAvenue Gateway: by WordImpress – 1.0.1
Give - ConvertKit: by WordImpress – 1.0.2
Give - Currency Switcher: by WordImpress – 1.2.2
Give - Donation Upsells for WooCommerce: by WordImpress – 1.0.2
Give - Dwolla Gateway: by WordImpress – 1.1.2
Give - Email Reports: by WordImpress – 1.1.2
Give - Fee Recovery: by WordImpress – 1.7.2
Give - Form Countdown: by WordImpress – 1.0.1
Give - Form Field Manager: by WordImpress – 1.3
Give - Gift Aid: by WordImpress – 1.1.6
Give - Google Analytics Donation Tracking: by WordImpress – 1.2.0
Give - MailChimp: by WordImpress – 1.4.1
Give - Manual Donations: by WordImpress – 1.4.1
Give - Mollie Gateway: by WordImpress – 1.1.2
Give - Paymill Gateway: by WordImpress – 1.1
Give - PayPal Pro Gateway: by WordImpress – 1.1.6
Give - PDF Receipts: by WordImpress – 2.3
Give - Razorpay: by WordImpress – 1.1.4
Give - Recurring Donations: by WordImpress – 1.7.2
Give - Stripe Gateway: by WordImpress – 2.0.10
Give - Tributes: by WordImpress – 1.5.0
Give - Zapier: by WordImpress – 1.2.1
Gravity Forms: by rocketgenius – 2.2.6
Gravity Forms Signature Add-On: by Rocketgenius – 3.4
Loco Translate: by Tim Whitlock – 2.1.4
Log Deprecated Notices: by Andrew Nacin – 0.4
Log Viewer: by Markus Fischbacher – 14.05.04
Monster Widget: by Automattic – 0.3
PHP Compatibility Checker: by WP Engine – 1.4.5
Polylang: by Frédéric Demarle – 2.3.6
qTranslate-X: by qTranslate Team –
Query Monitor: by John Blackbourn & contributors – 3.0.1
RegistrationMagic: by Registrationmagic –
Rewrite Rules Inspector: by Daniel Bachhuber, Automattic – 1.2.1
User Switching: by John Blackbourn & contributors – 1.3.1
WooCommerce: by Automattic – 3.4.4
WordPress Beta Tester: by Peter Westwood – 1.2.2
WP DSGVO Tools: by Shapepress eU – 1.5.6
WP Hide & Security Enhancer: by Nsp Code –
WPML Multilingual CMS: by OnTheGoSystems – 3.9.4
WPS Hide Login: by WPServeur, NicolasKulka, tabrisrp –

Active MU Plugins

Give - Development Plugin: by Raftaar1191 – 1.0.0
Local by Flywheel Relative URL (for Live Links): by Flywheel – 1.0


Name: Twenty Seventeen
Version: 1.6
Author URL:
Child Theme: No – If you're modifying Give on a parent theme you didn't build personally, then we recommend using a child theme. See: How to Create a Child Theme

ravinderk added a commit that referenced this issue Aug 3, 2018

@ravinderk ravinderk closed this Aug 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.