Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Warning array errors upon login to eMember

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › Warning array errors upon login to eMember

Tagged: cannot modify header inforamtion, eMember, login, warning array

  • This topic has 11 replies, 4 voices, and was last updated 14 years, 1 month ago by bastywebb.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • February 1, 2011 at 11:27 pm #2620
    hoffybalboa
    Member

    Hi,

    I have successfully integrated eMember, and the WP-Affiliate platform using eMember to create the membership, affiliate, and wordpress user upon successful registration.

    When someone registers, all 3 accounts are created. However the member is supposed to be automatically signed into wordpress upon login so they can comment on posts. This is not working. The wordpress account is created but the user is not logged in.

    In addition, when the user logs in, I get the following errors:

    Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/jwepper/public_html/apartments/dallas/wp-content/plugins/wp-eMember/wp_eMember1.php on line 76

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/jwepper/public_html/apartments/dallas/wp-content/plugins/wp-eMember/wp_eMember1.php on line 77

    Warning: Cannot modify header information – headers already sent by (output started at /home/jwepper/public_html/apartments/dallas/wp-content/plugins/wp-eMember/wp_eMember1.php:76) in /home/jwepper/public_html/apartments/dallas/wp-includes/pluggable.php on line 690

    Warning: Cannot modify header information – headers already sent by (output started at /home/jwepper/public_html/apartments/dallas/wp-content/plugins/wp-eMember/wp_eMember1.php:76) in /home/jwepper/public_html/apartments/dallas/wp-includes/pluggable.php on line 691

    Warning: Cannot modify header information – headers already sent by (output started at /home/jwepper/public_html/apartments/dallas/wp-content/plugins/wp-eMember/wp_eMember1.php:76) in /home/jwepper/public_html/apartments/dallas/wp-includes/pluggable.php on line 692

    Warning: Cannot modify header information – headers already sent by (output started at /home/jwepper/public_html/apartments/dallas/wp-content/plugins/wp-eMember/wp_eMember1.php:76) in /home/jwepper/public_html/apartments/dallas/wp-content/plugins/wp-eMember/wp_eMember1.php on line 92

    Any help would be appreciated. Thank you

    February 2, 2011 at 4:50 am #28612
    amin007
    Participant

    Can you please very that you have the “Automatically log into WordPress” option checked in your eMember settings?

    Also, can you try the login after you use a recent build of eMember from here:

    https://support.tipsandtricks-hq.com/update-request

    February 2, 2011 at 1:52 pm #28613
    hoffybalboa
    Member

    Did not help. I downloaded the latest plugin build. Uploaded. Deactivated and Reactivated the plugin. Same exact errors.

    I know you are swamped with other requests. I have a couple outstanding issues that i would be happy to pay for support to get completed.

    All the best,

    Bryan

    February 3, 2011 at 3:44 am #28614
    amin007
    Participant

    I will send you an email to get site access so I can look at this.

    February 3, 2011 at 7:06 pm #28615
    hoffybalboa
    Member

    Thanks Ivy. You solved my problem. Here is what happened for everyone else. They sent me the latest build of the plugin. I installed it. Deactivated and Reactivated the plugin. Cleared cache and the problem went away.

    Thanks everyone

    February 4, 2011 at 12:37 am #28616
    Ivy
    Member

    Hi, I am glad everything is working fine now. =)

    April 13, 2011 at 9:42 am #28617
    bastywebb
    Spectator

    I’ve been having trouble with this error too: Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/themeove/public_html/wp-content/plugins/wp-eMember/wp_eMember1.php on line 76

    I am using eMember, Affiliate Platform and the eStore plugin. I have checked the option for creating wp users when someone registers via eMember. If I clear my browser cache the problem doesn’t occur on the first login, but if I logout and then log back in the problem comes back.

    I did some testing and I think I have discovered the trigger but I’m not sure how best to solve the problem or interpret my findings – they seem contrary to my understanding of PHP variables. Here goes:

    On wp_eMember1.php, I added echo $user_id; above $_SESSION = $_POST; around line 60 so it was now this:

    echo $user_id;

    $_SESSION = $_POST;

    The echo statement returned the user ID value from the wp_users table as expected, which in this case was 4. I then moved the echo statement after the $_SESSION statement so it was this:

    $_SESSION = $_POST;

    echo $user_id;

    Now, the echo statement returned member1, the value of $_SESSION. This is what made me question my understanding of php – I didn’t know that could happen. Regardless, because the value for $user_id changes to member1 instead of the wp_users table ID, the get_userdata($user_id); query doesn’t return anything. This causes the Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/themeove/public_html/wp-content/plugins/wp-eMember/wp_eMember1.php on line 76 (which in turn causes the cannot modify header info errors)

    So my question (finally) is how do I make sure that $user_id doesn’t get reset somehow by the $_SESSION = $_POST;

    Many Thanks

    April 13, 2011 at 12:06 pm #28618
    amin007
    Participant

    Please load a fresh build of WP eMember on your site from here:

    https://support.tipsandtricks-hq.com/update-request

    Please Post a link to your registration page after the update so I can signup a test member and log in to check it out.

    April 13, 2011 at 3:33 pm #28619
    bastywebb
    Spectator

    Sure, the link to the registration page: http://themeover.com/register/

    I have activated the latest build now (6.2.9) from fresh. I also cleared my cache. As before, it works fine on first login after clearing the cache, but fails when logging out and then logging in a second time.

    April 13, 2011 at 11:05 pm #28620
    amin007
    Participant

    Something is not right… I will need to get site access so I can troubleshoot this. I will send you an email.

    April 15, 2011 at 4:18 am #28621
    amin007
    Participant

    We added an additional condition in the eMember plugin to handle this issue. This should be fixed now.

    April 19, 2011 at 11:34 am #28622
    bastywebb
    Spectator

    [ignore this post – I didn’t see your response on the next page]

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ