Hello...

I activated Translatable entity types only for nodes and Enable language fallback is activated

I posted some test comments and get following errors:

Notice: Undefined index: base path in EntityTranslationDefaultHandler->__construct() (line 193 of ... /sites/all/modules/entity_translation/includes/translation.handler.inc).

and

Notice: Undefined index: path wildcard in EntityTranslationDefaultHandler->getPathInstance() (line 499 of .... /sites/all/modules/entity_translation/includes/translation.handler.inc).

CommentFileSizeAuthor
#1 title-1631958-1.patch544 bytesplach

Comments

plach’s picture

Project: Entity Translation » Title
Component: Base system » Code
Status: Active » Needs review
StatusFileSize
new544 bytes

This is a Title issue. The attached patch should fix it.

ptmkenny’s picture

This patch didn't work for me. After applying it, when I try to create a new node of my custom content type (for uploading pictures; it contains a single image field), I get the following error:

Fatal error: Call to undefined function entity_language() in /Volumes/Bullfrog/om/sites/all/modules/contrib/title/title.module on line 449

I applied the patch to the dev version of Title (2012-Jun-13) with Entity Translation alpha2 and Entity API rc3. I then upgraded to Entity Trans dev and Entity API dev and flushed the caches but the patch still didn't work. Reverting to the dev version of Title (pre-patch) caused the error to no longer appear.

plach’s picture

@ptmkenny:

You are having a different problem, see the project page and the release notes.

plach’s picture

Status: Needs review » Reviewed & tested by the community
plach’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: +Needs tests

Committed and pushed, thanks.

Status: Fixed » Closed (fixed)

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

heretic381’s picture

Have the same problem. The patch didn't work. Saving comment results as a blank page.

plach’s picture

Are you using the latest dev?

heretic381’s picture

Title 7.x-1.0-alpha3+4-dev
Entity Translation 7.x-1.0-alpha2

plach’s picture

That's not the latest Title dev, it probably does not include the commited patch.

heretic381’s picture

I've applied the patch. And about week ago i've upgraded from beta to dev version. What do you suggest?

plach’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

First of all install the latest Title dev and flush all caches. Then if the problem is still there and it's the same as the one described in the OP, you should post a list of steps to reproduce it. Being able to see it on a plain Drupal installation with only Title and ET would help a lot. If this is not possible, then the list should contain a list of modules to be installed to reproduce the problem and their versions.

Also check you are using the latest dev version of Drupal core or applied the entity langauge patch as mentioned in the project page (see #3).

heretic381’s picture

Ok, thanks. I will try that and post the needed info if it doesn't work.

heretic381’s picture

Just in case...is this the last dev version:

7.x-1.0-alpha3+10-dev ?

heretic381’s picture

Ok, after installing the latest dev package and clearing cache, I'm facing the issue described in #2.

Fatal error: Call to undefined function entity_language() in /homez.501/ombrolud/www/sites/all/modules/title/title.module on line 453

Not sure where to look for the next step.

heretic381’s picture

Ok, after some reading, I suppose this is the key:
"Also check you are using the latest dev version of Drupal core or applied the entity langauge patch as mentioned in the project page "

I'm not using the dev version of Drupal core, as it could be more risky to build a site with it.
If I'm not wrong this is the patch that should be applied to drupal core:

http://drupal.org/files/entity_language-1495648-47_0.patch

plach’s picture

This is the core patch to apply: #1495648-42: Introduce entity language support.

heretic381’s picture

Yeah, that's what I meant.
It works now :)
Thanks :)

plach’s picture

Status: Postponed (maintainer needs more info) » Fixed

Good :)

plach’s picture

Status: Fixed » Closed (fixed)

  • Commit cd00b0f on 7.x-1.x, workbench by plach:
    Issue #1631958 by plach | Goekmen: Fixed Undefined index: base path in...