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?

    https://i.stack.imgur.com/g6Ohb.png

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

    (@cfoubert)

    I have the same problem.
    Claude

    bubble18

    (@bubble18)

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

    cfoubert

    (@cfoubert)

    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) {
    to
    if ($query->num_rows > 0) {

    andyux

    (@andyux)

    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.