Hi, I just upgraded to Drupal 6 so I could run the new version of this module.

I just installed the module and tried to create an Activity Publisher Template using the form in the admin.

Each time I try, however, I get a bizarre error message that says: "Available Activity Types field is required."

What does this mean? It sounds like it's saying I didn't fill out the form properly, but I certainly am doing that, checking off an activity type, submitting the form, then checking off the options on the next screen and submitting it again.

How do I fix this to get this module working? it's a bummer when you fire up a module and it requires support from the get-go.

Comments

Scott Reynolds’s picture

Status: Active » Postponed (maintainer needs more info)

Never ran into this problem before. What type of template are you creating? Node? User?

bflora’s picture

Tried a few. Let's use "node" as the example.

Also, thanks for the speedy reply. ++!

It's like it's not remembering what I entered in the first page of the form or something, right?

Scott Reynolds’s picture

Category: bug » support
Priority: Critical » Normal

Can you describe everything you did? Which choices you made. Screen shots work nicely too.

More info the better :-D

bflora’s picture

Category: support » bug
Priority: Normal » Critical

There's not much else to report:

1. Uploaded the Activity directory to my sites/all/modules directory.
2. Activated it, along with the Triggers module.
3. Navigated to admin/build/activity
4. Selected the "node" option and hit continue.
5. Selected the "Insert" option and then one of my content types, a node type called "news."
6. Pushed continue.
7. I was sent back to the previous page of the form, reset to having no option selected. The error message appeared above.

It's like it's not remembering what I selected on the first page of the form and is sending me back to fill it in or something.

bflora’s picture

I've deactivated all modules except:

-Activity 6.x-2-dev
-OG
-Views
-Views UI
-Drigg
-Comment
-Profile
-Voting API

And this problem persists.

I switched to one of the default themes and this problem persists.

I don't understand why the activity publisher templates creation form is spread out over two forms. I suspect it would work for me if I had it all just on one page.

I'd rather not have to hack the module to make the form work on one page, but it appears the quickest way to get this fixed and working.

bflora’s picture

The code that creates the form appears to be between lines 205 and 447 in the Activity.admin.inc file. What changes can I make to these lines so that the form fits on one page instead of across 2 where it's not working for me?

Scott Reynolds’s picture

I can not reproduce it. I grabbed the latest code and followed your steps (even creating a News content type). Just didn't happen for me.

I use Activity on a site that even uses memcache for the form_cache and it doesn't cause any issues either. Its not that I don't believe its happening is that I can't figure out why or how it could possibly happen. The form cache stores the 'storage' property just fine.

Did you try going directly to admin/build/activity/create ? It might be that starting from the 'list' view might be bad. Though it wasn't in my testing.

Its a multi step form because the choices for the various steps depend heavily on the choices from the previous steps.

mimpse’s picture

I got this behaviour after a bodged upgrade from v1 to 6.x-2.x-dev (my bad). Cleanly uninstalling everything and re-installing from scratch (as, ahem, suggested) seemed to fix it.

EDIT: sorry, it wasn't this. I'm still getting the problem. Worked with a clean install, so there's probably a clash with another module/caching issue. I'll do some tests and report back if I find anything.

sirkitree’s picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

please reopen if you can replicate this and tell us how to replicate in order to verify there is a bug.

luthien’s picture

I'm getting the same error but I don't know how what can be wrong. I'm using drupal 6.26 and Activity 6.x-2-dev. I disabled caching but the error is still there. The log displays this error: Illegal choice in Available Activity Types element. I'm selecting either Node or User, not able to find the cause of the problem.