I'm working on getting a reproducible environment, but putting this here now in case this is an already known issue (I searched and couldn't find anything).
Background: We developed a site as a standalone installation with all contrib modules in sites/all/modules. We then switched it over to a multi-site and moved some modules from sites/all/modules into sites/default/modules. After visiting admin/build/modules and checking the system table, everything looked fine, except the location and location_node modules stopped working properly.
Other contrib modules installed on the site: cck, gmap, views
We're using location_node to attach locations to one content type. More to come, but this is here now in the hopes that someone else has already described and/or fixed this.
Comments
Comment #1
marcp commentedIn the description of this issue, I left out one other module that is installed: workflow.
Here's a more precise description of what's going on:
1. We use location_node.module to attach locations to our School content type
2. We allow anonymous users to create School nodes and enter an address
3. School nodes default to being unpublished
4. Workflow for the School node has 2 states -- Added and Promoted -- where anonymous users can only put something into the Added state.
5. On transition from (created) to Added, we redirect to a Thank You for submitting your school URL
I think this is where the problem lies. Upon redirecting, workflow doesn't allow any module that comes after it in the hook order to have their hook_nodeapi() called, which is where location_node_nodeapi() would save its data.
In our setup, we initially had the location and location_node modules coming after workflow because they were installed in sites/all/modules, but after moving them to sites/default/modules, locations weren't getting saved for new nodes.
Setting workflow's module weight to 1 "fixed the glitch" and, while this is certainly not a straightforward use of workflow, it almost seems like workflow should try to make itself come after most modules most of the time.
Comment #2
marcp commentedChanged the issue title.
Comment #3
marcp commentedI'm marking this as a duplicate of #298716: redirect to URL action troubles since this is probably/possibly a core issue.