Здравствуйте, Уважаемые друпаловцы.
Есть такая проблемка, из-за обновления jquery до 6.2.x, начали возникать проблемы (пропали гуглмапсы с нод, раскрывающиеся списки стали неактивными и т.д.), многие элементы сайта перестали работать. Уже больше месяца гуглю по этому поводу, и реальных решений найти не смог. Снова откатил на 6.1.х, но достает сообщение об ошибке: "Your jquery version is to old to use wysiwyg_imageupload. Therefore you need to install jquery_update 6.2.x, not jquery_update 6.1.x. Please read point 3 at this howto to fix this."
Просьба не посылать Сюда и Сюда...
В общем хелп плиз. Уже не знаю что делать...
Комментарии
Неужели нет людей, которые побороли этот глюк?
Порылся ещё и нашел такое решение:
Поставил модуль jQuery Update 6.x-2.x-dev (2010-Сен-09), в нем заменил
<?php
function jquery_update_jquery_path() {
$jquery_file = array('none' => 'jquery.js', 'min' => 'jquery.min.js');
return JQUERY_UPDATE_REPLACE_PATH .'/'. $jquery_file[variable_get('jquery_update_compression_type', 'min')];
}
?>
На
<?php
function jquery_update_jquery_path() {
$jquery_file = preg_match('/(admin|edit|add)/', request_uri()) ?
array('none' => JQUERY_ORIGINAL_PATH.'/'.'jquery.js', 'min' => JQUERY_ORIGINAL_PATH.'/'.'jquery.min.js'):
array('none' => JQUERY_UPDATE_REPLACE_PATH.'/'.'jquery.js', 'min' => JQUERY_UPDATE_REPLACE_PATH.'/'.'jquery.min.js');
return $jquery_file[variable_get('jquery_update_compression_type', 'min')];
}
?>
Все заработало, НО толку от этого в общем-то мало...
Эрор «Your jquery version is to old to use wysiwyg_imageupload. Therefore you need to install jquery_update 6.2.x, not jquery_update 6.1.x. Please read point 3 at this howto to fix this.» остался и Очень надоедает...
Спустя час пользования открылся ещё один минус метода. Кеш нужно постоянно чистить, ибо снова перестает все работать...
Не, ну пиплы, неужели ни кто не решал такой трабл?
Люди! Хелп!!! =(((
у меня таже проблема, только еще и все ссылки вместо стандартного перехода, пытаются открыть окошко как-будто, картинка галереи. Что делать?
да да таже проблема. пришлсоь отказать из за этого от пару модулейй
Столкнулся. Решил. Первое что нашел http://drupal.org/node/1067290#comment-4599490 не совсем помогло. Помогло следующее. В своем модуле добавил 2 хука и в js своего модуля положил старый jquery. Вот код:
/**
* Implementation of hook_theme_registry_alter().
*/
function mymodule_theme_registry_alter(&$theme_registry) {
global $theme;
$admin_theme = variable_get('admin_theme', '');
if (isset($theme_registry['page']) && ($theme == $admin_theme)) {
if (count($theme_registry['page']['preprocess functions']) > 0) {
// If jquery_update's preprocess function is there already, remove it.
if ($key = array_search('mymodule_preprocess_page', $theme_registry['page']['preprocess functions'])) {
unset($theme_registry['page']['preprocess functions'][$key]);
}
}
// Now tack it on at the end so it runs after everything else.
$theme_registry['page']['preprocess functions'][] = 'mymodule_preprocess_page';
}
}
/**
* Implementation of moduleName_preprocess_hook().
*
* Replace Drupal core's jquery.js with the new one from jQuery Update module.
*/
function mymodule_preprocess_page(&$variables) {
// Only do this for pages that have JavaScript on them.
if (!empty($variables['scripts'])) {
// Get an array of all the JavaScript files loaded by Drupal on this page.
$scripts = drupal_add_js();
// Replace jquery.js first.
$new_jquery = array(drupal_get_path('module', 'mymodule') . '/js/jquery-1.3.2.min.js' => $scripts['core']['misc/jquery.js']);
$scripts['core'] = array_merge($new_jquery, $scripts['core']);
unset($scripts['core']['misc/jquery.js']);
$variables['scripts'] = drupal_get_js('header', $scripts);
}
}