The first argument should be an array in line 208 of file check.inc.php

Discussion in 'Troubleshooting' started by bjk68, Feb 22, 2009.

  1. bjk68

    bjk68 New Member

    Joined:
    Nov 15, 2008
    Messages:
    24
    Since the upgrade to 3.1.6 the following error is shown on the top of the page, when a customer goes to a page, he has not yet paid for:

    WARNING: array_filter() [function.array-filter]: The first argument should be an array in line 208 of file check.inc.php :eek:

    To solve this problem you should make a small change to the file /plugins/protect/php_include/check.inc.php:

    Find the following line (208):
    if (!array_filter($link_ids)) return false;

    Above this line add the following line:
    if (!$link_ids) return false;

    I entered a support ticket with the same information, so I expect this will be solved in a future upgrade.
  2. robvandam

    robvandam New Member

    Joined:
    Aug 15, 2007
    Messages:
    2
    was this issue fixed from amember? I just installed the update as well and hope I can fix it. Should I just copy what you did? I'm new to this..

    Thanks..
  3. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    Hi Rob,

    It's likely that aMember has fixed it already.

    If you ran into the same issue, do contact helpdesk immediately.

    Lee
  4. akuma13

    akuma13 New Member

    Joined:
    Apr 3, 2008
    Messages:
    28
    hmmmmm

    I'm having this problem as well... have the latest updates.

    BTW - the search function on this board is pretty bad I have to go out to google to come back in to find results... they are weak at best


    "The first argument should be an array in line 208 of file check.inc.php"

    this search string in search gave me nothing relevant here - random posts - but google lead me back to this post...

    i'm sure a vbulletiin issue not alex's fault but worth considering as it greatly compromises support.
  5. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    Hi akuma,

    If you need help with that, please email codeispoetry [at] amemberincremental.com

    Lee
  6. akuma13

    akuma13 New Member

    Joined:
    Apr 3, 2008
    Messages:
    28
    thank you - I think it had to do with how I had things setup at first it seems to have resolved itself once I built everything out...

  7. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    Yes it does! ;)

    Lee

Share This Page