Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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.inc
isn't loaded. And it seems that file doesn't get loaded unless multiple languages are enabled.Comment #1.0
mobweb CreditAttribution: mobweb commentedclarify
Comment #2
TarKHaoS CreditAttribution: 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 CreditAttribution: 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;