0
Welcome Guest! Login
0 items Join Now

Site offline and "Undefined variable"

    • EgoTheme's Avatar
    • EgoTheme
    • Rocketeer
    • Posts: 77
    • Thanks: 0

    Site offline and "Undefined variable"

    Posted 12 years 4 months ago
    • Hi,
      I installed latest Gantry RocketLauncher for Joomla 2.5.
      Everything works fine. But if the site is offline you will see a blank page.

      Then, In Administrator > Server > Error reporting I set the Maximum value and these are the following errors:
      Notice: Undefined variable: app in /home/XXXXX/domains/XXXXX.XX/public_html/templates/gantry/offline.php on line 38 Fatal error: Call to a member function getCfg() on a non-object in /home/XXXXX/domains/XXXXX.XX/public_html/templates/gantry/offline.php on line 38

      Thanks for any help
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Site offline and "Undefined variable"

    Posted 12 years 4 months ago
    • Which Gantry version do you have on that site?
    • Check my services at: Mihha-Vision
    • EgoTheme's Avatar
    • EgoTheme
    • Rocketeer
    • Posts: 77
    • Thanks: 0

    Re: Site offline and "Undefined variable"

    Posted 12 years 4 months ago
    • Latest version: Gantry v4.1.4
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Site offline and "Undefined variable"

    Posted 12 years 4 months ago
    • I can confirm that this is really an issue because I just managed to recreate this on my test site. Devs are already alerted about this issue. Thank you for notifying us 8)
    • Check my services at: Mihha-Vision
    • EgoTheme's Avatar
    • EgoTheme
    • Rocketeer
    • Posts: 77
    • Thanks: 0

    Re: Site offline and "Undefined variable"

    Posted 12 years 4 months ago
    • Igor Mihaljko wrote:
      Devs are already alerted about this issue.

      Ok, thank you :wink:
  • Re: Site offline and "Undefined variable"

    Posted 12 years 4 months ago
    • locate gantry.php here
      templates/gantry/lib/gantry/gantry.php

      add the following line at the end of the file
      $app = JFactory::getApplication();

      offline.php file now load the site config to get for example the offline message or image, etc...

      that should work temporarily until this is fixed on official release
    • Why i am doing what i do? Sometimes it simply came over me!

      Don't forget to hit the THANKS button for those who helped you and for those who need this for their alter ego :)
    • AVASA's Avatar
    • AVASA
    • Sr. Rocketeer
    • Posts: 123
    • Thanks: 0

    Re: Site offline and "Undefined variable"

    Posted 12 years 3 months ago
    • Workaround confirmed. Thanks Lahmizzar M!
      However, note that doing this disables all controls in the gantry panel in the back end.
      I put it before the last line, and everything seems fine now.
      $backtrace = debug_backtrace();
      $gantry_calling_file = $backtrace[0]['file'];
      $app = JFactory::getApplication();
      include($gantry_lib_path);
    • AVASA
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: Site offline and "Undefined variable"

    Posted 12 years 3 months ago
    • this is fixed in Gantry 4.1.5

Time to create page: 0.064 seconds