?
avatar alex-equities
alex-equities
5 Jul 2017

Steps to reproduce the issue

Go Joomla admin -> Global Config -> Pick any component (for examole Cache) then tabs are not loading

Expected result

Load default tab

Actual result

getting javascript error

Uncaught ReferenceError: wgxpath is not defined
in /media/system/js/tabs-state.js?605d27beb48904c56ac7b7fd39ed7dbd

System information (as much as possible)

upgraded from 3.7.2 to 3.7.3

Additional comments

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar alex-equities alex-equities - open - 5 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Jul 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Jul 2017

Can't confirm.

Loading "Cache"-Options got "Permissions"-Tab.

System information

3.7.4-dev (latest nightly build)
Multilanguage Site
macOS Sierra, 10.12.5
Firefox 54 (64-bit)

MAMP 4.1.1

  • PHP 7.0.15
  • MySQLi 5.6.35
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Jul 2017
Status New Discussion
avatar alex-equities
alex-equities - comment - 5 Jul 2017

cache options equities com administration

3.7.2 is fine, 3.7.3 broken

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Jul 2017

@alex-equities i believe this Issue, but i can't confirm it as i get Tab and Permissions Settings (also updated from 3.7.2 > 3.7.3).

avatar alex-equities
alex-equities - comment - 5 Jul 2017

Restoring cms\media\system\js\tabs-state.js to original 3.7.2 version fixed the issue. But it needs to be fixed in Joomla for everybody

avatar alex-equities
alex-equities - comment - 5 Jul 2017

More Specifically - This line causing stuff to break
if (typeof wgxpath.install === "function") { wgxpath.install() }

in cms\media\system\js\tabs-state.js

avatar mbabker
mbabker - comment - 5 Jul 2017

This might be a browser related issue. I can't duplicate this on any site I've upgraded in the last couple days from Chrome or Firefox on Mac. What browser(s) are you using?

This could also be a cache issue. From the sound of things that seems less likely since you're getting a line that's introduced in the new release but still a possibility.

avatar alex-equities
alex-equities - comment - 5 Jul 2017

I checked both Chrome and Firefox and this issue is the same on both

avatar brianteeman
brianteeman - comment - 5 Jul 2017

Have you tried on more than one joomla site? I cant replicate this either

avatar mbabker
mbabker - comment - 5 Jul 2017

What versions? I get the feeling we're getting into something very specific here and not just a "it works on Chrome but not IE" type error.

avatar brianteeman
brianteeman - comment - 5 Jul 2017

and on what operating system

avatar alex-equities
alex-equities - comment - 5 Jul 2017

Windows 10, Chrome Version 59.0.3071.115 (Official Build) (64-bit)

Unfortunately only have 1 joomla site :(

But I think the issue is pretty straight forward. I'm missing wgxpath. Does it come with Joomla core? Maybe it's missing from a template or something?

avatar brianteeman
brianteeman - comment - 5 Jul 2017

Windows 10, Chrome Version 59.0.3071.115 (Official Build) (64-bit)

I am on exactly the same

avatar mbabker
mbabker - comment - 5 Jul 2017

MacOS 10.12.5, Chrome Version 59.0.3071.115 (Official Build) (64-bit)

Can't duplicate it.

I'm missing wgxpath. Does it come with Joomla core?

No. Joomla doesn't ship it. Looking at the commit this was changed in, it seems the PR at one point was going to add support for it and changed to another xpath polyfill perhaps? Paging @PhilETaylor as he may remember this better.

avatar mbabker
mbabker - comment - 5 Jul 2017

Check your network requests and see if /media/system/js/polyfill.xpath.js gets loaded. That may help figure something out. Or worst case scenario it's just a dead end.

avatar PhilETaylor
PhilETaylor - comment - 5 Jul 2017

No. Joomla doesn't ship it.

media/system/js/polyfill.xpath.js

This is 99% surely going to be a "clear your cache" issue :)

avatar mbabker
mbabker - comment - 5 Jul 2017

When I said we don't ship it, it's because https://github.com/joomla/joomla-cms/search?utf8=%E2%9C%93&q=wgxpath&type= doesn't include it in the repo's search index. Didn't realize that xpath polyfill was indeed wgxpath until after the fact.

avatar dgt41
dgt41 - comment - 5 Jul 2017

@mbabker media/system/js/polyfill.xpath-uncompressed.js === wgxpath

Reading that polyfill tho I see that there is a timeout of 100 ms which make me thing that this might be a race condition here, we call a function which (in a slow machine) might not be registered yet

avatar alex-equities
alex-equities - comment - 5 Jul 2017

I don't have polyfill.xpath.js loaded anywhere in source or via Chrome Network

avatar PhilETaylor
PhilETaylor - comment - 5 Jul 2017

@dgt41 a wild guess thats wrong. because the tabs state will call the install method when needed.

@alex-equities if you dont have that file then you dont have a complete copy of Joomla- run the update again

avatar alex-equities
alex-equities - comment - 5 Jul 2017

I re-did the update and in the matter of fact now I do have polyfill.xpath.js file.

Sorry for stressing everybody out :(

avatar zero-24
zero-24 - comment - 5 Jul 2017

Thanks for updating here I'm going to close than ?

avatar zero-24 zero-24 - change - 5 Jul 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-07-05 18:20:02
Closed_By zero-24
avatar zero-24 zero-24 - close - 5 Jul 2017
avatar ymages
ymages - comment - 22 Jul 2017

same error here with Joomla 3.7.3 admin
nav-tabs is empty , no li
<ul class="nav nav-tabs" id="myTabTabs"></ul>

/media/system/js/polyfill.xpath.js is loaded but it does not work on any website with 3.7.3

avatar spurgeonbj
spurgeonbj - comment - 26 Sep 2017

Hi, We too had this issue twice.

Once after upgrade to 3.7.5 (from 3.6.5 or so) and then after upgrade to 3.8

This time around, I commented 3 lines (15-17) of tabs-states.js to get it working.

Thanks!


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

avatar cheesegrits
cheesegrits - comment - 19 Jan 2018

I know this is old, but just thought I'd add a "me too", on an older customer site I'm trying to update from 3.6.5. As soon as I enabled debug, it blew up with the same error. However, the customer says he tried to update recently and "it broke" (hence my involvement) so I'm not sure if the site has a clean set of files. The tabs-state.js doesn't have the "typeof wgxpath.install", but tabs-state-uncompressed.js does (plus a lot of other differences).

Anyway, just for anyone else googling around and stumbling on this ... to confirm @spurgeonbj 's fix of commenting those lines out (in the uncompressed) fixes it.

Add a Comment

Login with GitHub to post a comment