• Resolved tbacon781

    (@tbacon781)


    So I got notified by my client that his tabs are not displaying correctly. I updated all plugins, cleared cache, and checked console for errors. Everything seemed to be working fine with no problems, so I tried it not logged in, in a private browser and I say that the tabs plugin was not displaying the tabs coreectly. I checked the console while logged out and got these errors.

    Uncaught ReferenceError: wp is not defined

    Uncaught TypeError: jQuery is not a function

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author cubecolour

    (@numeeja)

    This is unusual. Please provide a link to a page on the site where the issue can be seen.

    Thread Starter tbacon781

    (@tbacon781)

    Any way you could hide this link?

    https://funwhileitlasted.net/american-indoor-soccer-association-1984-1990/

    You’ll notice on the page there are headings labeled

    Tombstone
    Leadership
    Attendance

    These are supposed to be the tabs.

    Plugin Author cubecolour

    (@numeeja)

    My first thought was perhaps the issue is related to autoptimise, however after troubleshooting this by disabling autoptimise in the browser by adding ?ao_noptimize=1 to the url and refreshing the page, the issue remained suggesting that this is not the case.

    In Web Developer Tools I see four instances of the “Uncaught ReferenceError: jQuery is not defined” error message, each giving a reference to a different script that uses jQuery as a dependancy – including tabby.js. This suggests that the issue is not specific to tabby script, but is caused by jQuery running later than the four scripts which depend on it, when it should be run before them.

    In the page source I can see that the line which loads jQuery contains the attribute ‘defer’. I suspect this is causing it to run later than the scripts which depend on it.

    If you can track down what is adding the ‘defer’ attribute to the line that loads jQuery and find the option to remove it, then we should be able to see whether this fixes the issue. Anything which caches/optimises/speeds up the site should be investigated for this.

    Thread Starter tbacon781

    (@tbacon781)

    Awesome! I found the script that was causing the issues and got rid of it, all is well again! Thanks for the help.

    nickgreenway

    (@nickgreenway)

    @tbacon781 – I have this exact same problem – could you tell me how you fixed this…Many thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Tabby plugin not working when logged out of admin’ is closed to new replies.