I just installed the module. Added Node Field to a "Test" Content Type. Created one node of type Test. Then went to the Node Field tab.
I created a Node Field of type text. Worked fine.
Then tried to add a Node Field of type long text. I received a system message saying the field had been created, cool. But the field does not show up on the Node Field tab form :( When I visit my node, I see my first Node Field of type text, but no other Node Fields.

When I try to create another Node Field with the same machine name than the field that did not work, the form validation fails saying a field already exists under that machine name. Which means it has been partially created. Scary :S

I then tried to create another Node Field of type text since the first one did work, but it does not work either. So basically I have been able to create one Node Field and now it's broken.

This is a critical bug to me. I don't understand how a module under version 2.43 could have that kind of bug ? Too bad!

Comments

nicolas bouteille’s picture

Just tried on another one of my websites. Even cleaner this time. Not a clean install but quite clean. Same problem. Tried to add two text fields. First one works, second breaks.

nicolas bouteille’s picture

News: when I delete my first text Node Field, I finally see the second one I had tried to create. So it had indeed been created.

nicolas bouteille’s picture

Wow: and now I can add new ones! WTF?! :)

nicolas bouteille’s picture

Well I spoke too fast... now I can have too of them! No more :) Weirdest bug

nicolas bouteille’s picture

And if I delete another one I can have three of them...

trim108’s picture

"I don't understand how a module under version 2.43 could have that kind of bug ?" - I don't understand too. Could you specify Drupal version, theme and modules you use? May be something else, because I tested it many times and it works fine.

trim108’s picture

Sorry for this weird bug. Bugfix was added in 2.44 version.

trim108’s picture

Status: Active » Closed (fixed)
nicolas bouteille’s picture

Hi,

Before I say anything, I just wanted to say that I really appreciate the fact that you even shared this module. It is a great idea and no matter what I am gonna say next, I personally haven't shared any module yet so I would never criticize your work. I respect it, really.

That being said, I think I know why your module, even though on version 2.43 can have that kind of bugs. First because you commit too fast, second maybe because you don't have unit tests set. Again, what I say is not the absolute truth, it is just some feedbacks from what I've seen around on the Drupal community, so I believe at least part of it is true.

So first, I was wondering how a module could even be on version x.43 ??! I've never seen it on any other module. Then seeing how fast you created the next 44 version by just fixing a bug yourself helped me understand. From what I know, when a bug is found, a patch should be committed first to the corresponding issue queue so that the system can validate the code. Then once the code is valid the issue status changes to "Needs review" and someone else than the maintainer should test the patch. A bunch of people should, to be correct. Then someone else than the maintainer should change the issue status to "Reviewed and tested by the community. RTBC..." Then the patch should be committed I believe to the dev version. And only sometimes then should the new version be created. It might not be all true but I am pretty sure creating a new version just like you did is not the right way.

Now the other point is you might lack testing. I haven't had a look at your module so I might be wrong here, but I believe unit testing's goal is to prevent such basic bugs from re-appearing so late in the project's life. Again, I'm far from being an expert in this field but I'm pretty sure this is the right thing to look at in order to prevent your module from ever having that kind of regression again.

Sorry for all that but I really think your module should be used on more sites and I believe these advice could help you in that way. Keep up the good work!

Cheers,

Nick