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
Comment | File | Size | Author |
---|---|---|---|
#10 | i18n-php_notice_i18n_taxonomy-206327-10-D7.patch | 528 bytes | imre.horjan |
Comments
Comment #1
elias.ko CreditAttribution: elias.ko commentedAny news on that issue? Still have the same problem.
Comment #2
troky CreditAttribution: troky commentedDuplicate of #1525176: Using array_diff_assoc() for multilevel arrays in DrupalDefaultEntityController->cacheGet() ?
try patch from #104
Comment #3
HolodGLD CreditAttribution: HolodGLD commentedThis patch does not work
I have not changed anything it
Comment #4
fraweg CreditAttribution: fraweg commentedHello,
thanks for your post!
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()
Comment #5
AnybodySame 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
Comment #6
Jose Reyero CreditAttribution: Jose Reyero commentedSetting the right compònent (Taxonomy)
Comment #7
AnybodyAny progress here?
Comment #8
ccbearyeh CreditAttribution: ccbearyeh commentedI 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
add // in front of "if", "$localize" and "}" like below
overwrite the file.
Comment #9
AnybodyAny progress or ideas here where the problem comes from? It sadly still exists.
Comment #10
imre.horjanHere's a patch for the 7.x-1.x-dev version (should work for 7.x-1.11 also).
Comment #11
gbyte CreditAttribution: gbyte commentedConfirming #10 works. Please consider patch.
Comment #12
gbyte CreditAttribution: gbyte commentedJust checked against 7.x-1.13, as this is newer than the published dev version. Problem still exists and patch fixes it. RTBC
Comment #13
AnybodyPlease apply this patch to the dev and stable release. This is open for a too long period of time, isn't it? :)
Comment #14
LeDucDuBleuet CreditAttribution: LeDucDuBleuet commentedPatch in #10 fixes the notices, please port it to dev and a new stable release.
Thank you!
Comment #15
tijsdeboeckI can confirm patch #10 as well, it works! Please add it to a new release.
Comment #17
joseph.olstadHarmless fix to this use case, should also give slight performance improvement using the Advanced Forum module and i18n
Thanks