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

marcp’s picture

Project: Location » Workflow
Version: 6.x-3.1-rc1 » 6.x-1.1

In 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.

marcp’s picture

Title: Stops working after moving location from sites/all/modules to sites/default/modules » Redirect to URL on state transition short-circuits hook_nodeapi() for modules that come after workflow

Changed the issue title.

marcp’s picture

Status: Active » Closed (duplicate)

I'm marking this as a duplicate of #298716: redirect to URL action troubles since this is probably/possibly a core issue.