Title: Bug report (minor): PHP 7.2 error warning
Last modified: May 7, 2018

---

# Bug report (minor): PHP 7.2 error warning

 *  Resolved [Abigailm](https://wordpress.org/support/users/abigailm/)
 * (@abigailm)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/bug-report-minor-php-7-2-error-warning/)
 * I tried upgrading to PHP 7.2 and am seeing this in my error logs:
 * `PHP Warning: count(): Parameter must be an array or an object that implements
   Countable in /.../wp/wp-content/plugins/quick-paypal-payments/quick-paypal-payments.
   php on line 721`
 * This is a warning only – does not seem to impact function – but something that
   should be addressed in the code.

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

 *  [Graham](https://wordpress.org/support/users/aerin/)
 * (@aerin)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/bug-report-minor-php-7-2-error-warning/#post-10281706)
 * Thanks for reporting this. I’ll see if I can fix this for the next update.
 * But can you install this version and see if you get the same message: [https://quick-plugins.com/quick-paypal-payments/qpp-update/](https://quick-plugins.com/quick-paypal-payments/qpp-update/)
 *  Thread Starter [Abigailm](https://wordpress.org/support/users/abigailm/)
 * (@abigailm)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/bug-report-minor-php-7-2-error-warning/#post-10284386)
 * Aerin– I trid installing that update but didn’t even get as far as testing with
   PHP 7.2, because after installation the “Make Payment” button was disabled — 
   so I’ve reverted back to version 5.5.3. By “disabled” I mean that I got no response
   to a cursor or touch click of the button in Chrome.
 * As this is a production site I can do testing, but only for very short time periods.
   So I’m not sure if this was an issue with the plugin or a browser problem — just
   that things were restored to full function once I reverted back.
 * My system is running PHP 7.1 for now. Although I tested with PHP 7.2 I did not
   want error logs being filled up so after I saw the entries noted above, I did
   revert back to 7.1. I’m on a CPanel system with multi-PHP options so very easy
   for me to switch back and forth between PHP release versions.
 *  [Graham](https://wordpress.org/support/users/aerin/)
 * (@aerin)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/bug-report-minor-php-7-2-error-warning/#post-10284964)
 * The problem is PHP7. It reports everything even when the issues don’t affect 
   functionality.
 * This particular warning shouldn’t happen. The plugin counts the number of errors
   in the form and if greater than zero displays the error message. The array is
   declared and will be empty if there are no errors. So I’m not sure how to fix
   this. It only applies to PHP 7.2
 *  [Graham](https://wordpress.org/support/users/aerin/)
 * (@aerin)
 * [8 years ago](https://wordpress.org/support/topic/bug-report-minor-php-7-2-error-warning/#post-10384935)
 * All now fixed. The update is here: [http://quick-plugins.com/quick-event-manager/qem-update/](http://quick-plugins.com/quick-event-manager/qem-update/)
 * Once testing is complete it will be upload to the repository.

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

The topic ‘Bug report (minor): PHP 7.2 error warning’ is closed to new replies.

 * ![](https://ps.w.org/quick-paypal-payments/assets/icon-128x128.png?rev=3412386)
 * [Quick Paypal Payments](https://wordpress.org/plugins/quick-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-paypal-payments/reviews/)

## Tags

 * [PHP 7.2](https://wordpress.org/support/topic-tag/php-7-2/)
 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 4 replies
 * 2 participants
 * Last reply from: [Graham](https://wordpress.org/support/users/aerin/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/bug-report-minor-php-7-2-error-warning/#post-10384935)
 * Status: resolved