0
Welcome Guest! Login
0 items Join Now

Gantry update 1.30 - broke

  • Re: Gantry update 1.30 - broke

    Posted 11 years 10 months ago
    • Hi,

      I have already checked your site and replied to your message.

      The issue :
      Fatal error: Cannot use string offset as an array in /public_html/wp-content/plugins/gantry/functions.php on line 166
      is caused by the fact that for some reason the theme default options are removed from the database. We're still investigating what can cause that.

      To fix the issue you should go to your Gantry Theme Settings and click on the Save Changes to resave settings. If you CANNOT access the WordPress admin please use this temporary solution :

      1. Please make a BACKUP OF THE FILE and edit wp-content/plugins/gantry/functions.php and around line 165 replace this :
       
      $options        = get_option(get_template() . "-template-options");
              $cache_enabled  = $options['cache']['enabled'];
              $cache_lifetime = $options['cache']['time'];
       
              load_plugin_textdomain('gantry', false, basename($gantry_path) . '/languages');
       
              // Get the gantry instance
              gantry_import('core.gantry');
       
              if ($cache_enabled) {
                  gantry_import('core.utilities.gantrycache');
                  $cache = GantryCache::getInstance();
                  $cache->setLifetime($cache_lifetime);
                  $cache->init();
                  $gantry = $cache->get('gantry', 'gantry', array('Gantry', 'getInstance'));
              } else {
                  $gantry = Gantry::getInstance();
              }
       
      with this :
       
                load_plugin_textdomain('gantry', false, basename($gantry_path) . '/languages');
              // Get the gantry instance
              gantry_import('core.gantry');
              $gantry = Gantry::getInstance();
       

      2. Please make a BACKUP OF THE FILE and edit wp-content/plugins/gantry/admin_functions.php and around line 370 comment out/remove this :
       
      $options = get_option(get_template() . "-template-options");
          if ($options['cache']['enabled']) {
              add_meta_button('cache-clear', 'Clear Cache', '?clear-cache', array(
                                                                                 get_plugin_page_hook('gantry-theme-settings', ''),
                                                                                 get_plugin_page_hook('gantry-theme-overrides', 'gantry-theme-settings')
                                                                            ), array('class' => 'clear-cache'));
          }
       
      3. Now you should be able to access your WP admin. Please go to the Gantry Theme Options and click on Save Changes to resave your settings. Once your settings have been resaved, please revert the two modified above files to their original versions. Your site should be working fine now.

      One more time we're very sorry for this issue. We'll try to fix this ASAP.

      Kind regards,
      Jakub
    • Remember to always post a link to the site you're having problem with.
  • Re: Gantry update 1.30 - broke

    Posted 11 years 10 months ago
    • I did the above but I get the following error when I activate the gantry plugin:

      Fatal error: Class 'Gantry' not found in /home/content/y/d/e/ydemissie/html/consulting/wp-content/plugins/gantry2/functions.php on line 183
  • Re: Gantry update 1.30 - broke

    Posted 11 years 10 months ago
    • Hi,

      There was a small typo before I have edited the code in my previous code. I have also fixed your site, can you please check it ?

      Thanks,
      Jakub
    • Remember to always post a link to the site you're having problem with.
  • Re: Gantry update 1.30 - broke

    Posted 11 years 10 months ago
    • So I have gone through the steps listed above. I was able to get the admin screen back. However, I was not able to turn gantry back on. When I did try, I got the following error:


      Parse error: syntax error, unexpected '}' in /home/whitelr/public_html/therebelbroker.com/wp-content/plugins/gantry/functions.php on line 175

      I cannot go into the gantry theme options on the left since that will not appear without gantry being active.

      Thanks,
      Robert
    • California Real Estate Broker
      Serving Morgan Hill, South San Jose, Saratoga and Los Gatos
    • Monica's Avatar
    • Monica
    • Newbie
    • Posts: 17
    • Thanks: 0

    Re: Gantry update 1.30 - broke

    Posted 11 years 10 months ago
    • This error happened to me with 1.30 and is happening again in 1.31. I've rolled back to 1.30 because I was able to get it to work and will probably re-update it using the fix here soon. However, before I do that, would you still like people with this issue to send you the logins and ftp info to my site so you can do testing on your own?

      I can hold off on the update if you'd like to test.
  • Re: Gantry update 1.30 - broke

    Posted 11 years 10 months ago
    • So do we have a timeframe for a fix? My site is down and I am hoping to get it up as soon as possible.

      Thanks,
      Robert
    • California Real Estate Broker
      Serving Morgan Hill, South San Jose, Saratoga and Los Gatos
  • Re: Gantry update 1.30 - broke

    Posted 11 years 10 months ago
    • I feel your pain because my site was down for over a week...

      The changes Jakub listed above worked for me. Just make sure you've replaced it exactly as stated so that you're not missing a "}" or something like that. If you want I can send you my functions.php and admin_functions.php.

      The steps that worked for my site at a high level are: Uninstall gantry framework from wp, re-install it, make the changes listed above and you should be able to activate it without errors. Then saves changes in the theme settings. In my case some of the theme Default Settings changed but my overrides remained the unchanged.

      I had to reset some of the default settings to get my site to where it was but at least it's up and running. By the way, RokTabs is broken in that "Fading" doesn't work anymore but that's a separate issue...
  • Re: Gantry update 1.30 - broke

    Posted 11 years 10 months ago
    • Thanks for this. Once I get back to my office this afternoon, I am going to run through this again and see if I can achieve your results. I went ahead and turned on a different theme, but it sucks.

      Nothing blows more than trying to be a good little admin and keeping things updated than to have the update kill your site. Not bitching, I know this stuff happens - just not how I envisioned my new years.

      R
      ydemissie wrote:
      I feel your pain because my site was down for over a week...

      The changes Jakub listed above worked for me. Just make sure you've replaced it exactly as stated so that you're not missing a "}" or something like that. If you want I can send you my functions.php and admin_functions.php.

      The steps that worked for my site at a high level are: Uninstall gantry framework from wp, re-install it, make the changes listed above and you should be able to activate it without errors. Then saves changes in the theme settings. In my case some of the theme Default Settings changed but my overrides remained the unchanged.

      I had to reset some of the default settings to get my site to where it was but at least it's up and running. By the way, RokTabs is broken in that "Fading" doesn't work anymore but that's a separate issue...
    • California Real Estate Broker
      Serving Morgan Hill, South San Jose, Saratoga and Los Gatos
  • Re: Gantry update 1.30 - broke

    Posted 11 years 10 months ago
    • Any updates on this? I ran through the above again and ran into the same problem. Would love to know when an update is due.

      Thanks,
      R
    • California Real Estate Broker
      Serving Morgan Hill, South San Jose, Saratoga and Los Gatos
  • Re: Gantry update 1.30 - broke

    Posted 11 years 10 months ago
    • Ok, I just ran through this again and it looks like I got things going. It did forget all my module placements tho.

      Thanks,
      R
    • California Real Estate Broker
      Serving Morgan Hill, South San Jose, Saratoga and Los Gatos

Time to create page: 0.072 seconds