Hi,

I've made a few changes to the default (Garland) theme (5.2) and I've just noticed that the Input Format Settings, Comment Settings, etc. are no longer there. The actual headers appear, but there are no options underneath them. This problem is similar to the one @ http://drupal.org/node/164810. My misc folder is untouched, and I've made a few changes to my page.tpl.php file, but I've preserved the code

    <?php print $head ?>
    <?php print $styles ?>
    <?php print $scripts ?>

Does anyone have an idea of what the problem may be? The installation is @ santafenights.com.

Cheers,
Lee

Comments

leesfn’s picture

Actually, I see the options available when I view the source, but it's not appearing in the browser (Firefox 2.0.0.4):

<fieldset class=" collapsible collapsed"><legend>Input format</legend><div class="form-item">
 <label class="option"><input type="radio" name="format" value="1"  checked="checked"  class="form-radio" /> Filtered HTML</label>
 <div class="description"><ul class="tips"><li>Web page addresses and e-mail addresses turn into links automatically.</li><li>Allowed HTML tags: &lt;a&gt; &lt;em&gt; &lt;strong&gt; &lt;cite&gt; &lt;code&gt; &lt;ul&gt; &lt;ol&gt; &lt;li&gt; &lt;dl&gt; &lt;dt&gt; &lt;dd&gt;</li><li>Lines and paragraphs break automatically.</li></ul></div>

</div>
<div class="form-item">
 <label class="option"><input type="radio" name="format" value="2"   class="form-radio" /> PHP code</label>
 <div class="description"><ul class="tips"><li>You may post PHP code. You should include &lt;?php ?&gt; tags.</li></ul></div>
</div>
<div class="form-item">
 <label class="option"><input type="radio" name="format" value="3"   class="form-radio" /> Full HTML</label>

 <div class="description"><ul class="tips"><li>Web page addresses and e-mail addresses turn into links automatically.</li><li>Lines and paragraphs break automatically.</li></ul></div>
</div>
<p><a href="/?q=filter/tips">More information about formatting options</a></p></fieldset>
<input type="hidden" name="form_token" id="edit-page-node-form-form-token" value="bbffae55dc03f67c02a12201c0e71b45"  />
<input type="hidden" name="form_id" id="edit-page-node-form" value="page_node_form"  />
klapper’s picture

the html looks fine.

Check whether your page head contains

<script type="text/javascript" src="/misc/collapse.js"></script>
leesfn’s picture

Thanks - it wasn't in there. I added, but it's still not working. Why are the scripts under misc no longer appearing? My page.tpl.php now looks like this:

<!-- Head -->
    <?php print $head ?>
    <!-- Styles -->
    <?php print $styles ?>
    <!-- Scripts -->
    <?php print $scripts ?>
    <script type="text/javascript" src="/misc/collapse.js"></script>
    <style type="text/css" media="print">@import "<?php print base_path() . path_to_theme() ?>/print.css";</style>
    <!--[if lt IE 7]>
    <style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/fix-ie.css";</style>
    <![endif]-->

When the HTML is generated, it looks like this:

    <!-- Head -->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="alternate" type="application/rss+xml" title="Santa Fe Nights RSS" href="http://www.santafenights.com/?q=rss.xml" />

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <!-- Styles -->
    <style type="text/css" media="all">@import "/files/css/6ebaa695ac85eacc91f6e6b8dbc8173e.css";</style>
    <!-- Scripts -->
        <script type="text/javascript" src="/misc/collapse.js"></script>
    <style type="text/css" media="print">@import "/themes/garland/print.css";</style>
    <!--[if lt IE 7]>
    <style type="text/css" media="all">@import "/themes/garland/fix-ie.css";</style>
    <![endif]-->

Why are javascript files no longer appearing? Where is $scripts defined?

- Drupal Noob

leesfn’s picture

Actually, when I comment out the following it works:

	<script type="text/javascript" src="lightbox/js/prototype.js"></script>
	<script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects"></script>
	<script type="text/javascript" src="lightbox/js/lightbox.js"></script>   

Once, I find out the problem I'll post here so others can fix it.

denishaskin’s picture

I'm having exactly the same problem, but I haven't touched any of the garland code. This is a site I've upgraded from way back at 4.6.2 through 4.7.7 to 5.2. Any ideas? I'm baffled...

anewcomb’s picture

I am having this problem too. I recently upgraded from 4.7 to 5.3. It happens in all my themes. Any help is greatly appreciated.

Thanks,
Aaron
http://www.thesourceshow.org
http://www.opennewsshow.org

anewcomb’s picture

I just checked my scripts against a fresh install and found that I had copied my old scripts from my old misc directory over the new ones. Once I corrected this everything worked again.

Thanks,
Aaron
http://www.thesourceshow.org
http://www.opennewsshow.org

polarity’s picture

Had this problem on a fresh install.

Tried disabling Kerio PF and all the menus started working.