RSS

Joomla! play nice with IIS7!

Tue, Aug 5, 2008

Joomla, Open Source

I happily use WordPress, but I have also seen unlimited potential in Joomla! As a developer I jumped with joy when I heard my hosting company GoDaddy was using II7 on new Windows server accounts (since I’d be able to create PHP as well as ASP pages on it side by side). However my jumping ceased after installing Joomla! once I received “500- Internal server error” messages when I would try to use the search or poll options. This terrible let-down unfortunately was not supported by the hosting company and after a few Google searches which left me confused, I decided to take matter into my own hands. I shall fix Joomla! so that other II7’ers as well as myself can use it!

Thus far I have noticed only five problems with Joomla! on IIS7, three of which I have solved. Below I describe them and provide the fix I found for them.

1. Search

File: components/com_search/controller.php

Line: 70

Add Value: $uri->setVar('view', 'search');

Reason:  This adds the "view=search" parameter to the URL to allow the search view.

2. Vote Button

File: components/com_poll/controller.php

Line: 93

Replace Value: $this->setRedirect( JRoute::_('index.php?option=com_poll&id='. $poll_id.':'.$poll->alias.$itemid, false), $msg );

With Value: $this->setRedirect( JRoute::_('index.php?option=com_poll&view=poll&id='. $poll_id.':'.$poll->alias.$itemid, false), $msg );

Reason:  This adds the "view=poll" parameter to the URL to allow the poll view.

3. Vote Results Button

File: modules/mod_poll/tmpl/default.php

Line: 39

Replace Value: onclick="document.location.href='< ?php echo JRoute::_("index.php?option=com_poll&id=$poll->slug".$itemid); ?>'"

With Value: onclick="document.location.href='< ?php echo JRoute::_("index.php?option=com_poll&view=poll&id=$poll->slug".$itemid); ?>'"

Reason:  This adds the "view=poll" parameter to the URL to allow the search view.

4. Top News button

Problem: News button on top horizontal menu returns the message:

Error loading feed data. Error: Feed not retrieved.

Probable error: Something wrong with the feed generating code? Uncertain.

5. News Feed link on left menu

Problem: News Feeds link on left takes you to a catergories page. The links there generate a page not found error.

Probable error: Malformed URL posted by the application. Also high possiblities of a bad interpretation when recieving a good URL. These are tough! Any suggestions?

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • MySpace
  • Twitter
  • Yahoo! Buzz
  • PDF
  • Reddit
  • Slashdot
  • Technorati
, ,

14 Comments For This Post

  1. MJ Hufford Says:

    Have been looking for this answer for a long time! Can’t wait to give it a try later tonight.

  2. MJ Hufford Says:

    Just tested…works GREAT…thank you!

  3. Andy Says:

    hello
    with the default template it works also fine for me on IIS7. But then I addes RocketTheme equinox template (rt_equinox_i16) set it as default and then get the error 500 when I run “preview”. (although I got message Install Template Success) Any idea?
    Thank you for your help
    Regards Andy

  4. Cesar Says:

    I am not sure because I haven’t really experimented with other templates. I’ve been trying to get this working correctly so that THEN I could invest in a nice template. However I can give you a few suggestions of things to check.

    First, is your Joomla directory writable? I use godaddy.com as my hosting company and had to make my directories writable myself in order for some things to work on Joomla and WordPress. I don’t think they have the installation of these apps down right just yet.

    Second, don’t trust preview! lol I say apply the template then look at it from your site’s URL. There could be something wrong with the preview function.

  5. Amy Stephen Says:

    Cesar -

    Sam Moffatt has created a patch that is available on the Joomla! tracker http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=10175 for IIS that should help you, too.

    These instructions http://forum.joomla.org/viewtopic.php?f=428&t=265988#p1390393 will help you test. Please report your findings in that thread.

    Thanks!

  6. Cesar Says:

    Andy,
    I believe you left a comment after Amy. It was deleted because of some problems I was having with WordPress 2.6. My appologies.

    Everyone else,
    Thanks to Amy and Sam for helping find an alternative fix for the Joomla search and poll functions. The fixes should be included in the next version of Joomla, here is a link to that.
    http://forum.joomla.org/viewtopic.php?f=431&t=265988&st=0&sk=t&sd=a&start=30#p1392017
    Hopefully we can move on to other fixes now.

  7. pacres Says:

    Thanks a million. This worked Great.

  8. James Says:

    Hi, I found your blog on this new directory of WordPress Blogs at blackhatbootcamp.com/listofwordpressblogs. I dont know how your blog came up, must have been a typo, i duno. Anyways, I just clicked it and here I am. Your blog looks good. Have a nice day. James.

  9. Autoversicherung Says:

    Excelent comment. My Favorit Blog. Thank you and best regards from Autoversicherung

  10. Private Krankenversicherung Says:

    I have added it to my favourites, greetings. Many thanks Private Krankenversicherung

  11. Great Joomla Templates Says:

    I found your site on faves.com bookmarking site.. I like it ..gave it a fave for you..ill be checking back later

  12. chat Says:

    thanks

  13. Joomla 2.0 Templates Says:

    found your site on del.icio.us today and really liked it.. i bookmarked it and will be back to check it out some more later ..

  14. Jim Spence Says:

    Tuesday In searching for sites related to web hosting and specifically cold fusion hosting site web, your site came up.

Leave a Reply