Has anyone using the Moodle plugin noticed any session anomalies? I've actually had this error logged in aMember: WARNING: implode() [<a href='function.implode'>function.implode</a>]: Bad arguments. in line 207 of file PATH-TO-AMEMBER/plugins/protect/moodle/moodle.inc.php It seems to correlate with maybe a session timeout with aMember but not with Moodle (but this is just a guess). So a user is still in Moodle, but no aMember session is present. For example their name, pulled from session code, is not displayed. And clicking on a Moodle link or resource sends them looping to the "...forwarding to member area..." page/message then back to the Moodle home page.
Humm... This sounds like a question for Alex. If he doesn't pick it up in the forums soon, you might want to submit this to support...
I have gotten the same message: WARNING: implode(): Bad arguments. in line 207 of file moodle.inc.php <--- Shown in the browser <b>WARNING:</b> implode(): Bad arguments. in line 207 of file /xxxxx/local/home/XXXXX/XXXXXXX.XXX/amember/plugins/protect/moodle/moodle.inc.php <----- shown in aMember log My setup here with aMember also has the Wordpress plugin. So when a user logs into aMember they are also logged in BOTH Wordpress and Moodle 1.8.2. Also, it looks like the docs for the Moodle plugin is missing somethings. For example in the Doc you see these instructions: 5. Go to the Moodle plugin and type in the moodle location (eg: /home/user/public_html/moodle). This enables aMember database to talk with Moodle database. This creates the list of courses available in moodle and 'Short name' of the course will be listed in aMember product page. 6. Go to the aMember CP -> Manage Products page and create products by assigning Title and other descriptions and selecting the correct course from Moodle access list at the bottom of the screen. Preferably keep the product title same as 'Short name' of moodle course and note that it is case sensitive. Well, I can see the Moodle Plugin link and the location where to input the Moodle location. However, no data from Moodle 1.8.2 is being pulled into aMember. I'll also report this the Alex and see what he can come up with. Ji NOTE: I'm really getting hot under the collar. I'm trying to Open a Ticket to requst asistance to solve the above error and the ticketing system here just logged me out with this message: Currently Not Logged In I have logged many times in and got this message many times! Why? I am a registered aMember user. This has been happening ever since my first ticket. Now, at this point how can I leave a Ticket to Alex and his team? Alex, sorry for bugging you but can you tell me why I'm not allowed to leave a ticket? I did purchase aMember. Misconfig somewhere? Ji More Notes: This looks like a problem with some session cookies being created. Line2 204 to 212 in moodle.inc.php: if ($dbsessions) $session_data = urldecode($this->query_one("SELECT sessdata FROM [db]sessions2 WHERE sesskey = '".$db->escape($session_cookie_value)."'")); else $session_data = implode('',@file($moodle_settings['dataroot']."/sessions/sess_".$session_cookie_value)); if (!$session_data) return array('', ''); else $session_exist = 1; I can reproduce this error with the following steps: 1, Log into aMember via a web page 2, from the web page go to Moodle 3, exisit Moodle from it's logout button 4, you return to the login web page (At this point you will notice that although you logged out of Moodle you still have access to "secure" areas of the web page) 5, go to the aMember member page to completetly logout of site. You will fine that you may have to try to logout up to nine times.
Alex, I don't know what to tell you. I got kicked out the Ticket system three times before I could leave a ticket. However, the system kicked me OUT when I tried to save the ticket. This is frustrating. Can you look into this? Also, I'll try to send the ticket by regular mail. Ji
Anything happened in this? I could not see any such errors in my error log of amember. I could not reproduce wdevn's error. What I have done is simply modify the moodle logout page to redirect to amember/logout.php and the user simultaneously logs out both from amember and moodle and then redirect it to moodle/.
Can anyone provide link to your website that used aMember and Moodle? I am looking for examples of site that are successfully using this combination. Thanks
I had that implode problem also and found out that it was caused when I changed the logout link in moodle's lib/weblib.php file instead of moodle's own login/logout.php. Setting the value of the redirect link in that logout.php file looked to be the correct location and addressed the implode error while functioning cleanly.