problem with the amember-pluggin with joomla 1.5

Discussion in 'Integration' started by pascaljarry, Mar 5, 2008.

  1. pascaljarry

    pascaljarry New Member

    Joined:
    Feb 12, 2008
    Messages:
    5
    Hello,

    I'm using the amember-plugin with joomla 1.5 and I have those problems using the login component in joomla :

    when a I login, everything looks fine except that I'm not logged in amember (but I'm in joomla).

    When a click logout , I'm redirected to amember , the logout works fine (in amember) but then when I'm redirected back to joomla I'm still logged in (the logout doesn't work properly in joomla).

    Hope someone can help me !!

    Regards,
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Did you install the amember login module?
    I've attached my version.
    It uses the directory /member/ so you may need to unzip, change that, then rezip before installing.

    This will replace your joomla login module and log you into amember before joomla.

    David
  3. pascaljarry

    pascaljarry New Member

    Joined:
    Feb 12, 2008
    Messages:
    5
    Thank you for the plugin. But event with that one I have a problem. I`m forwarded propertly to the login in emember, and forwarded back to my appliation, but when I`m back I still have to login page displayed as I wasn`t logged in and if I look at the content of $_SESSION I cannot see the emember user into the session ??? any idea ???
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Is both your joomla site and amember site on a www or non-www?
    It treats www and non-www as two different sites.

    Also double check your joomla live site config settings in amember.
    If using 1.5 it should end in /
    and in your joomla config, blank.
    var $live_site = '';


    David
  5. pascaljarry

    pascaljarry New Member

    Joined:
    Feb 12, 2008
    Messages:
    5
    finally, my setting was ok... I received a new jar file from the support which has fixed my Single sign on problem. Now I can login in amember an joomla. but, I cannot retreive any of the variables which are supposed to be loaded in the session at the login in amember . for example $_SESSION[_amember_products] isn`t set ...

    any idea ?
  6. erwinvdb

    erwinvdb aMember Pro Customer

    Joined:
    Aug 30, 2007
    Messages:
    264
    Hi David, I'm running Joomla 1.5 and received this error when I tried to install the mod you attached:
    "Your Extension appears to be written for an older version of Joomla!. You must enable the System - Legacy Plugin in the Plugin Manager if you wish to complete this task."
    Do I need that Legacy plugin enabled or has the plugin been updated in the meantime?

    Regards,
    Erwin
  7. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Sorry, I haven't had a chance to update it.

    But for 1.5 its not needed. you can use the native joomla login.

    David
  8. erwinvdb

    erwinvdb aMember Pro Customer

    Joined:
    Aug 30, 2007
    Messages:
    264
  9. shutters

    shutters New Member

    Joined:
    Oct 29, 2007
    Messages:
    5
    erroneous event

    I'm trying to get the joomla plugin to work, but it seems that it's designed for the old 1.x release. I'm using 1.5. Just downloaded it too and the readme says it will work, but no go.

    there are two issues...

    first, one can tell this is a legacy plugin because of this line:
    defined( '_VALID_MOS' ) or die( 'Restricted access' );

    _VALID_MOS is defined ONLY by the legacy 1.0 plugin. So, the amember plugin must load after that.

    second, this line uses an erroneous event:
    $_MAMBOTS->registerFunction('onStart','amemberStart' );

    As far as I can tell, there is no 'onStart' event dispached in the system in Jm1.5.

    I'm trying to update the amember plugin to be 1.5 compliant now, but if anyone has some thoughts or suggestions, that would be full awesome as I'm pretty now to both amember and joomla :eek:

    cheers,

    - t
  10. pickle

    pickle New Member

    Joined:
    Mar 23, 2008
    Messages:
    17
    That would be awesome to get the Amember Joomla plugin to work!

    I've been trying to figure this out for 2 solid days now and waiting for the amember team to get back to me.

    The plugin that came with my purchase that installs in Joomla to redirect pages for login,register,etc. does not work for me.

    I requested an upadte script and it still don't work. I know that you can link directly to the amember pages which I have done but somehow I think that this may be causing my login issues that I posted about earlier today.

    Amember and joomla says I am registerd as a free member but the joomla site will not let me access registered content.

    I wish someone could help me out on this. I'm completely frustrated at this point.
  11. shutters

    shutters New Member

    Joined:
    Oct 29, 2007
    Messages:
    5
    partially working

    I've got it partially working by updating the amember.php plugin like so...

    'onStart' => 'onAfterInitialize' (the triggering event)

    There is no 'onStart' event in Joomla 1.5, so the function amemberStart() is never called.

    I also changed the 'com_registration' _REQUEST['option'] value to just 'com_user'. The legacy plugin (which is still needed) makes this substitution.

    It is intended to work with the standard Joomla login module. Took me a while to figure that out :confused:

    But basically, all this plugin does is bypass the standard Joomla registration process by being loaded and called first. It then redirects to the appropriate aMember function.

    BTW, you can't have the amember plugin loaded before the Legacy plugin or it will not find the _VALID_MOS constant and display a "Restricted access" message.

    It does not however appear to handle actual logins and most of the _REQUEST['task'] values that it looks for, to determine what to do, are invalid.

    Logging to aMember though /amember/login.php works well though. So, I may end up forgetting this plugin and just do a wrappr for all the aMember pages ...once I figure out how!

    Be warned, there is an older login module that used to be provided by aMember that works for 1.0 Joomla, but not for 1.5. Messed with it for a while before discarding it.
  12. shutters

    shutters New Member

    Joined:
    Oct 29, 2007
    Messages:
    5
    update amember.php plugin

    Here's what I have so far. It works, if redirecting to aMember pages is what is desired anyway since that's all it does.

    Not exactly what I was looking for or what was advertised :(

    I think I'm going to move on to trying everything with a wrapper.

    So, if you already have the original amember and legacy plugin installed. Just backup your
    %joomla base%/plugins/system/amember.php file and upload this one.

    If amember is not installed in amember/ dir, you'll need to edit that in the file.

    The plugin also has to load after the System Legacy plugin.

    good luck!
  13. canaandesign

    canaandesign New Member

    Joined:
    Aug 22, 2006
    Messages:
    3
    I had this problem too, this is how I solved problem:
    Go to joomla 1.5 administrator plugin page, disable system remembe me plugin, this will solve the problem i think, at least it works for me :)
  14. ray_lee

    ray_lee New Member

    Joined:
    Aug 22, 2006
    Messages:
    3
    Jar File

    Can you post that jar file pls? I am also having the exact same problem you have with the plugin and J!1.5...:(
  15. ray_lee

    ray_lee New Member

    Joined:
    Aug 22, 2006
    Messages:
    3
    Can you share the files?

    Since I updated to J!1.5 my login has also been ruined :( Would appreciate if you could share the files?
  16. sparkymarky

    sparkymarky New Member

    Joined:
    Sep 7, 2008
    Messages:
    1
    It seems that 5 months later, this is still a problem!!!

    I would like to get help with this asap, as the site was planned for launching on Friday 12th September.

    Here is the Joomla setup that I have:
    Joomla v1.5.7 (in legacy mode)
    Fireboard 1.0.5 RC1
    Community Builder 1.2 RC2
    Amember Pro 3.1.3

    There is a choice with Amember Pro - either to lock down content or to be controlled by Community Builder. I have set up amember pro to control content and control the access levels of paying members, as I assumed that was most important.

    I installed the Official amember Joomla Plugin that makes loging bypass through amember to make sure that users are both logged into amember and joomla.

    The site works fine, however, there is a problem, and it only happens when I activate that ammember Joomla plugin.

    When I activate it, and a member logins in, and then alter tries to log out - the member cannot log out. The logging out processes via the following url:

    http://www.example.com/amember/logout.php?amember_redirect_url=http://www.example.com/

    But then the user is still logged in. Even when I login as an administrator into the backend, when I click on logout, and it attempts to log me out, I am still logged in!

    This is frustrating, and I have contacted amember, but their responses tell me to install the plugin, which I already have.

    I have tried disabling the System-Remember Me plugin, as suggested above, and that did not work.

    I suppose my questions are:
    i) Should I do it the other way around and do the CB amember installation, so that CB updates Amember - but then how will the content be protected? Has anyone tried the CB style of Amember Pro installation? Amember documentation is very poor on that.

    ii) If I disable the plugin, then users who have not paid their dues will be able to login, but will not be reminded that they need to make a payment. However they will still be downgraded by amember if they haven't paid their dues.

    iii) If I leave the plugin disabled, then users will be able to get the Joomla passwords changed outside of amember (because the plugin won't redirect them to amember), which might cause problems when they then try and login to Amember if they have 2 different passwords.

    Any assistance would be welcome.
  17. mantzm

    mantzm New Member

    Joined:
    Aug 29, 2006
    Messages:
    10
    sparkymarky:

    I'm having the same problem, and the response I get back from amember is that everything is working for them when they test it out.
    Does anyone have a solution for this problem.
  18. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Let me preface this with the fact that I don't use Joomla.. that being said, is the logoff link they are clicking on for Joomla or aMember?

    If Joomla, I would suggest changing it to the aMember logout (amember\logout.php) link
  19. mantzm

    mantzm New Member

    Joined:
    Aug 29, 2006
    Messages:
    10
    skippybosco,

    In the instructions in the attached readme and here in the forum for 1.5 its not needed. you can use the native joomla login. I did try you method but it does not give me a single login for Joomla & Amember.

    Thanks for the thought though.

    Just slightly frustrated.

    MM
  20. arttoolz

    arttoolz New Member

    Joined:
    May 4, 2008
    Messages:
    1
    Just adding my two cents, also having the same issue, I just purchased the plugin today and been messing with this all day long. Did anyone find a solution to this yet?

    I am able to register with aMember and then logon to Joomla with this user but:

    1. when I try to logout of Joomla using the Joomla login module I am redirected to a 404 page that says "Article #0 not found".

    2. My settings are correct for logout redirect in aMember, (when I log out from aMember/logout.php it works fine and redirects to the correct page I have set... but user is still logged on to Joomla.)

    3. Even if I close browser and then open Joomla admin panel and force logout of test user, the user is still logged into Joomla.

    I know am just repeating what sparkymarky is saying but would appreciate some assistance if available. Thanks!

Share This Page