Wordpress - logging problems

Discussion in 'Integration' started by humantorpedo, Feb 20, 2008.

  1. humantorpedo

    humantorpedo New Member

    Joined:
    Jan 15, 2007
    Messages:
    23
    I got the wordpress plugin installed and user level works with payment, once I pay I become a member and am logged into wordpress. Works great.

    But the issue is when I try to logout from wordpress I get "Warning: Cannot modify header information - headers already sent by (output started at /home/templa6/public_html/wp-config.php:47) in /home/templa6/public_html/wp-login.php on line 12" and about 7 more lines of similar errors.

    I also tried using amember's logout.php in my amember folder, but that didn't log me out from wordpress, just amember.

    I'm sure I must be missing something, I know I am close. Any thoughts on what I am doing wrong or what I need to do?
  2. humantorpedo

    humantorpedo New Member

    Joined:
    Jan 15, 2007
    Messages:
    23
    update: I dis-enabled the wordpress plugin and I'm still getting errors for enabling other plugins. Not sure what the issue is. Any thoughts would be appreciated
  3. humantorpedo

    humantorpedo New Member

    Joined:
    Jan 15, 2007
    Messages:
    23
    The real problem

    I just noticed that when I don't have the wordpress plugin enabled the main Amember control panel page has "4.1.22-standard" in the MySQL box. But when I enable the wordpress plugin I get:

    Code:
    WARNING: mysql_query() [function.mysql-query]: Access denied for user 'templa6'@'localhost' (using password: NO) in line 54 of file SmartyNoWrite.class.php(216) : eval()'d code
    WARNING: mysql_query() [function.mysql-query]: A link to the server could not be established in line 54 of file SmartyNoWrite.class.php(216) : eval()'d code
    WARNING: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in line 54 of file SmartyNoWrite.class.php(216) : eval()'d code
    in the MySQL box. The wordpress plugin page has no errors on it, so I guess it's connecting ok to the database, but there are errors with logging on and off, and some other functions from inside the wordpress control area. I think if I can get the mySQL box cleaned up it will solve everything. But not sure why it's giving me that error.

    Sorry for the multiple responses to myself ... :)

    And I appreciate any help in clearing this up.
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Mysql problem: Did you give the amember user access to the mysql database?
    That may help.

    Make sure any php code you edited and uploaded doesn't have any extra lines at the top or bottom of the file, above the <? php or below the ?>

    David
  5. humantorpedo

    humantorpedo New Member

    Joined:
    Jan 15, 2007
    Messages:
    23
    Thanks, that seemed to work great! No more wierd errors when logging out.

    I still have the error in the control panel but since it's not affecting anything as far as I can tell I will disregard it for now.
  6. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    The control panel error sounds like you didn't set up the plugin properly - its not connecting to the database.
  7. humantorpedo

    humantorpedo New Member

    Joined:
    Jan 15, 2007
    Messages:
    23
    Must be something like that. I'm not getting errors anymore, but while the signup process works and it's creating a username and password and logging into Amember automatically, it's not logging into wordpress on signup. I have to login manually. At least the amember username and password work but it's not logging in.

    For the DB settings in the wordpress plugin I did what it said to do, for the MySQL error it's saying the user can't access the database but it's not using the password. Shouldn't it be using the password?

    Should I be using the same DB as Amember or creating a new one for wordpress? I have a different database, is that ok?
  8. humantorpedo

    humantorpedo New Member

    Joined:
    Jan 15, 2007
    Messages:
    23
    The product URL was empty and I filled it with the main site URL. Now it redirects to that as logged in. Very cool!

    Thanks for the help David, I never would have figured the spaces were the problem!

Share This Page