?
avatar joeforjoomla
joeforjoomla
28 Jun 2016

Steps to reproduce the issue

After updating to the latest package of Joomla 3.6 RC the backend is no more accessible.
Indeed the path for files is now wrong having a trailing'\' at the beginning.

Expected result






Actual result

<script src="\/media/system/js/core.js"></script>
<script src="\/media/jui/js/jquery.min.js"></script>
<script src="\/media/jui/js/jquery-noconflict.js"></script>
<script src="\/media/jui/js/jquery-migrate.min.js"></script>
<script src="\/media/jui/js/bootstrap.min.js"></script>
<script src="\/media/jui/js/chosen.jquery.min.js"></script>

System information (as much as possible)

joomla36beta2
joomla36rc

Additional comments

avatar joeforjoomla joeforjoomla - open - 28 Jun 2016
avatar mbabker
mbabker - comment - 28 Jun 2016

You're going to need to include a lot more system info. I've been
developing new extensions versus the Git HEAD and have not had this issue
at all.

On Tuesday, June 28, 2016, JoeforJoomla Boy notifications@github.com
wrote:

Steps to reproduce the issue

After updating to the latest package of Joomla 3.6 RC the backend is no
more accessible.
Indeed the path for files is now wrong having a trailing'\' at the
beginning.
Expected result

Actual result

System information (as much as possible)

[image: joomla36beta2]
https://cloud.githubusercontent.com/assets/17835460/16435244/d7544d7c-3d94-11e6-9e57-10f095dbcc57.PNG
[image: joomla36rc]
https://cloud.githubusercontent.com/assets/17835460/16435245/d75b2f48-3d94-11e6-82df-cbb766b7b9ee.PNG
Additional comments


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10955, or mute the thread
https://github.com/notifications/unsubscribe/AAWfoUOes1nkUYgWdk4F2kQXKxh_NCqpks5qQaePgaJpZM4JAnqT
.

avatar joeforjoomla
joeforjoomla - comment - 28 Jun 2016

It looks like a fault of JUri, when calling JUri::root()

The static::$root['path']

seems to get now the wrong '\' path

juri_root

avatar mbabker
mbabker - comment - 28 Jun 2016

Again, you're going to need to provide a lot more info than "this method
call looks like a wrong return". JUri has not substantially changed since
3.4.6.

Is this a Windows versus Linux issue? Is this an Apache versus nginx
issue? Is this a PHP build issue? Right now this says nothing that can be
debugged and so far I can't confirm it.

On Tuesday, June 28, 2016, JoeforJoomla Boy notifications@github.com
wrote:

It looks like a fault of JUri, when calling JUri::root()

The static::$root['path']

seems to get now the wrong '\' path

[image: juri_root]
https://cloud.githubusercontent.com/assets/17835460/16435601/90798d1a-3d97-11e6-8027-02cefa7192e2.PNG


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#10955 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAWfobEoLs_ao3i9PCvBTHa9NZJ3hsUuks5qQawngaJpZM4JAnqT
.

avatar joeforjoomla
joeforjoomla - comment - 28 Jun 2016

Well i can confirm it. As you can see.

Never faced a similar issue in so many years on the same machine.

It's a Windows, Apache. PHP version 5.4

avatar ggppdk
ggppdk - comment - 28 Jun 2016

I get same problem, when site is directly under document root
tested PHP 7.0.3

avatar joeforjoomla
joeforjoomla - comment - 28 Jun 2016

Finally i found the issue.

The file root/libraries/cms/application/administrator.php at line 48
has been changed in Joomla 3.6 beta 2 from:

JUri::root(null, str_ireplace('/' . $this->getName(), '', JUri::base(true)));

to
JUri::root(null, rtrim(dirname(JUri::base(true)), '/'));

so introducing the bug.

avatar joeforjoomla
joeforjoomla - comment - 28 Jun 2016

Please fix it

avatar ggppdk
ggppdk - comment - 28 Jun 2016

Problem seems to be only in windows servers and when site is directly under web server's document root

JUri::root(null, rtrim(dirname(JUri::base(true)), '/'));

is not "trimming" \
it should be:

JUri::root(null, rtrim(dirname(JUri::base(true)), '/\\'));
avatar wojsmol
wojsmol - comment - 29 Jun 2016

@joeforjoomla Please test #10956

avatar joeforjoomla
joeforjoomla - comment - 29 Jun 2016

I tested the code:
JUri::root(null, rtrim(dirname(JUri::base(true)), '/\'));

and it works at my end. Now the trimming is done correctly for the '\' character on Windows + Apache

avatar wojsmol
wojsmol - comment - 29 Jun 2016
avatar brianteeman brianteeman - change - 29 Jun 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-06-29 08:57:48
Closed_By brianteeman
avatar brianteeman brianteeman - close - 29 Jun 2016
avatar brianteeman brianteeman - close - 29 Jun 2016
avatar brianteeman brianteeman - close - 29 Jun 2016
avatar brianteeman
brianteeman - comment - 29 Jun 2016

Closed as we have a PR


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10955.

avatar brianteeman brianteeman - change - 29 Jun 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment