0
Welcome Guest! Login
0 items Join Now

Error when including gantry core in other files

  • Error when including gantry core in other files

    Posted 13 years 10 months ago
    • I am trying to import some gantry functionality in to some HTML over-rides.

      In the head of the HTML override, I've included the gantry core using the following:
       
      require_once(JPATH_SITE . '/components/com_gantry/gantry.php');
       

      However, I met with these errors:
       
      Notice: Undefined variable: filename in <root>\components\com_gantry\gantry.php on line 70
       
      Notice: Undefined variable: filename in <root>\components\com_gantry\gantry.php on line 70
       
      Notice: Undefined variable: filename in <root>\components\com_gantry\gantry.php on line 71
       

      My method of importing gantry was working perfectly on Gantry 2.5.5; was met with those errors after an upgrade to 3.0.3

      The errors only occur in HTML over-ride files. E.g. templates/template-name/html/com_somecomponent/view.html.php

Time to create page: 0.032 seconds