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

valderama’s picture

sub

kerios83’s picture

same here

dilari’s picture

same 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).

irishdan’s picture

me too,
I got a big list all of those warnings.

mattez’s picture

same here

calculus’s picture

sub

irishdan’s picture

On 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.

jose reyero’s picture

Status: Active » Postponed (maintainer needs more info)

Testing with 7.4 now and cannot see any of these warnings.

Do they occur only when running the upgrade script?

gaele’s picture

Status: Postponed (maintainer needs more info) » Active

Yup. When upgrading from 7.2 to 7.4, running update.php.

gaele’s picture

Oops. I meant upgrading from beta 7 to beta 8, running update.php.

jose reyero’s picture

From beta7 to beta8 there are no new update scripts that I can remember. (?)

Updating any other module at the same time?

pardalman’s picture

Priority: Normal » Minor

Updating 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).

gaele’s picture

Priority: Minor » Normal

#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)

calculus’s picture

3. 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?

pardalman’s picture

#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.

ytsurk’s picture

same here;
first updated from 7.2 to 7.4,
then while updating i18n_beta7 to _beta8 i got the errors

but never again thoe ..

zambrey’s picture

I have these errors on every menu link edit page after enabling i18n_menu module.

jose reyero’s picture

Wow, 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.

zambrey’s picture

I'm using PHP 5.2.6. Last commit fixed notices on menu link edit page.

Thanks!

kerios83’s picture

Hmm 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.

gaele’s picture

The 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.

pardalman’s picture

Version: 7.x-1.0-beta8 » 7.x-1.x-dev

I 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

jose reyero’s picture

Good, 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.

pardalman’s picture

Following 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 !!

aev_fly’s picture

I 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

jose reyero’s picture

Status: Active » Fixed

> 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.

jardines’s picture

testing....... will reply shortly!!!!

Status: Fixed » Closed (fixed)

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

bluesband’s picture

i 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?

ddorian’s picture

exactly the same error as #29 on node translate page, php5.2, sqlite

Anonymous’s picture

Same 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?

gaele’s picture

#29: This is a different problem. Please open a new issue.

Anonymous’s picture

Anonymous’s picture

Changed component to blocks, ehm, since Code is gone from the list I guess.