[РЕШЕНО] Глюк меню

Главные вкладки

Аватар пользователя Sun-fire Sun-fire 8 июля 2011 в 5:14

Суть трабла.

Собрал набор модулей для сайта. Перенес с Денвера на сервер разработки. Создал несколько блоков, словарей таксономии и два меню.

Далее при попытке зайти в admin/structure/menu вылетает WSOD со следующим текстом:

(function ($) { Drupal.behaviors.menuChangeParentItems = { attach: function (context, settings) { $('fieldset#edit-menu input').each(function () { $(this).change(function () { // Update list of available parent menu items. Drupal.menu_update_parent_list(); }); }); } } /** * Function to set the options of the menu parent item dropdown. */ Drupal.menu_update_parent_list = function () { var values = []; $('input:checked', $('fieldset#edit-menu')).each(function () { // Get the names of all checked menus. values.push(Drupal.checkPlain($.trim($(this).val()))); }); var url = Drupal.settings.basePath + 'admin/structure/menu/parents'; $.ajax({ url: location.protocol + '//' + location.host + url, type: 'POST', data: {'menus[]' : values}, dataType: 'json', success: function (options) { // Save key of last selected element. var selected = $('fieldset#edit-menu #edit-menu-parent :selected').val(); // Remove all exisiting options from dropdown. $('fieldset#edit-menu #edit-menu-parent').children().remove(); // Add new options to dropdown. jQuery.each(options, function(index, value) { $('fieldset#edit-menu #edit-menu-parent').append( $('').val(index).text(value) ); }); } }); } })(jQuery);

После возврата на главную отдает следующий ворнинг:

# Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback,
'menu_overview_page' was given in menu_execute_active_handler() (line 503 of /site/includes/menu.inc).

В чем может быть трабла?

Комментарии

Аватар пользователя tonyk tonyk 15 июля 2011 в 10:51

Либо битая БД, либо код неправильно перенесли. Проверьте, есть ли на месте файл, где должна быть эта функция menu_overview_page, есть ли она там и т.п.