When I see different 7.x-3.x-dev versions come out, I update the location module on my website to the newest one. Recently after updating I am getting an error when I try to edit a node that already had location information in it.

The error occurs when trying to edit any part of a node, doesn't have to be a location field. When save is clicked it takes me to a screen that says:

Fatal error: Call to undefined function dpm() in /home/content/02/5984602/html/mydrupalsite/sites/all/modules/location/contrib/location_cck/location_cck.module on line 173

I tried update.php, is there anything else I might have to do. I also understand I am working with a development version, should I just rollback the version to the one I used when I originally created it?

Comments

acarpio’s picture

I'm having same problem with last March 28 release. I don't get the error message but a white screen.

worldlinemine’s picture

We are also experiencing a similar issue:
Step 1: Edit piece of content with a location field which results in a lightbox edit window.
Step 2: Save content
Effect 1: Redirects from lightbox window to the edit url of the piece of content with the change missing.
Step 3: Edit same piece of content
Step 4: Save content
Effect 2: Redirects to white screen no errors in logs

Content is able to be saved once the Location CCK module is disabled.

I'd be happy to test any possible patches, and we will be looking at the module to see if we can decipher what might have changed. We are also using the March 28th, 2011 -- 7.x-3.x-dev .

One possible issue/solution could be this: http://api.drupal.org/api/devel/devel.module/function/dpm

Conditional checking for the devel module needs to be added so that when debugging it doesn't bomb out.

Thanks for working on a great module!

alexmalka’s picture

Subscribing same problem

vasike’s picture

subscribe. very strange

mirabuck’s picture

Same issue as well. Subscribe.

NathanM’s picture

Same as number 2, except I get the following error where they encounter a white screeen:
Fatal error: Call to undefined function dpm() in /home/asiascen/public_html/hkscene/sites/all/modules/location/contrib/location_cck/location_cck.module on line 173

pjcdawkins’s picture

Same issue here

(@ #1, #6: a 'white screen' usually means a fatal error occurred, but errors are suppressed - see http://drupal.org/node/158043)

Workaround: it seems to save properly when you install and enable the Devel module. I'm getting some weird short messages though ("en-GB", "en", "und" - probably another bug).

Ciraxis’s picture

+1

E: Maybe a Workaround. Just //dpm($langcode);
But i think its not the right way ;-)

rooby’s picture

Status: Active » Fixed

Super sorry about that, I accidentally left that in.

Fixed.

http://drupalcode.org/project/location.git/commit/9e6c8fa

HunterT’s picture

thanks for fixing. I just rolled back to the version that worked for a temporary fix.

rooby’s picture

You will want to get it from git until the next dev version is generated.

Foonaka’s picture

#9 worked for me, as well.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.