Moodle 1.6 breaks Amember plugin

Discussion in 'Integration' started by snm13, Jun 28, 2006.

  1. snm13

    snm13 New Member

    Joined:
    Jun 12, 2006
    Messages:
    3
    FYI, the Amember plugin for Moodle DOES NOT work with the new Moodle release 1.6

    It will cause a database update failure during upgrade.:eek:

    I have tested it with 1.5.2+ ok.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    We will check this and implement a fix if necessary.
  3. tteg

    tteg Guest

    I also use Moodle with aMember, and would really love to upgrade to the latest version of Moodle 1.6. Any idea when the Moodle Plugin for release 1.6 will be working?
  4. snm13

    snm13 New Member

    Joined:
    Jun 12, 2006
    Messages:
    3
    Alex at Amember says it will be this week, but he said that last week too. So who knows.
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
  6. cambridge

    cambridge New Member

    Joined:
    Jun 26, 2005
    Messages:
    7
    apparently some problems with the update

    Hi Alex,

    There is a discussion in the Moodle forums about problems with the update:

    http://moodle.org/mod/forum/discuss.php?d=48647#231915

    Can you please advise? Do you know of anyone who has successfully implemented the update?

    thx!
  7. dschwa

    dschwa Member

    Joined:
    Jun 1, 2006
    Messages:
    37
    I've got it working but it is throwing an error.

    Warning: mysql_pconnect(): Access denied for user 'nobody'@'localhost' (using password: NO) in /home/(mysite)/public_html/moodle/lib/adodb/drivers/adodb-mysql.inc.php on line 372

    adodb-mysql.inc.php beginning line 366
    // returns true or false
    function _pconnect($argHostname, $argUsername, $argPassword, $argDatabasename)
    {
    if (!empty($this->port)) $argHostname .= ":".$this->port;

    if (ADODB_PHPVER >= 0x4300)
    $this->_connectionID = mysql_pconnect($argHostname,$argUsername,$argPassword,$this->clientFlags);
    else
    $this->_connectionID = mysql_pconnect($argHostname,$argUsername,$argPassword);
    if ($this->_connectionID === false) return false;
    if ($this->autoRollback) $this->RollbackTrans();
    if ($argDatabasename) return $this->SelectDB($argDatabasename);
    return true;
    }

    When a user logs into moodle it works but gets this erro.

    I decided to use amember for single membership and make my moodle enrolments open to registered users. This seems to work great except for the error.
  8. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Hi,
    Can you please contact us at support@cgi-central.net and provide ftp info and Moodle admin login/password ?
    I don't get such error on my local installation with latest Moodle plugin.
  9. dschwa

    dschwa Member

    Joined:
    Jun 1, 2006
    Messages:
    37
    will do a little bit later.
  10. dschwa

    dschwa Member

    Joined:
    Jun 1, 2006
    Messages:
    37
    Fixed but now a bigger problem

    I solved the above error because I did not have the amember enrolment plugin activated in moodle. I'm not using the plugin for individual courses but I guess it needs to connect.

    This creates a new serious problem for me.

    Moodle is only using aMember to get the user info. then let them in if they have an account. Problem is that aMember creates the account even if the payment failed. aMember actually creates the account before sending the user to paypal and as far as moodle is concerned they are good.

    I need Moodle to require amember "Status" =1 before allowing entry to the moodle site. I assume, but I'm not a real coder, that this would be a hack to the moodle auth/db/lib.php

    I'll write Alex separately also.
  11. dschwa

    dschwa Member

    Joined:
    Jun 1, 2006
    Messages:
    37
    Thanks Alex

    Wow. Talk about quick support. Now I've got Amember working with Moodle 1.6 as a straight membership frontend rather than using the enrollment plugin.

    Perhaps Alex will let people know the hack he made to the moodle code and add it to the moodle plugin readme as an option for those like me who just need a membership. I'll post over at Moodle.org as I know there are many who could use this.

    :D
  12. dbpettit

    dbpettit New Member

    Joined:
    Jan 11, 2007
    Messages:
    2
    Help!

    I'm having a ton of issues with this myself, but mostly I just can't get moodle to recognize any members.

    Alex - can you please help me to get this shindig running? I know there's a new version of Moodle since the last post - but I'm using 1.6.4.

    Heeelllp!
  13. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Please contact us via helpdesk, and we will send you a copy of updated plugin.
  14. dschwa

    dschwa Member

    Joined:
    Jun 1, 2006
    Messages:
    37
    dbpettit contact Alex thru your pro account page

    I let him into my moodle install and he had everything going fine in a few minutes. He likes ssh so you need to be able to allow it. I'm sure all his fixes can be done over ftp too but he can do so much more on ssh.

    Now that I've spoken for Alex without any permission, I'll shut up.

    Best support ever, but then again we do pay for it.:D

    ds

    I guess Alex was answering as I was typing
  15. beenet

    beenet aMember Pro Customer

    Joined:
    Dec 24, 2004
    Messages:
    11
    Single-login support for Moodle

    I have Moodle setup to authenticate against my aMember database. Works great.

    However, a user must login twice if they want to jump back and forth between a Moodle course and aMemeber's control panel (member.php) or a protected page (protected by aMember).

    Q: Can a single-signon solution be developed for Moodle??

    Q: Can the username and password from a Moodle session be passed to aMember for authentication ??

    Thanks.
  16. tacit

    tacit CGI-Central Support

    Joined:
    Nov 23, 2006
    Messages:
    12
    1. Yes, it's can be done but i don't recommend it for security reason.
    2. Second variant is much better and it's not very difficalt-to-create.
    Now we have fixed Plugin and it's work with Moodle 1.7.1 and 1.8.
  17. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021

Share This Page