Support » Plugin: Email Before Download » Email before download error php

  • Hi,

    I’m having isuess with email before download error it say “[Warning: count(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/email-before-download/includes/class-email-before-download-db.php on line 56]” see screenshot

    How do I fix this issues?

Viewing 5 replies - 1 through 5 (of 5 total)
  • cfoubert


    I have the same problem.



    @cfoubert, plugin author is not fix the problem, I already email them but not heard anything yet. Still frustrating.



    Yes, it’s frustrating. I tryed to comment the lines 56 and 70. It’s work without the warning message, but the rapport is empty even if there are some downloads… I don’t know if it is a consequence.

    In the file “class-email-before-download-db.php”
    Line 56, change
    if (count($query) > 0) {
    if ($query->num_rows > 0) {



    Erem change didnt fix it for me.

    This did. Replace line 56 with

    if (is_array($query) && count($query) > 0) {

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.