We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I've used MIGX with several projects and think its a great, flexible add on, however, having tried to use it in a cloud based project the following error keeps loading in the front end:

    Notice: Undefined index: configs in /paas/c0030/www/core/cache/includes/elements/modsnippet/25.include.cache.php on line 87
    
    Notice: Undefined index: formtabs in /paas/c0030/www/core/cache/includes/elements/modsnippet/25.include.cache.php on line 93


    The add on is working fine in the backend, my grid appears and I can add data, it just seems to fail in the front end.

    My code for info is as follows:

    Forms tabs

    [
    {"caption":"Image", "fields": [      {"field":"description","caption":"Description","description":"Details of image"}, 
    {"field":"image","caption":"Image","inputTV":"imageBankTV"},
    {"field":"file", "caption":"Download Link", "inputTV":"imageBankFile"}
    
    ]}
    ] 


    Grid layout

    [
    {"header": "Description", "width": "100", "sortable": "true", "dataIndex": "description"}, 
    {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"},
    {"header": "Download Link", "width": "50", "sortable": "false", "dataIndex": "file"}
    ]


    And Chunk code

    <a href="[[+image]]">
    <img src="[[+image]]" alt="" />
    </a>
    <p>[[+description]]</p>
    <p class="download"><a href="[[+file]]">DOWNLOAD FILE</a></p>


    I have tried clearing cache manually but that doesn't work. And all the other template variables have been created and are unassigned.

    Many thanks [ed. note: boomerang last edited this post 11 years, 7 months ago.]
      Helen Warner
      Number one pixel!
      Proud to be linked with MODX at Crimson Pixel
      • 4172
      • 5,888 Posts
      which version? The latest is 2.3.2

      possible workarround: try to set the system-setting 'debug' to '0'
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
      • Version is 2.3.1 - that's all I could download today. Will report back with debug set to '0'.

        Now got Version 2.3.2 and ran debug but still returns same error message in front end, nothing comes back in Error Log. [ed. note: boomerang last edited this post 11 years, 7 months ago.]
          Helen Warner
          Number one pixel!
          Proud to be linked with MODX at Crimson Pixel
          • 4172
          • 5,888 Posts
          what do you get when you add the line

          print_r($properties);


          to the getImageList - snippet like this:

                  /*
                  *   get inputProperties
                  */
          
          
                  $properties = $tv->get('input_properties');
                  $properties = isset($properties['formtabs']) ? $properties : $tv->getProperties();
                  
                  print_r($properties);
          
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
          • Hi Bruno,

            Thanks for such quick response and support the following was returned:

            Array ( )
            Notice: Undefined index: configs in /paas/c0030/www/core/cache/includes/elements/modsnippet/25.include.cache.php on line 89
            
            Notice: Undefined index: formtabs in /paas/c0030/www/core/cache/includes/elements/modsnippet/25.include.cache.php on line 95
              Helen Warner
              Number one pixel!
              Proud to be linked with MODX at Crimson Pixel
              • 4172
              • 5,888 Posts
              seems

              $tv->get('input_properties')
              doesn't get the input_properties as usual

              would you try and report the result with that, please?

                      $properties = $tv->get('input_properties');
                      print_r($properties);
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
              • Same response but without the Array () , however, if I add just

                print_r($properties);


                It no longer returns the Array() either.

                I have now upgraded to version 2.3.2
                  Helen Warner
                  Number one pixel!
                  Proud to be linked with MODX at Crimson Pixel
                • I put in your exact same MIGx TV and output, and it's working fine. I presume the imageBankTV is an image-type TV with no output widget, and the imageBankURL is a URL type TV also with no output widget?

                  I did do one thing differently; being lazy I just put the tpl code inline with @CODE: instead of making a chunk.

                  http://c0084.paas2.tx.modxcloud.com/page.html
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                  • Hi Susan,
                    The imageBankTV has no output widget, and the imageBankURL is text.

                    Very odd, so why isn't it working for me - will have to recheck everything again!

                    Thanks for feed back.
                      Helen Warner
                      Number one pixel!
                      Proud to be linked with MODX at Crimson Pixel
                    • Here's my snippet call...
                      [[!getImageList? 
                          &tvname=`Testing`
                          &tpl=`@CODE:<a href="[[+image]]">
                      <img src="[[+image]]" alt="" />
                      </a>
                      <p>[[+description]]</p>
                      <p class="download"><a href="[[+url]]">DOWNLOAD FILE</a></p>
                        `]]
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org