0
Welcome Guest! Login
0 items Join Now

Rokbox not working WP 4.2.4

    • jcamp's Avatar
    • jcamp
    • Newbie
    • Posts: 9
    • Thanks: 0
    • Expert in everything

    Rokbox not working WP 4.2.4

    Posted 8 years 7 months ago
    • Update: Found settings to put js in footer and compat mode - now works!!


      Rokbox comes up with the following error in rokbox.js when the object is clicked for the lightbox (latest version) and the ajax loader just spins...

      Uncaught TypeError: Cannot read property 'y' of undefined

      The code error is in rokbox here (line 2936) do do with the window.getSize() of mootools...

      var innerSize = window.getSize(),
      contentSize = this.containerContent.getSize();

      if (computedHeight >= innerSize.y){
      var margin = this.container.getStyle('margin-bottom').toInt(),
      caption = document.getElement('[data-rokboxcaption]'),
      captionSize = caption ? caption.getSize().y : 0,

      objectHeight = Math.round(innerSize.y * size.y / computedHeight) - captionSize - margin,
      objectWidth = Math.round(size.x * objectHeight / size.y);

      if (!this.isFitting){
      size.x = objectWidth;
      size.y = objectHeight;
      }
      }
    • Last Edit: 8 years 7 months ago by jcamp. Reason: Update
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21506
    • Thanks: 3081
    • messin' with stuff

    Re: Rokbox not working WP 4.2.4

    Posted 8 years 7 months ago
    • I would guess it's in conflict with some other plugin you have running on your site... disable ALL non RocketTheme plugins, clear caches, and test...

      beyond that, post a link to your page with the error please
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:

Time to create page: 0.049 seconds