After running update.php I got 72 times this message:
Notice: Trying to get property of non-object in i18n_menu_link->__construct() (line 37 of /home/www/public_html/sites/all/modules/contrib/i18n/i18n_menu/i18n_menu.inc).
Notice: Trying to get property of non-object in i18n_menu_link->__construct() (line 38 of /home/www/public_html/sites/all/modules/contrib/i18n/i18n_menu/i18n_menu.inc).
Warning: Attempt to assign property of non-object in i18n_menu_link->__construct() (line 38 of /home/www/public_html/sites/all/modules/contrib/i18n/i18n_menu/i18n_menu.inc).
Comments
Comment #1
valderama commentedsub
Comment #2
kerios83 commentedsame here
Comment #3
dilari commentedsame here.
And when switching from dutch (default) to English i get:
Warning: array_merge_recursive() [function.array-merge-recursive]: recursion detected in i18n_string_textgroup_default->multiple_translation_search() (line 836 of /sites/all/modules/i18n/i18n_string/i18n_string.inc).
Comment #4
irishdan commentedme too,
I got a big list all of those warnings.
Comment #5
mattez commentedsame here
Comment #6
calculus commentedsub
Comment #7
irishdan commentedOn a test site with drupal 7.2, I installed i18n beta8 and got no warnings. I then upgraded drupal to 7.4 and got a lots of those warnings.
Comment #8
jose reyero commentedTesting with 7.4 now and cannot see any of these warnings.
Do they occur only when running the upgrade script?
Comment #9
gaele commentedYup. When upgrading from 7.2 to 7.4, running update.php.
Comment #10
gaele commentedOops. I meant upgrading from beta 7 to beta 8, running update.php.
Comment #11
jose reyero commentedFrom beta7 to beta8 there are no new update scripts that I can remember. (?)
Updating any other module at the same time?
Comment #12
pardalman commentedUpdating to beta7 to beta8.
Running update.php works fine.
Following errors when entering Contact page :
Notice: Trying to get property of non-object in i18n_menu_link->__construct() (line 37 of xxxx\sites\all\modules\i18n\i18n_menu\i18n_menu.inc).
Warning: Attempt to assign property of non-object in i18n_menu_link->__construct() (line 38 of xxxx\sites\all\modules\i18n\i18n_menu\i18n_menu.inc).
Following errors when entering listing menu links:
* Notice: Undefined index: access in _menu_translate() (line 778 of xxxx\includes\menu.inc).
* Notice: Undefined index: access in menu_local_tasks() (line 1892 of xxxx\includes\menu.inc).
Following errors when editing/translating menu links:
# Notice: Trying to get property of non-object in i18n_menu_link->__construct() (line 38 of xxxx\sites\all\modules\i18n\i18n_menu\i18n_menu.inc).
# Warning: Attempt to assign property of non-object in i18n_menu_link->__construct() (line 38 of xxxx\sites\all\modules\i18n\i18n_menu\i18n_menu.inc).
Comment #13
gaele commented#11: Nope, just i18n.
Looks like there are two ways to get this error:
1. install D7.4 + i18n beta7, then upgrade to beta8 (me and others)
2. install D7.2 + i18n beta8, then upgrade to D7.4 (irishdan in #7)
Comment #14
calculus commented3. already installed D7.2+i18n beta7, then upgrade to i18n beta8, causes errors while update.php and after that in pages.
ps. Did upgrade to beta8 changed anything to db?
Comment #15
pardalman commented#13: My case is a third one:
1. install D7.4 + i18n beta7, then upgrade to beta8 (me and others)
2. install D7.2 + i18n beta8, then upgrade to D7.4 (irishdan in #7)
3. Testing site D7.2 + i18n_beta7 working with no errors, then upgrade module to i18n_beta8
#12 to see where I get the error.
Comment #16
ytsurksame here;
first updated from 7.2 to 7.4,
then while updating i18n_beta7 to _beta8 i got the errors
but never again thoe ..
Comment #17
zambrey commentedI have these errors on every menu link edit page after enabling i18n_menu module.
Comment #18
jose reyero commentedWow, this is confusing enough.
Anyway, I've found some trouble with the code, fixed it, if updating to latest dev you should stop seeing some of the Notices (the ones in i18n_menu.inc).
(Still I don't know why I wasn't getting any notice. Maybe PHP version? I am using PHP 5.3... ? )
So please update to latest dev and let's focus on the remaining notices.
Comment #19
zambrey commentedI'm using PHP 5.2.6. Last commit fixed notices on menu link edit page.
Thanks!
Comment #20
kerios83 commentedHmm i got errors when trying to translate views, there are still errors related to menu items. I have updated beta8 to dev. I try update beta7 to dev and see how it goes.
Comment #21
gaele commentedThe latest dev solves (at least):
- running update.php while upgrading from beta7 to dev (on D7.4, case 1)
- editing a menu link
Using PHP 5.2.10.
Comment #22
pardalman commentedI still get errors
Configuration:
D7.2
PHP 5.2.17
7.x-1.x-dev updated 7 Jul
updating from beta7 to 7.x-1.x-dev (7 Jul) running /update.php works fine but after update I get:
When listing links in main menu:
* Notice: Undefined index: access in _menu_translate() (line 778 of /mysite/includes/menu.inc).
* Notice: Undefined index: access in menu_local_tasks() (line 1892 of /mysite/includes/menu.inc).
When editing menu:
* Notice: Undefined index: access in _menu_translate() (line 778 of /mysite/includes/menu.inc).
* Notice: Undefined index: access in menu_local_tasks() (line 1964 of /mysite/includes/menu.inc).
Solved former error (in beta8) when editing/translating menu links
COMMENT EDITED: I get the errors after updating from BETA7 to DEV(7 Jul). The issue tracker information is wrong
Comment #23
jose reyero commentedGood, we are makeing some progress. So:
- There was an issue, which is fixed, only throwing notices with PHP 5.2
- There are some notices left (#22)
These notices seem to be caused by some other module. See #1170358: Undefined index: access in _menu_translate and menu_local_tasks
Anyway, try cleaning your cache.
Comment #24
pardalman commentedFollowing your advice now it works after these steps:
- Clear all caches
- Updating to last dev version (7 Jul)
- Running update.php with no problems
- ** At this point I was still getting same notices **
- Clear all caches
- Et Voila ! they are all gone.
Is there a cache generated by the update.php? I didn't know, it seems that cleaning all caches is a good practice before and after installing/updating a new module.
Oh!, just in case it helpful my current installed modules are: i18n, languageicons, backupandmigrate, variable
Thanks and keep up the good job Jose !!
Comment #25
aev_fly commentedI have this conf
php 5.2
D 7.2
intern. version = "7.x-1.x-dev"
I don't update anything and I have same error
Comment #26
jose reyero commented> it seems that cleaning all caches is a good practice before and after installing/updating a new module.
Yes, it is :-)
So we are marking this as fixed, a new beta with this fix and some more will be out soon.
Comment #27
jardines commentedtesting....... will reply shortly!!!!
Comment #29
bluesband commentedi have a same problem with Drupal 7.7 and i18n 7.x-1.0-rc2:
Warning: array_merge_recursive() [function.array-merge-recursive]: recursion detected in i18n_string_textgroup_default->multiple_translation_search() (line 839 of /var/www/drupal7/html/sites/all/modules/i18n/i18n_string/i18n_string.inc).
does have an idea?
Comment #30
ddorian commentedexactly the same error as #29 on node translate page, php5.2, sqlite
Comment #31
Anonymous (not verified) commentedSame problem, lots and lots of recursive errors, on D7.7 and 7x-1.0-rc2 on php 5.2.6
Was this fixed in the devx?
Comment #32
gaele commented#29: This is a different problem. Please open a new issue.
Comment #33
Anonymous (not verified) commentedI openend a new issue here #1244598: array_merge_recursive(): recursion detected in line 839 of i18n_string.inc
Comment #34
Anonymous (not verified) commentedChanged component to blocks, ehm, since Code is gone from the list I guess.