Bug running Joomla under Windows

The support for Joomla 2.5 ended on December 31, 2014. Possible bugs in Joomla 2.5 will not be patched anymore. This forum has been closed. Please update your website to Joomla 3.x

Moderators: ooffick, dam-man

Forum rules
Please use the official Bug Tracker to report a bug: http://issues.joomla.org
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Sep 16, 2005 11:38 am

Bug running Joomla under Windows

Postby AnnyPaws » Thu Jan 19, 2012 12:46 am

(This is my first bug report, so excuse me if I'm doing something wrong.)

I've installed joomla in a subdirectory, and want to hide it from the url. I'm using htaccess, and changed the $live_site to something like $live_site='http://localhost.client/'. Front-end works fine, but I can't login to the administrator. It tries to redirect to http://localhost.client/index.php . When the $live_site is empty, the admin works fine, but the subdirectory is visible in my urls on the front-end.

After some days of researching and testing, I've figured out what is wrong.

In the file: \libraries\joomla\environment\uri.php
Line 213, there is an if that looks like this:


In my case, this "if" was comparing this: D:\server\htdocs\client\folder\administrator
with this: D:\server\htdocs\client\folder/administrator

The second value has a / instead of \ (I think its because I'm working under windows). So I suposse the command inside the "if" would never be executed on Windows.

So I changed the if to this:

if (JPATH_BASE == str_replace("/","\\",JPATH_ADMINISTRATOR)) {

And now everything seems to be working fine, back-end and front-end.

P.S.: Sorry for my english. :}

Return to “Joomla! 2.5 Bug Reporting”

Who is online

Users browsing this forum: No registered users and 2 guests