0
Welcome Guest! Login
0 items Join Now

SOLVED Gantry 4.1.2 & Bootstrap HTML

  • SOLVED Gantry 4.1.2 & Bootstrap HTML

    Posted 11 years 5 months ago
    • Hi,
      i have a little problem with Gantry 4.1.1 & Sourcerer Plugin.

      If i include a PHP File with the Plugin, Gantry shows this message:
       
      Notice: Undefined variable: gantry in C:\xampp\htdocs\templates\rt_kirigami\error.php on line 19
      Fatal error: Call to a member function init() on a non-object in C:\xampp\htdocs\templates\rt_kirigami\error.php on line 19
       

      Joomla: 2.5.7
      Gantry 4.1.1
      Sourcerer: 3.2.2 Free
      Template Kirigami (or Gantry)

      After a downgrade to Gantry 4.0.3 it´s running again. So i think its a Gantry problem :)
    • Last Edit: 11 years 4 months ago by Solution-Work UG.
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: SOLVED Gantry 4.1.2 & Bootstrap HTML

    Posted 11 years 5 months ago
    • What is the URL of this sourcer plugin?
  • Re: SOLVED Gantry 4.1.2 & Bootstrap HTML

    Posted 11 years 5 months ago
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: SOLVED Gantry 4.1.2 & Bootstrap HTML

    Posted 11 years 5 months ago
    • can you give me an example of how you included a php file and what exactly the file was that caused the problem? I installed sourcer, and tried a simple test
      {source}
      <?php
      echo 'This text is placed through <b>PHP</b>!';
      ?>
      {/source}

      and had no issues.
  • Re: SOLVED Gantry 4.1.2 & Bootstrap HTML

    Posted 11 years 5 months ago
    • Hmmm, i include PHP files with the Zend Framework and some othe Libs like smarty.

      I will test it again over the weekend and try to locate the specific problem.

      If i found the problem or a solution i will post it :)
  • Re: SOLVED Gantry 4.1.2 & Bootstrap HTML

    Posted 11 years 5 months ago
    • Hey Andy,

      i have located the problem but don't know how it´s even affecting Gantry or Joomla.

      My Setup:
      i include a PHP file with sourcerer and insert a custom Template with Smarty 3.
      This functions all the way until gantry 4.0.x so i can embed Apps in Joomla or other CMS.

      Now, the error is occurring if in the html of the template the code
      data-toggle="tab"
      exists.

      I don't know why or how Gantry is even affected by this, but you can reproduce it, if you use
      {source}<?php echo "data-toggle=\"tab\"" ?>{/source}
      or only
      data-toggle="tab"
      in an Article.

      Tested on 2 Joomla´s 2.5.7 with Gantry 4.1.2

      PS: i use "data-toggle="tab"" in Bootstrap for the navigation in my Apps
  • Re: SOLVED Gantry 4.1.2 & Bootstrap HTML

    Posted 11 years 5 months ago
    • i have a temporary fix for me:

      in {mainpath}/plugins/system/gantry/gantry.php line 26-30:
           protected $bootstrapTriggers = array(
                'data-toggle="tab"',
                'data-toggle="pill"',
                'data-dismiss="alert"'
           );

      replace 'data-toggle="tab"' with 'data-toggle="tab2"' or something else.
  • Re: SOLVED Gantry 4.1.2 & Bootstrap HTML

    Posted 11 years 5 months ago
    • Quake's Avatar
    • Quake
    • Jr. Rocketeer
    • Posts: 35
    • Thanks: 0

    Re: SOLVED Gantry 4.1.2 & Bootstrap HTML

    Posted 11 years 5 months ago
    • I also have problems with this, even with 4.1.3 Gantry...

      I get 500 error and can't do anything until I clear cache from template and also from browser
    • Bredvig's Avatar
    • Bredvig
    • Sr. Rocketeer
    • Posts: 135
    • Thanks: 0

    Re: SOLVED Gantry 4.1.2 & Bootstrap HTML

    Posted 11 years 5 months ago
    • Same here. I downgraded to version from 4.1.3 to 4.1.2. and the error went away.

      Bredvig

Time to create page: 0.074 seconds