I installed the registration module and the necessary components and I get this error when I try to create a new user for testing purposes and I get this following error. I'm new to Drupal so I could really help to know what this means and how to fix it. Please help me!

warning: Invalid argument supplied for foreach() in/home/myvilcom/public_html/sites/all/modules/nf_registration_mod/nf_registration_mod.module on line 934.

Comments

rconstantine’s picture

It means you probably didn't follow the instructions. You probably looked at the REQUIREMENTS and then stopped reading. You'll also notice a new release has come out with an even longer README included. Quite a number of people have read all of the documentation for this and the required modules and - surprise - gotten everything to work!

I really don't mean to be rude or snide. Maybe I'm just having one of those days. But it sure helps to get the impression that the user with the problem has at least tried to understand what they are doing. Perhaps one day I'll steal all of the code from the 'required' modules and roll it all into this one so it's a one stop deal. For now, there's a long and complicated process to get this working and doing your homework pays off.

So indulge me and read the documentation for all modules involved.

If you do, you'll notice that you should have setup all dependent modules and populated pageroutes with custom cck content types before activating the membership module.

Happy reading.

myvidjournal’s picture

I did read the documentation and it still didn't work for me. I'm new to Drupal so I don't understand alot. I think you should make the documentation much easier to understand for those newbies who need step by step instructions and examples of each step. I just want to make this work for me.

rconstantine’s picture

I can't build your site for you. Perhaps you could start with what you tried, in the order you did it and ask specific questions. Did you see the link in the README of the fellow I helped get up and running?

rconstantine’s picture

It seems I was a bit snippy that day. Are you still having issues or did you give up? It is a complicated module, no way around that. Like I mentioned before, I would read the docs (and search the issues, etc.) for each module involved to get a good understanding before even setting up the first module. Take it slow. For example, one other person didn't know how to create content types and didn't know that CCK was required for that. So make sure you get the basics before tackling this module.

As for the README, it's as detailed as it can be without going into the details of the other modules. That's what their READMEs are for. Some day I may have time to do a screencast or something, but I have hundreds (literally) of things on my agenda for the next several months that need to get done. I spend as much time as I can supporting the modules I release. If you look around, you'll find that I do more than a lot of other module authors - quite a bit more.

So I was frustrated that it seemed you hadn't done your homework, or at least done it as well as I would have liked you to.

I also get frustrated with the whole newbie excuse and took it out on you. Sorry about that. I'm just about as newbie as they come. I hadn't even heard of Drupal or CMSes until Nov. '06 and hadn't programmed in PHP before either. And yet, I put my first four modules out in March '07. So in my mind it comes down to commitment. Maybe I'm wrong, but people can figure out anything that they want bad enough.

Anyway, like I said before, I probably can't tell you every step to take in setting this up because there are too many variables to consider, especially with the content types and the other modules involved. However, also like I said, I'm willing to answer specific questions.

So, I guess if I don't hear back from you in a week or so, then I'll assume you moved on and I'll close this issue.

rconstantine’s picture

Status: Active » Closed (fixed)

moved on?