Notice: Undefined offset: 1 in i18n_404_url_inbound_alter() (line 48 of sites/all/modules/i18n_404/i18n_404.module).

Notice: Undefined index: en in i18n_404_get_translation_path() (line 110 of sites/all/modules/i18n_404/i18n_404.module).

Comments

hefox’s picture

Status: Active » Needs review
StatusFileSize
new1.05 KB

against stable but guessing hasn't been fixed.

hefox’s picture

Title: Undefined index errors in i18n_404 » Undefined index errors in i18n_404/check access before switching
StatusFileSize
new1.58 KB

Noticed some additional undefined errors and mostly importantly, if a translation isn't published it still changes path to it which results in the 403 page being served instead

hefox’s picture

Patch is being used on a project with multiple testers/developers and has not presented any problems yet and has fixed the issue.

alansaviolobo’s picture

StatusFileSize
new2.62 KB

The above patch generates a lot of noise in watchdog. Hence removed the watchdog() function and replaced it with hook_requirements() instead.

alansaviolobo’s picture

StatusFileSize
new2.4 KB

corrected patch.

alansaviolobo’s picture

StatusFileSize
new2.47 KB

updated the comments in the patch.

alansaviolobo’s picture

StatusFileSize
new2.47 KB

updated comments.