Hello guys,
I transferred a site from a server to another one with a complete database dump.
All works fine but I receive this error:

# warning: Illegal offset type in /xxx/xxx/xxx/includes/path.inc on line 65.
# warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /xxx/xxx/xxx/includes/database.mysqli.inc on line 323.
# warning: Illegal offset type in /xxx/xxx/xxx/includes/path.inc on line 70.

The lines are these:

Il messaggio di errore viene replicato per 3 volte, quindi si sono tre elementi che fanno riferimento a questa parte di codice:
if (isset($map[$path_language][$path])) {
return $map[$path_language][$path];
}

Prabaly is something concerning the page's aliases.
The web siste is multilingual and there are 3 languages enabled through the i18n module.

If I delete all the aliases, the error disappear.
What I can do to have the aliases working with multilanguage module?

Comments

magnum2000’s picture

Can anyone confirm that the i18n module works with url aliases?

magnum2000’s picture

If I set Language negotiation to "Path prefix with language fallback" all works fine, while with "Domain name only" it doesn't works.
Has anyone tried to create aliases with "domain name only" option for language negotiation?

Skizzo-1’s picture

Similar issue here.. warning is:
* warning: Illegal offset type in isset or empty in /home/xxxx/public_html/includes/path.inc on line 65.
* warning: Illegal offset type in /home/xxxx/public_html/includes/path.inc on line 70.

Lines mentioned are:
line 65: if (isset($map[$path_language][$path])) {
line 70: $map[$path_language][$path] = $alias;

Warning appears when entering the website. While loading the URL changes to http://www.xxx.nl/nl/Array, which leads to a 'page not found' and the warning.

My guess would be that it has to do with language settings; I have a multilingual (Dutch/English) site.
Any suggestions?

Note: found out that my problem is a known issue with the 'Consistent Language interface' module. See:
http://drupal.org/node/1026684