Hello, I have installed both moodle and amember and tested everything. Both work perfect seperately. Then I downloaded the moodle plugin from the amember website and copied every file/folder exactly how it was suppose to be copied. Now I have enabled moodle plugin inside amember but when I go to setup moodle inside amember giving the moodle full path I am getting the following error: Moodle plugin error. Error reading config.php or bad config.php I am certain that the path given is fine. I am not sure why I am getting this error. My moodle version is 1.9.2. If someone can help then it would be great. Thank you in advance for your time.
Follow up to my question above, i re-uploaded the config.php file in my moodle setup and now I am getting this message in member - moodle plugin setup: Moodle plugin error. Not all settings loaded, check config.php
Hi mmonroe, First off, unprotect any Moodle related folders (ie. start over) and make sure you are using the latest version of the aMember -> Moodle plugin, available free here: http://www.amember.com/p/Integration/Moodle/ Secondly, full set of documentation is available here: http://www.puchemistry.org/testing/moodle_integration.pdf Lastly, if you are still running into issues (or even if you are not) I suggest checking out eFront a modern Moodle alternative. It is also open source and is much simpler to integrate with aMember and use in general: http://www.amember.com/forum/showthread.php?t=8632
Same Error Hello, I am very grateful for the plugin!! I am however having the same error when I attempt to run the setup of the moodle plugin in amember. It is seeing the config.php file but returning the error "Moodle plugin error. Not all settings loaded, check config.php" This error comes from line 797 of the moodle.inc.php file. I can't figure out why though?? I am running Moodle 1.9.3 Thanks for any assistance!! Chuck
I am getting the same error. I'm using moodle 1.9.3 and aMember 3.1.8PRO I'm not as positive that the full path is correct. I have amember in /public_html/amember and moodle in /public_html/moodle When asked for the full path, I tried /public_html/moodle but got an error, moodle path does not exist. I tried several variations on the path, but the only thing that doesn't give me "moodle path does not exist" is when I use ../../moodle as the path name Then I get Moodle plugin error. Error reading config.php or bad config.php I have to believe that I'm doing something wrong, but I don't know what.
/public_html/amember is not a full path. Check in aMember CP after login , path should be something like: /home/yourftploginname/public_html/amember
Yes, after I posted, I realized that I was missing the first part of the path, though that didn't fix the problem. I ended up opening a ticket with CGI-Central Support. It turns out the problem was that the config file was all a single line. Moodle had given me an error before I tried to integrate, about an incorrect path. I used WordPad to edit the file, and it must have stripped the CR's out of the file. Now I have all the integration done, but when I log on to aMember as a regular user, I get the following errors: WARNING: Invalid argument supplied for foreach() in line 296 of file moodle.inc.php WARNING: Cannot modify header information - headers already sent by (output started at /home6/cyberwit/public_html/amember/rconfig.inc.php(19) : eval()'d code(1) : eval()'d code:385) in line 272 of file moodle.inc.php WARNING: Cannot modify header information - headers already sent by (output started at /home6/cyberwit/public_html/amember/rconfig.inc.php(19) : eval()'d code(1) : eval()'d code:385) in line 273 of file moodle.inc.php WARNING: Cannot modify header information - headers already sent by (output started at /home6/cyberwit/public_html/amember/rconfig.inc.php(19) : eval()'d code(1) : eval()'d code:385) in line 274 of file moodle.inc.php WARNING: Cannot modify header information - headers already sent by (output started at /home6/cyberwit/public_html/amember/rconfig.inc.php(19) : eval()'d code(1) : eval()'d code:385) in line 275 of file moodle.inc.php WARNING: Cannot modify header information - headers already sent by (output started at /home6/cyberwit/public_html/amember/rconfig.inc.php(19) : eval()'d code(1) : eval()'d code:385) in line 276 of file moodle.inc.php WARNING: Cannot modify header information - headers already sent by (output started at /home6/cyberwit/public_html/amember/rconfig.inc.php(19) : eval()'d code(1) : eval()'d code:385) in line 54 of file new_rewrite.inc.php I have to believe that the first warning is the key, but I have no idea what the foreach() in line 296 expects, or how to see what the invalid argument it's getting is. This happens after I login as a regular user, and appears above my header. I am unable to purchase any products. When I try, I'm taken to a page that just shows the above errors, and nothing else. If I try the back button, I have to reload the page, and it reloads as though the product was never purchased. You can see the actual error at http://www.cyberwitchcraft.net/amember/member.php once you log in. Ken
I don't know why, but it seems that users that were set up before Moodle Integration were getting that error. I deleted my test user, and resubscribed, now everything works fine.