?
avatar grantg182
grantg182
4 Jun 2017

Steps to reproduce the issue

Install Joomla 3.7.2

Expected result

No console errors

Actual result

GET http://localhost/media/system/core.js

System information (as much as possible)

3.7.2

Additional comments

Path is incorrectly defined in libraries/cms/html/behavior.php on line 90:-

JHtml::_('script', 'system/core.js', array('version' => 'auto', 'relative' => true));

Should be system/js/core.js

avatar grantg182 grantg182 - open - 4 Jun 2017
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jun 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Jun 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Jun 2017
Category JavaScript Libraries
avatar dgt41
dgt41 - comment - 4 Jun 2017

Relative == true means no need to use the /js/

avatar andrepereiradasilva
andrepereiradasilva - comment - 4 Jun 2017
JHtml::_('script', 'system/core.js', array('version' => 'auto', 'relative' => true));

Result:

<script src="/media/system/js/core.js?b7d620c1ef135c749d6325a89e00d321"></script>

Also JHtml detect if file exists in the filesystem, if doesn't exist it will not create a HTML tag.

avatar tonypartridge
tonypartridge - comment - 5 Jun 2017

@grantg182 can you please check the filter exist in your system:
/media/system/js/core.js

Working fine in my testbed.

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Jun 2017
Status New Discussion
avatar C-Lodder
C-Lodder - comment - 6 Jun 2017

@grantg182 - have you by any chance made any core changes to Joomla? Or using any plugins that may alter the core behaviour?

avatar brianteeman
brianteeman - comment - 20 Aug 2017

It has been several months since the last response and from the comments above it has not been replicated - this can always be re-opened if required

avatar brianteeman brianteeman - change - 20 Aug 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-08-20 10:38:02
Closed_By brianteeman
avatar brianteeman brianteeman - close - 20 Aug 2017

Add a Comment

Login with GitHub to post a comment