Hello,

after upgrading Advanced Forum form version 7.x-2.1 to 7.x-2.2 or 7.x-2.3 I get this mesages:

Notice: Trying to get property of non-object in i18n_taxonomy_localize_terms() (Line 1035 in /.../sites/all/modules/i18n/i18n_taxonomy/i18n_taxonomy.module).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (Line 178 in /.../includes/entity.inc).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (Line 355 in /.../includes/entity.inc).

Bevor upgrading everything works fine..

I post this on Advanced Forum module too but the developer have the opinion that this is an bug in the internationalisation module. As you can see here:

https://drupal.org/node/2056005#comment-7732375

Thanks for any help!

Best regards
Frank

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

elias.ko’s picture

Any news on that issue? Still have the same problem.

troky’s picture

HolodGLD’s picture

Version: 7.x-1.9 » 7.x-1.10
Assigned: Unassigned » HolodGLD

This patch does not work
I have not changed anything it

fraweg’s picture

Hello,

thanks for your post!

try patch from #104

this patch does not solve the problem. Any other ideas?

Best regards
Frank

Edit: for this issue "Warning: array_flip(): Can only flip STRING and INTEGER values!" this patch work:

https://drupal.org/node/1102570 #95

But this not a solution for this issue:

Notice: Trying to get property of non-object in i18n_taxonomy_localize_terms()

Anybody’s picture

Same problem here:
"Notice: Trying to get property of non-object in i18n_taxonomy_localize_terms() (Zeile 1037 von /.../sites/all/modules/contrib/i18n/i18n_taxonomy/i18n_taxonomy.module)."

The error occurs, if bots try to access:
http://example.com/en/forum/en/user/password?name=RekReimiflima

Jose Reyero’s picture

Component: Miscellaneous » Taxonomy
Issue summary: View changes

Setting the right compònent (Taxonomy)

Anybody’s picture

Any progress here?

ccbearyeh’s picture

I am using Drupal core v7.28 and have same issue.
After I tried to comment 2 line on i18n_taxonomy.module, It works for me.

looking for

foreach ($list as $index => $term) {
        if (i18n_taxonomy_vocabulary_mode($term->vid, I18N_MODE_LOCALIZE)) {
	    $localize[$index] = $term->tid;
      }
  }

add // in front of "if", "$localize" and "}" like below

foreach ($list as $index => $term) {
    //if (i18n_taxonomy_vocabulary_mode($term->vid, I18N_MODE_LOCALIZE)) {
		//$localize[$index] = $term->tid;
    //}
  }

overwrite the file.

Anybody’s picture

Any progress or ideas here where the problem comes from? It sadly still exists.

imre.horjan’s picture

Version: 7.x-1.10 » 7.x-1.11
Status: Active » Needs review
FileSize
528 bytes

Here's a patch for the 7.x-1.x-dev version (should work for 7.x-1.11 also).

gbyte’s picture

Confirming #10 works. Please consider patch.

gbyte’s picture

Version: 7.x-1.11 » 7.x-1.13
Assigned: HolodGLD » Unassigned
Status: Needs review » Reviewed & tested by the community

Just checked against 7.x-1.13, as this is newer than the published dev version. Problem still exists and patch fixes it. RTBC

Anybody’s picture

Please apply this patch to the dev and stable release. This is open for a too long period of time, isn't it? :)

LeDucDuBleuet’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Patch in #10 fixes the notices, please port it to dev and a new stable release.

Thank you!

tijsdeboeck’s picture

I can confirm patch #10 as well, it works! Please add it to a new release.

joseph.olstad’s picture

Status: Patch (to be ported) » Fixed

Harmless fix to this use case, should also give slight performance improvement using the Advanced Forum module and i18n

Thanks

Status: Fixed » Closed (fixed)

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