• Resolved kallym

    (@kallym)


    I am getting this PHP error:
    Warning: array_merge(): Argument #1 is not an array in …/wp-content/plugins/edd-hide-download/edd-hide-download.php on line 306

    Do you know what might be causing this or what I might check? I think I was only using “hide from event listings” on one event. I changed it to see if it helps with the errors.

    It seems to be occurring once a day, not always at the same time, but some are close in time, so was wondering if it had to do with a cron job.
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @kallym

    Sorry for delay response.

    It looks like there is one little issue in plugin.

    Please update the below line in plugin file /wp-content/plugins/edd-hide-download/edd-hide-download.php Line no 304

    Old Code : $excluded_ids = isset( $query->query_vars[ 'post__not_in' ] ) ? $query->query_vars[ 'post__not_in' ] : array();

    New Code : $excluded_ids = isset( $query->query_vars[ 'post__not_in' ] ) ? (array)$query->query_vars[ 'post__not_in' ] : array();

    Lets see with the new code. It will work or not?

    Because there have not been any recent updates to this topic we’ll be changing the status to resolved. If you have any further questions you can start a new thread, or head over to our support page to submit your request if it is related to one of our available add-ons.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: array_merge(): Argument #1 is not an array’ is closed to new replies.