Sunday, July 29, 2007

Drupal script | Page not found

The other day I thought of trying the Scriptaculous and prototype libraries on my Drupal based webpage. I got the latest version of Drupal(5.2) and installed it on my local system for developing fast. I got the effect pretty easily by changing the page mode to "Full HTML" and adding the required HTML tags.
script src="/javascripts/prototype.js" type="text/javascript"

Now that it things are fine I planned to do the same on my website online. But it wasn't easy as I imagined it to be. Damn thing was repeatedly failing and throwing 403's. There was not much mentioned in the system log either. After some time I figured out that it gets messed up while it parses the "script" tag. I tried updating the Drupal library and also got the latest update of JQuery. But that didn't get me anywhere better. I was somehow determined to get it running at any cost. I finally figured out a work around. I moved the script tags to the page.tpl.php. Bingo!! Just what I wanted.
Note that each and every theme has a page.tpl.php under its respective directory. So in case you have configured a rotating theme and haven't made the required changes in all the pages, your users might be bumping into "Page not found".

3 comments:

Anonymous said...

It is remarkable, it is an amusing piece acheter levitra generique In my opinion you are mistaken. Let's discuss it. Write to me in PM, we will communicate.

Anonymous said...

But silent, there are splendidly known companies which merit seemly words and created an splendid http://ipod-playlist.com/ cheap Cialis Online reputation.

Anonymous said...

lxjqysbwzw jzvmilwzcq [url=http://www.italtubi.com]levitra compra [/url] hddilfmuta zuehqomkzn levitra senza ricetta oqjezmmnqo lobqoxydys