• Resolved nairyhipples

    (@nairyhipples)


    http://superlab.se/ is the site I’m currently working on.

    When I press on the INFO tab up in the right corner, the INFO-page doesn’t load – and I get error: “RESPONSIVEUI is not defined”.

    The function is created in tabby-responsive-tabs/js/tabby.js and the echo happens in tabby-responsive-tabs/tabby-responsive-tabs.php by the function “cc_tabbytrigger()”

    It echos this to my console “jQuery(document).ready(function($) { RESPONSIVEUI.responsiveTabs(); })”

    The page loads when I refresh the page. Please help!

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

    (@numeeja)

    I have never seen this issue before and I think it looks like a theme issue.

    Your theme appears to be dynamically loading the page content into the current page and as the symptom is that a function in tabby.js is not being found, it may not be able to load the script.

    To check whether this is caused by a theme issue, check whether the problem occurs when the theme is temporarily switched to a default theme such as twenty sixteen.

    Thread Starter nairyhipples

    (@nairyhipples)

    Changing the theme to a different one, and then changing back – I’m scared that it won’t go back to how it was originally. Should it be okay to do this?

    Thread Starter nairyhipples

    (@nairyhipples)

    It says that tabby-responsive-tabs/js/tabby.js is inactive when I go in the edit plugins tab in the WP interface.

    Plugin Author cubecolour

    (@numeeja)

    Temporarily changing the theme would normally be OK, but as your theme does not look like it is built the same way as themes listed in the WordPress.org themes directory (which would have passed the theme review checks), I can’t say for sure.

    If this is something you are concerned about, is a good idea to have an offline cloned decelopment version of any site where any new plugins or changes can be tested and troubleshooting steps can be undertaken without touching the live site.

    Thread Starter nairyhipples

    (@nairyhipples)

    Yeah that’s a good idea.

    Just a side-note,
    <script type=”text/javascript” src=”http://superlab.se/wp-content/plugins/tabby-responsive-tabs/js/tabby.js?ver=1.2.3″></script&gt;
    <script>jQuery(document).ready(function($) { RESPONSIVEUI.responsiveTabs(); })</script>

    These are injected before the closing </body> tag upon refresh. I tried injecting these manually in a script tag, and the site loaded normally when I did this – however it looked awful. This got me thinking I could probably do an ugly solution and try to call a page reload or something when tabby gets called upon, do you have any suggestions on where the best place to do this would be?

    • This reply was modified 9 years, 5 months ago by nairyhipples.
    Plugin Author cubecolour

    (@numeeja)

    There is no callback feature in the current version of tabby responsive tabs, although that may change in a future version.

    The issue looks to be due to your theme doing something unusual. I have no access to this as it is a commercial theme, so I don’t know how it is constructed or how it differs to themes that use WordPress standard coding practices and are listed in the WordPress themes directory. If I did have access to the themes files I probably wouldn’t have time to investigate within the scope of the free support I am able to offer.

    You theme’s author may be able to suggest a workaround as it is possible that many other plugins could be similarly broken by the way the theme works.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Page not loading, needs refresh to load’ is closed to new replies.