Reply to commentReply to comment

pict-drupal.pngこれは、ページのURLがインラインアンカー付きの場合に、page.tpl.phpに記述したjQueryの処理がコールされないという不具合です。(最新版Drupal 6.9でも発生)

問題の発生するURLの例:www.sample.com/node/8#comment-3

この原因はDrupalのCoreにあるtableheader.jsファイル中の不具合によりページロード時にエラーが発生することによりjavascriptの処理が中断してしまい、page.tpl.phpのready関数で指定した処理がおこなわれないことによるものです。

この対策としては、以下のページにあるパッチをtableheader.jsに導入することで解決します。

tableheader.js error with anchors

http://drupal.org/node/367088


ここにあるパッチcore-367088-1.patchファイルをDrupalのルートディレクトリにコピーして、patch -p0 < core-367088-1.patch をおこなってパッチをあてればOKです。

No votes yet

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.