0
Welcome Guest! Login
0 items Join Now

Fatal Error in gantry.php

  • Fatal Error in gantry.php

    Posted 14 years 11 months ago
    • Didn't know exactly where to post this (couldn't find thread about the gantry framework itself :oops: ).

      I recently moved a website from development to live and encountered a small error in gantry.php (or what I would consider an error :) , the error being to assume something works instead of checking 8) ). I moved the entire joomla install via FTP to it's new location, manually created and setup the database. Everything fine, till i tried to view the website. Problem was that the gantry framework wouldn't load.

      The issue is in this part (gantry.php, line #58-66):
      if (!$mainframe->isAdmin() && !empty($template_params) && ($template_params->get("cache-enabled", 0) == 1)) {
      ...
      $gantry = $cache->get(array('GantrySingleton','getInstance'), array('Gantry'), 'Gantry'.$user->get('aid', 0));
      Probably has something to do with the manual moving and the caching. In any case, $gantry came back as NULL :cry:
      Fix:
      if (!$mainframe->isAdmin() && !empty($template_params) && ($template_params->get("cache-enabled", 0) == 1)) {
      ...
      $gantry = $cache->get(array('GantrySingleton','getInstance'), array('Gantry'),  Gantry'.$user->get('aid', 0));
              if($gantry === NULL)
                  $gantry = GantrySingleton :: getInstance('Gantry');
      If i remove the if statement, i get the error message back...anybody a clue to the source of the problem?
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: Fatal Error in gantry.php

    Posted 14 years 11 months ago
    • hi there,

      you can move your site with akeeba backup.
      we have successfully tested this with our gantry rocketlauncher installs and did not get any errors.

      kat :)
    • Kat05 / QA Lead & Support / Germany
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: Fatal Error in gantry.php

    Posted 14 years 11 months ago
    • hi again,

      just checked back with the team, is it possible that you had gantry gzipper and gantry cache enabled when moving your site?

      if you want to move the site, it is better to switch those off first.

      if you have already moved the site, you should be able to clean the cache (and remove the error) by opening the template parameters and clicking apply or save.

      it is possible that the fix you applied would cause further cash issues, so probably best to change it back.

      kat :)
    • Kat05 / QA Lead & Support / Germany
  • Re: Fatal Error in gantry.php

    Posted 14 years 11 months ago
    • Thanks, Kat05. The cache clear solved my problem with an error in the following location: gantry.class.php on line 259
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: Fatal Error in gantry.php

    Posted 14 years 11 months ago
    • Chris Chiacchierini wrote:
      Thanks, Kat05. The cache clear solved my problem with an error in the following location: gantry.class.php on line 259
      glad this helped! :)
    • Kat05 / QA Lead & Support / Germany
  • Re: Fatal Error in gantry.php

    Posted 14 years 11 months ago
    • It seems my previous reply was a PM instead of in this thread :oops: but I checked on the GZipper, this was turned off. Clearing the cache through the template doesn't do anything either (although this might be related to rights issues :D )

Time to create page: 0.095 seconds