I've only just noticed this bug, could be related to my recent upgrade to Drupal Core 7.9, or maybe it's been there for a while but I haven't come across it.

The date authored popup works fine when creating/editing a node, but when I try to translate it, I see this error:

Notice: Undefined index: type in date_popup_authored_form_alter() (line 119 of /httpdocs/sites/all/modules/date_popup_authored/date_popup_authored.module).
Notice: Undefined index: type in date_popup_authored_form_alter() (line 130 of /httpdocs/sites/all/modules/date_popup_authored/date_popup_authored.module).
Notice: Undefined index: type in date_popup_authored_form_alter() (line 132 of /httpdocs/sites/all/modules/date_popup_authored/date_popup_authored.module).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mark Trapp’s picture

Status: Active » Postponed (maintainer needs more info)

I don't have any experience with translation: can you give me the exact steps to reproduce, including the modules you're using to translate nodes with?

ClaudeS-1’s picture

FileSize
26.58 KB

I think these are the relevant modules:

- Content Translation (this is in Drupal Core)
- Locale (also in Core)
- i18n (internationalization, has lots of multilingual sub-modules, all of which I have enabled)

These are pretty standard for running a multilingual site. You define which languages you want to make available, then when creating content, you assign it a language. For existing content, you can translate it to another language, which effectively clones the node, assigns it a different language, and in the DB has a link back to the source node in the original language.

As far as this error is concerned, the Date Authored input fields appear at the bottom of the admin overlay where they're not needed (see attachment).

Mark Trapp’s picture

I enabled all the modules you listed and spent 15 minutes trying to replicate the interface you have with no luck.

Can you reduce it down to the exact steps to reproduce this? That is, the minimum configuration and modules I need to have enabled to get the error.

ClaudeS-1’s picture

I can't do that at the moment, as it's a production site that's about to go live. I may try to work on stripping down a dev version when I get a chance, but not sure when that could be...

...are there any debug steps I could do with my installation to provide you with some useful information? Echo out any particular variables?

Mark Trapp’s picture

I just need some way to reproduce this without having to recreate your exact site: just enabling the modules you listed didn't do it. For instance, I don't get the interface shown in your screenshot in #2 when I click on the "Translate" tab for a node:

Screenshot of Translate interface

DeeZone’s picture

Has there been any more progress on this is? I too have the error using 7.x-1.x-dev (2011-Mar-12) and would be willing to help detail the configuration to reproduce it if still needed.

Mark Trapp’s picture

#6 You can see the entire history of the issue right here: I need either a test case reduction or a patch.

Mark Trapp’s picture

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

No action on this issue in months: please reopen with new details if this is still a problem.