0
Welcome Guest! Login
0 items Join Now

Errors after update to Gantry 4.1.17

  • Re: Errors after update to Gantry 4.1.17

    Posted 10 years 7 months ago
    • Hey Wes,

      I do get all three errors in Chrome only. I get the first two in Firefox and IE. JQuery loaded properly in all but Chrome.

      Since yesterday, to get JQuery to work I've manually added:
      <script src="/media/jui/js/jquery.min.js" type="text/javascript"></script>
      <script src="/media/jui/js/jquery-noconflict.js" type="text/javascript"></script>

      Now I only get the two errors!
    • Omikron's Avatar
    • Omikron
    • Jr. Rocketeer
    • Posts: 47
    • Thanks: 0

    Re: Errors after update to Gantry 4.1.17

    Posted 10 years 6 months ago
    • This is happening because these files are getting loaded before mootools on some pages. I have pages where mootools loads first like it should and others where it doesn't. It seems to be random what page it shows up on...

      Here is the homepage scripts in header while getting no errors;

      This image is hidden for guests.
      Please log in or register to see it.


      Here is a search page that has the errors;

      This image is hidden for guests.
      Please log in or register to see it.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Errors after update to Gantry 4.1.17

    Posted 10 years 6 months ago
    • you can try to add this pretty high in the head-tag of your template

      JHTML::_('behavior.framework', true);

      to activate Mootools.

      see the gantry change-log:
      Release Notes - Gantry Joomla Framework - Version 4.1.17

      Improvement
      • MooTools is not getting loaded automatically from Gantry core
    • Omikron's Avatar
    • Omikron
    • Jr. Rocketeer
    • Posts: 47
    • Thanks: 0

    Re: Errors after update to Gantry 4.1.17

    Posted 10 years 6 months ago
    • This did the trick for me.

      However, I am curious as to what's going on. Why would gantry not load mootools when other scripts that depend on it are getting loaded?

      Is this an incompatibility with older templates?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Errors after update to Gantry 4.1.17

    Posted 10 years 6 months ago
    • We can only control mootools as far as its about gantry-template stuff.
      Removing the Mootools framework was the most popular request lately.
      Older templates that need to load Mootools will be updated in that way that features that use Mootools like to-top" will get Mootools call via a Joomla-function (so it will be loaded only once).

      just as an example
      class GantryFeatureToTop extends GantryFeature
      {
          var $_feature_name = 'totop';
       
          function init()
          {
              /** @var $gantry Gantry */
              global $gantry;
              JHTML::_('behavior.framework', true);
       
              if ($this->get('enabled')) {
                  $gantry->addScript('gantry-totop.js');
              }
          }

      Joomla also removed the framework dependency. So we are only doing what Joonmla does and what most people ask for. (And it makes sense in a way ...)

      So if you need Mootools for other stuff it's a matter of 3rdparty devs taking into account what the core of Joomla does. If the extension does not use the Joomla-Mootools integration you need to take care of it yourself by adding that line I suggested or a plugin that does it for you.

      If you need JQuery you need to do the same for JQuery.
      docs.joomla.org/J3.1:Javascript_Frameworks

      Its always a risk to use a compression tool to compress the js.
      The new RokBooster has some new features to exclude menu-item for example ...
    • isherwood's Avatar
    • isherwood
    • Sr. Rocketeer
    • Posts: 142
    • Thanks: 5
    • Web developer

    Re: Errors after update to Gantry 4.1.17

    Posted 10 years 6 months ago
    • I was required to use Henning's solution in Oculus 1.0.1 after Gantry updated to 4.1.17. RockSprocket stopped working and a stack of 'not defined' errors showed up in the console. I'm unclear as to the explanation Henning offered. Aside from Akeeba, JCE, and AcyMailing Starter, this is a pretty bare site other than what RocketTheme brings to the table. Shouldn't RokSprocket or Gantry be loading Mootools if they need it? What am I missing?
    • The following users have thanked you: Carlos Lozano

  • Re: Errors after update to Gantry 4.1.17

    Posted 9 years 9 months ago
    • Hello, I´m having this issue, I think. Did some regular updates and the roksprocket showcase stopped working.

      My console shows this:

      "Uncaught TypeError: object is not a function (index):69
      (anonymous function) (index):69
      Uncaught ReferenceError: RokBoxSettings is not defined rokbox.js:179
      RokBox.Class.Class.initialize rokbox.js:179
      (anonymous function) mootools-more.js:27
      i.extend.$owner mootools-core.js:141
      (anonymous function) mootools-core.js:136
      (anonymous function) rokbox.js:266
      (anonymous function) mootools-core.js:375
      (anonymous function) mootools-core.js:33
      Array.implement.each mootools-core.js:40
      invoke.fireEvent mootools-core.js:374
      g"

      It sounds like the same problem you're talking about. Can you give me a link or something to this solution you mention?

      This is my site; www.lacocinanomuerde.com

      Thanks!
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Errors after update to Gantry 4.1.17

    Posted 9 years 9 months ago
    • Can you confirm that you have latest versions of Gantry, RokBox, Joomla and all other RT extensions?
    • Check my services at: Mihha-Vision
  • Re: Errors after update to Gantry 4.1.17

    Posted 9 years 9 months ago
    • Hello, thank you for replying. Yes, everything is updated. But you know what? I turned off content - Rokbox plugin and System - Rokbox plugin and it´s working again. I don´t know if I'll need those plugins for other stuff...

      What's up with that? Why do I have to turn them off to get the slideshow to work if it used to work with them on before the last updates?

      Thank you for your help!
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Errors after update to Gantry 4.1.17

    Posted 9 years 9 months ago
    • Which versions of RokBox and RokSprocket do you have?
    • Check my services at: Mihha-Vision

Time to create page: 0.068 seconds