Sunday, April 25, 2010

Drupal View with exposed filter inside a panel hides on submit

If you are using Drupal to display a view inside a Panel you might have noticed that on clicking the apply button of an exposed filter the results are no longer shown inside the panel rather they redirect you to the view itself. This is not we expect as we might have another panes with data to be displayed on that page. This is a trivial issue but need to be fixed. A simple fix is to override URL on your panel by going to panel-> content -> settings (right click) and then in the override URL setting set the URL of the panel.
For example:
1) your panel is
2) your view is

In the settings of mypanel you should set Override URL to mypanel, this will take care of the issue. Hope this helps.

Sunday, April 18, 2010

Drupal: Invalid argument supplied for foreach

I was working with my Drupal installation the other day and ran into this bug. It was not that bad as it did not affect the working. However, it will display this warning on screen on the top of results:
warning: Invalid argument supplied for foreach() in /home/web/public_html/modules/views/theme/views-view-table.tpl.php on line 24
I tried to remember what did I change to have introduced this error. Then I found that I actually changed the way fields appeared in Table.

Tuesday, April 13, 2010

Drupal Nice Menus hidden behind parent

Drupal is a great open source CMS package. There are some bugs in it with additional modules but those are being fixed by the community. One nasty bug is the one where you use nice menus and the second level menu items hide behind parent items in IE. Nice menus work perfect in Firefox and Safari but in IE they behave oddly. I had this issue with one of my websites and after a long research on it I found the fix. All you need to do is

Saturday, April 10, 2010

Adsense for search saving your settings error

There is something wrong with Google's script that generates your ad code for adsense for search. If you an adsense user you must be facing this issue these days. If you are in this bot too you have few options here.

First one is to add a Search Widget to your blog by clicking on "Add Widget" in your blogger account. This will provide your users with a search interface. However, this can not be linked with your adsense account. In short you can no longer make money from your search based ads.

The second option is to use custom search engine which is available for free

Domain not working without www

This is a nasty problem that I had with my domain I have a blogger account and I hosted my blog at I tried forwarding my domain using Godaddy's forwarding option but it will work only for few hours and then again it will stop working. I finally found a way to make it work.
The issue with this is that you need to tell Google that you want to forward your domain without www. This way the nameservers get updated and that way you can forward your to without any issue. To do this follow these steps.
1. Login to your blogger account
2. Go to Publishing under settings.
3. You will see a checkbox under your domain name which says forward your domain to www.domain as shown in picture below.

4. Check that box and save your settings.
It will take some time to update your name servers. Once they are updated you will be able to go to your website without typing www. This is the easiest way to do it.
If you do not see this option please switch to blogger domain and then publish it to custom domain again. Post comments if you can not get this working. I will put up a video tutorial on how to do this.