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.
<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>
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
.
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
I get same problem, when site is directly under document root
tested PHP 7.0.3
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.
Please fix it
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)), '/\\'));
@joeforjoomla Please test #10956
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
@joeforjoomla please mark as tested https://issues.joomla.org/tracker/joomla-cms/10956 (after login the Test button appears). See https://docs.joomla.org/Testing_Joomla!_patches#Recording_test_results
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-06-29 08:57:48 |
Closed_By | ⇒ | brianteeman |
Closed as we have a PR
Labels |
Added:
?
|
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: