Skip to:
Content
Pages
Categories
Search
Top
Bottom

PHP Warning: array_merge()…bp-xprofile-signup.php on line 257


  • Joss Winn
    Participant

    @josswinn

    Hi, This has started showing up in my logs over the last few days.

    PHP Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /var/www/vhosts/blogs/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-signup.php on line 257

    That line is:

    $bp_blog_signup_meta = array_merge( $bp_meta, $blog_meta );

    I am using an LDAP plugin so there are no normal sign-ups on my install. I’ve been using LDAP for months, so I don’t think it’s causing the warning.

    Any ideas? Thanks.

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

  • Burt Adsit
    Participant

    @burtadsit

    No idea what the issue is yet but yes I’m getting that also. I just have a plain default install of bp and wpmu.

    Looks like $blog_meta is always going to be an array, even if it borks out and there is nothing useful within that array. So I am thinking the cookie ‘bp_xprofile_meta’ is not being set


    Jeff Sayre
    Participant

    @jeffsayre

    Well I just stuck this in to be absolutely sure:

    /* Array Test */
    echo is_array($bp_meta) ? 'Array' : 'not an Array';

    I placed this just after $bp_meta is set and the test does come back indicating it’s an array so that is all that really matters.

    I then placed this after the offending $bp_blog_signup_meta line:

    print_r($bp_blog_signup_meta);

    It looked fine. Data from both arrays were being properly merged.

    So, I don’t think from my cursory investigation that this is the PHP5 array_merge() issue.

    @Josswinn

    A few questions:

    1. Does this occur in all browsers or just some?
    2. Do you have cookies disabled?
    3. Which version of PHP are you running?
    4. Which version of Apache?
    5. Which version of WPMU?
    6. Which version of BP?
    7. Are there any other errors in your log files?


    Joss Winn
    Participant

    @josswinn

    I can’t tell you if it’s browser related. I’m using Chrome and I can’t trigger it but I’m seeing other IP addresses trigger it every few minutes. I could try switching log level to debug and see if that shows the browser identifier. If I get anything, I let you know.

    PHP 5.1.6 (cli) (built: Feb 26 2009 07:01:12)

    Copyright (c) 1997-2006 The PHP Group

    Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

    with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator

    Apache/2.2.3

    WPMU 2.7.1

    BuddyPress 1.0.1

    No other errors in my logs

    Thanks.


    Joss Winn
    Participant

    @josswinn

    I’ve tried to trigger it in safari, IE and Firefox but haven’t managed it. Still seeing the warnings though, but they’re not from me on the site.


    Burt Adsit
    Participant

    @burtadsit

    [Mon Jun 22 01:48:49 2009] [error] [client 69.242.205.122] PHP Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /var/www/vhosts/ourcommoninterest.org/httpdocs/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-signup.php on line 257

    I have registrations disabled. Bunches of warnings like that right after some cracking attempt to run a php file that doesn’t exist on my system. Not all of the warnings are attempts to run files such as ‘approved_checks.php’ though some are after msgs like this:

    Sat Jun 20 23:09:13 2009] [error] [client 66.249.71.195] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.

    It is always right after one or the other though.


    Tracedef
    Participant

    @tracedef

    Getting the same error on new signups.

    http://i8.photobucket.com/albums/a22/tracedef/257error.png

    WPMU 2.7.1

    BuddyPress 1.0.1

    LiteSpeed


    Tracedef
    Participant

    @tracedef

    Forgot to mention, error is occurring in header, not in logs as OP indicated….. in case you didn’t see screenshot above… :)

    Occurs in Safari and Firefox … tried disabling all plugins and mu-plugins to no avail. It’s a somewhat new error, so trying to think of what could have possibly changed in install as of late besides plugin updates….don’t think the issue occurred in 2.7. …. not sure where to go from here…..

    Any feedback or ideas appreciated, getting ready to launch and it’s kind of a bummer to have new users see this as they sign up. :)

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/tracedef/public_html/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-signup.php on line 257


    Joss Winn
    Participant

    @josswinn

    Still seeing the warnings in my logs following the 1.0.2 update:

    PHP Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /var/www/vhosts/blogs/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-signup.php on line 261

    The fix didn’t make it into 1.0.2, but is in the trunk:

    bp-xprofile-signup.php line 261 change:

    $bp_blog_signup_meta = array_merge( $bp_meta, $blog_meta );

    to

    $bp_blog_signup_meta = array_merge( (array)$bp_meta, (array)$blog_meta );


    Tracedef
    Participant

    @tracedef

    I’ve been checking this thread ten times a day and then Andy crushes it! Thanks!!!


    Joss Winn
    Participant

    @josswinn

    Yeah, thanks Andy :-)


    Joss Winn
    Participant

    @josswinn

    I’ve just upgraded to 1.0.3 and this message is back, despite Andy’s fix noted above.

    PHP Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /var/www/vhosts/blogs/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-signup.php on line 261

    Not critical, but annoying to see it so often in the logs :-)


    Tracedef
    Participant

    @tracedef

    Thanks for the update josswinn… was confused as to why it was back….


    creede
    Participant

    @creede

    WMPU 2.8.2 BP 1.03 getting the same error FWIW

    Reopening a month-old thread marked as “resolved” is not going to gather many new looks at the thread.

    Please make a new post and refer to this one.

Viewing 16 replies - 1 through 16 (of 16 total)
  • The topic ‘PHP Warning: array_merge()…bp-xprofile-signup.php on line 257’ is closed to new replies.
Skip to toolbar