0
Welcome Guest! Login
0 items Join Now

not an object - gantry / template issue - fatal crash

  • not an object - gantry / template issue - fatal crash

    Posted 11 years 1 month ago
    • I have a site that we built on a RT template and Gantry system.
      It runs fine MOST of the time, but from time to time it crashes.
      The gantry crashes because it is passed a non-object and white screens on the front end.
      The error is:
      Fatal error: Call to a member function isEnabled() on a non-object in /home/falck/domains/safetycoursesonline.net/public_html/libraries/gantry/core/gantry.class.php on line 414


      It seems to be getting a NON-OBJECT - and it fails.
      I see that on line 514? and 1879? it also makes this problem known from time to time.


      I investigated further - it looked to be this.
      * FEATURE: popup

      ***DUMP:
      bool(false) Fatal error: Call to a member function isEnabled() on a non-object in /home/falck/domains/safetycoursesonline.net/public_html/libraries/gantry/core/gantry.class.php on line 1879


      --around line 1879 -- /home/falck/domains/safetycoursesonline.net/public_html/libraries/gantry/core/gantry.class.php - you will find that it needs : is_object($feature_instance) && -- to check for the object.

      <pre>

      $return = array();
      // Init all features
      foreach ($this->getFeatures() as $feature) {
      $feature_instance = $this->getFeature($feature);

      /***** the is_object($feature_instance) && added to below if statement by mark ****/
      if (is_object($feature_instance) && method_exists($feature_instance, 'isEnabled') && $feature_instance->isEnabled() && $feature_instance->isInPosition($position) && method_exists($feature_instance, 'render')) {
      $return[] = $feature;
      }
      }
      return $this->_featuresPosition[$this->cacheKey($position, true)] = $return;
      }

      </pre>


      However, when I utilize this method it throws errors in other lines.. help please- this is not working right and we are hearing our customers complain.

      Thanks for any help in advance, it is very much appreicated.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: not an object - gantry / template issue - fatal crash

    Posted 11 years 1 month ago
    • Please clear server cache and try again. Also, what version of php are you using please?

      If you still have problems adter that - Please would you post your URL, superuser id and pswd in the secure tab of your post and i'll have a look for you.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: not an object - gantry / template issue - fatal crash

    Posted 11 years 1 month ago
    • This message contains only secure information that is visible to Aerowebworks, moderators and administrators
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: not an object - gantry / template issue - fatal crash

    Posted 11 years 1 month ago
    • joomla is out of date on J3.1.5 - should be 3.2.3
      Gantry is out of date on 4.1.21 - should be 4.1.22
      Chapelco template is out of date on 1.2 - should be 1.3

      BACKUP BACKUP BACKUP! then update all of the above to latest versions.

      The clear server cache and try again.

      Please note that I also check and all caching seems disabled on your site?

      Regards, Mark.
    • Last Edit: 11 years 1 month ago by MrT.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.076 seconds