Can't get to wordpress after migration - Redirects back to member.php

Discussion in 'Troubleshooting' started by buckyflowers, Jun 10, 2011.

  1. buckyflowers

    buckyflowers New Member

    Joined:
    May 12, 2007
    Messages:
    4
    We have been using amember with wordpress for the last year or so. We are migrating to a new server and ran into issues that we could not find answers to on the forum.

    We are using
    Amember 3.1.9
    Amemeber wordpress plugin 0.3
    PHP 5.3.6-6

    here are the php infos for each install:
    New Version
    https://docs.google.com/document/pub?id=1W_Vw4d95wQJU4ZcZJNCOI4vM3KSGVE5AUcJeb0_S03s

    Old Version
    https://docs.google.com/document/pub?id=12l91zViadU4wMwWhDWsSi7MUl6EDwNEtKFymuNqY3Zg


    No matter what we try we cannot access our wordpress site, we keep getting redirected to member.php after login and clicking on a product.

    The problem we are experiencing is this:
    1. Go to hs.candeotraining.com
    2. You will be redirected to Amember login
    3. Login
    4. Get redirected to member.php
    5. Click on a product
    6. You will be redirected to member.php again.

    It is working fine on our old server which is running PHP 5.2.4 - which is where the site is now because we rolled back tonight.
    To see what I am talking about you will need to edit your host file to include;

    216.121.103.244 hs.candeotraining.com
    216.121.103.244 sa.candeotraining.com
    216.121.103.244 candeotraining.com

    hs.candeotraining.com (PRODUCT 1 - WORDPRESS)
    sa.candeotraining.com (PRODUCT 2 -WORDPRESS)
    candeotraining.com (THIS IS WHERE AMEMBER IS)

    I've created an amember member account for you on our and new server (be sure to edit host file)
    username: cgi_student
    pass: cgi_student

    I added the following at the top of config.inc.php that i saw from a post in the forum. not sure if its causing any of this:

    ini_set("session.save_path", dirname(__FILE__)."/data");


    Thank you so much for looking at this! Let me know if you need anything else.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Yes the problem is in ini_set("session.save_path", dirname(__FILE__)."/data"); code you have on new domain.
    You should add the same line to wordpress config as well. Or remove it from amember config and make default php session.save_path working.
    I believe default session.save_path generated errors?

Share This Page