This is the full error:

Notice: Undefined index: lid in location_cck_field_load() (line 227 of /var/www/sites/testsite/subdomains/www/html/sites/all/modules/location/contrib/location_cck/location_cck.module).

Please advise.

Comments

WilliamV’s picture

Version: 7.x-4.x-dev » 7.x-3.x-dev

Ok, we figured already out this has to do with cck not being functional yet within D7 (and it is advised to apply node location).
When will this be operable? We need this possibility urgently. If we can assist we will.

rooby’s picture

Location CCK should be working and works for me for the testing I have done.

Can you give any more information:
* Are you using drupal 7.0 & the latest dev version of location from the 15th Feb?
* What are the settings for you location field (are there any required location fields etc.)?
* Are the locations saving at all?
* Does it happen for new nodes, updated nodes or both?
* Anything else you can think of that might make your field special in some way?

WilliamV’s picture

- Drupal 7 + latest dev of today (just installed it through update script and tested)
- I don't think anything saves, as i've created a view setting empty fields with a basic text 'no location' and this text is appearing, even to those having data
- i have existing nodes and new, tested on both, same result
- I took screenshots of my settings, you can take a look and search for inconsistency's.

rooby’s picture

Title: When providing CCK data, upon save 'Notice: Undefined index: lid in location_cck_field_load()' » 'Notice: Undefined index: lid in location_cck_field_load()' when previewing a new node with location CCK data
Priority: Critical » Major

Cool I think I see the problem now, thanks.

I can confirm this error when you are previewing a new node but if you just save the node without previewing it works. Is that right?

WilliamV’s picture

I need to test this as my content type (read: node) requires a preview before submitting.
But this could be. I'll get back to you soon. Thank you.

WilliamV’s picture

I don't get the error when directly saving (so you're right on that one) but the field shows as empty. No map or adress are visible.
Please advise!
Thank you!

rooby’s picture

There are actually a number of issues surrounding locations loading incorrectly during preview.
I'll get it fixed soon.

Fields being empty is odd, that was happening previously should have been fixed on the 14th here - #1056156-2: Finish implementing hook_field_formatter_info() and hook_field_formatter_view() for location_cck so should not still be happening (although map related displays are still not working properly).

WilliamV’s picture

Still it is considered as empty.

rooby’s picture

Status: Active » Fixed

I just committed a fix that should have resolved the issues with previewing nodes.
http://drupal.org/cvs?commit=502306

Status: Fixed » Closed (fixed)

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