Active
Project:
Boost
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2012 at 12:34 UTC
Updated:
25 May 2018 at 06:09 UTC
Jump to comment: Most recent
Installed the latest dev and getting this notice in logs
Notice: Use of undefined constant LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX - assumed 'LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX' in boost_parse_url() (line 398 of .../sites/all/modules/boost/boost.module).
Related issue: #1364090: Warning: array_shift() expects parameter 1 to be array, string given in boost_boost_menu_router(), in several places This notice was reported as fixed but I am still seeing it.
PS: I don't have internationalization module enabled or installed
Comments
Comment #1
mobweb commentedHad this problem as well, it went away when I simply enabled another language. I was going to implement multiple languages anyway, so no problem there. But the error seems to occur when
locale.incisn't loaded. And it seems that file doesn't get loaded unless multiple languages are enabled.Comment #1.0
mobweb commentedclarify
Comment #2
TarKHaoS commentedMaybe you have a bug with configuration of Global Redirect.
Try to go to admin/config/system/globalredirect and uncheck "Language Path Checking" option.
Comment #3
dqdConfirmed. - Just to inform others: it's indeed caused from what @TarKHaoS has mentioned. We can reproduce it here.
Comment #4
aloknarwaria commentedMost of the time I have seen this issue because of disable the module where the constant is define. To fix the issue you have to check the constant is defined or not.
$lang = (TRUE === defined('LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX'))? LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX : 0;