Product ID help

Discussion in 'Troubleshooting' started by Kelli, Feb 6, 2004.

  1. Kelli

    Kelli Guest

    I am updating the amember protection update and I am having problems logging in. I tried doing the .htaccess and also tried the product.inc.php .. but I don't know the product id's.

    I went into admin and went to Edit Products, there are id's there that I used while making the .protect.inc.php file, but it's still not working.

    Any thoughts on what I am suppose to be doing?
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    What exactly doesn't work? Which exactly error message do you get?
    Please paste your .htaccess and protect.inc.php files here.
  3. Unregistered

    Unregistered Guest

    i log into the member.php page all is good... i click on the subscription link to take me to the member area and another pop up comes which wants me to re-enter the user name and password again. I do that and it doesn't redconize my info, it won't let me in.

    for .htaccess i put

    AddType application/x-httpd-php .html
    AddType application/x-httpd-php .htm
    php_value auto_prepend_file protect.inc.php

    for the protect.inc.php i put

    <?
    $_product_id = array(20,32,22,21);
    require_once '/amember/plugins/protect/php_include/check.inc.php';
    ?>

    the numbers i put there i found on the product page ... it listed those numbers as id ... but i don't know if that is correct.

    I did not setup the products, I am just updating the security again.
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    1. you should remove all existing lines from .htaccess file before adding these 3 lines! with this method of protection you never see popup login box - if you see it, something is set wrong.

    2. there is a little mistake in the manual. it should look like
    <?
    $_product_id = array(20,32,22,21);
    require_once '/home/user/public_html/amember/plugins/protect/php_include/check.inc.php';
    ?>

    /home/user/public_html/amember
    - it is Unix file path to aMember folder. You can find it by opening aMember Cp -> Info and Some URLs : Root dir
  5. Unregistered

    Unregistered Guest

    I have overwritten my old htaccess file, and now I need to make another one. But I need the product ID's which I asked how to obtain eariler.

    I am pretty sure it is the ID #'s under the "Edit Products" link ... but still not working.
  6. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Paste your .htaccess file here.

Share This Page