Tuesday, January 22, 2013

warning: strcmp() expects parameter system.module

warning: strcmp() expects parameter 2 to be string, array given in modules\system\system.module on line 1125.
warning: strcmp() expects parameter 2 to be string, array given in modules\system\system.module on line 1125.
warning: strcmp() expects parameter 2 to be string, array given in H:\server\liveserverd\www\go\modules\system\system.module on line 1125.

FIX:::: SYSTEM.MODULE LINES 1118-11133

/** * Helper function to sort requirements. */
function _system_sort_requirements($a, $b) {
+ $a = array('weight','title');
+ $b = array('weight','title');
 if (!isset($a['weight'])) {
 if (!isset($b['weight'])) {
return strcmp($a['title'] ,$b['title']);
 }
 return -$b['weight'];
}
return isset($b['weight']) ? $a['weight'] - $b['weight'] :
$a['weight']; }

No comments:

Post a Comment

only show translated menu items into current language (Drupal 8)

function MY_THEME_preprocess_menu(&$variables) {   if ($variables['menu_name'] == 'brancott-header-menu') {    $langu...